someone with Python knowledge needed

ilan

Expert
Licensed User
Longtime User
hi,

i have a file that is a python game and i need to run it. this is the instruction to run the game:


i have no idea how to do it. can someone please quide me?

thanx
 

thetahsk

Active Member
Licensed User
Longtime User
hi,
i have a file that is a python game and i need to run it. this is the instruction to run the game:
i have no idea how to do it. can someone please quide me?
thanx

1. Install python from https://www.python.org/downloads/
2. Import the missing libs numpy,matplotlib,etc... https://solarianprogrammer.com/2017/02/25/install-numpy-scipy-matplotlib-python-3-windows/
3. Install e.g. Wing personal 7 https://wingware.com/download
Overview Python IDE https://wiki.python.org/moin/IntegratedDevelopmentEnvironments
4. Make new project. Add Interceptor_V2.py file to your project.

Created on 27/5/2019
Interceptor V2
@author: I.
This ML challenge was created by SAMLA (National Electronic Warfare, Cyber & Intelligence Research Center)
- a national research lab at Rafael http://portal.rafael.co.il/mlchallenge2019/Documents/samla.html


5. Add New File to project e.g start.py


from Interceptor_V2 import Init, Draw, Game_step

Init()
for stp in range(1000):
action_button = 3
r_locs, i_locs, c_locs, ang, score = Game_step(action_button)
Draw()

6. Run and see this output

 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…