Jamee999 / cricket

Test match cricket simulator
61 stars 33 forks source link

New #37

Open Soundsreasonable opened 3 years ago

Soundsreasonable commented 3 years ago

Hi,

I'm VERY new to OS and Python having been brought up on a Windows pc however I'm fascinated by cricket simulations and have been trying to get this one going as it seems to have basically everything covered from what I read.

I have Python 2.7.16 on my Mac and have downloaded Cricket 2.3 and guided my command line in Terminal to the folder. When I type just the file name custom.py I get

systems-iMac-2:cricket-2.3 XXXXXX$ game.py -bash: game.py: command not found

but with Python2 custom.py ..I get

systems-iMac-2:cricket-2.3 XXXXXX$ python2 custom.py File "custom.py", line 90 print ('Did you mean one of these players?', end= ' ') ^SyntaxError: invalid syntax

I got a similar syntax error with draft.py

Am I doing something wrong? Do I need Python 3?

Any help will be gratefully accepted.

thanks

Jamee999 commented 3 years ago

Python 2 is obsolete, Python3 is needed.