0

How to import game modules on an online interpreter?

I wrote a small game, aircraft war, suggesting that the game module cannot be imported. How will the online interpreter be imported?

10th Jun 2018, 2:11 AM
高文博
高文博 - avatar
2 Respostas
+ 6
Online interpreters are fixed Python installations. You can't install new modules there, only its owner can. Plus, GUI modules often use local machine's resources, so it needs to be installed and ran on your machine in order to work. There are some exceptions - some interpreters use JS-based modules which allow them to be run in browsers. Take a look at: http://py3.codeskulptor.org It has its own, simplegui module which allows for making games and apps in Pythpn and run them in browser windows. Also, it has a rich documentation available right there :)
10th Jun 2018, 7:30 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
you should install pip
10th Jun 2018, 9:22 AM
Numpy
Numpy - avatar