ilan Expert Licensed User Longtime User Sep 8, 2019 #1 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. """ Click to expand... i have no idea how to do it. can someone please quide me? thanx
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. """ Click to expand... i have no idea how to do it. can someone please quide me? thanx
thetahsk Active Member Licensed User Longtime User Sep 9, 2019 #2 ilan said: 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 Click to expand... 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
ilan said: 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 Click to expand... 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