someone with Python knowledge needed

ilan

Expert
Licensed 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:

In order to play, do the following:
***********************************

from Interceptor_V2 import Init, Draw, Game_step

Init()
for stp in range(1000):
action_button = *** Insert your logic here: 0,1,2 or 3 ***
r_locs, i_locs, c_locs, ang, score = Game_step(action_button)
Draw()

*************************************

Don't forget to play by the rules described in the website.
"""
i have no idea how to do it. can someone please quide me?

thanx
 

thetahsk

Active Member
Licensed 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
:eek::oops::rolleyes:

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

upload_2019-9-9_6-49-47.png
 
Top