2021-02-14 20:22:29 +08:00
|
|
|
'''
|
2020-11-28 15:17:44 +08:00
|
|
|
writen by shenjackyuanjie
|
|
|
|
mail: 3695888@qq.com
|
2021-02-14 20:22:29 +08:00
|
|
|
'''
|
2020-11-28 15:17:44 +08:00
|
|
|
|
2021-02-14 22:15:05 +08:00
|
|
|
|
2020-12-05 21:24:54 +08:00
|
|
|
import sys
|
2021-02-14 19:03:36 +08:00
|
|
|
from bin import main
|
2020-12-05 21:24:54 +08:00
|
|
|
|
2020-11-28 15:17:44 +08:00
|
|
|
|
2021-02-14 19:03:36 +08:00
|
|
|
def game():
|
2021-01-20 17:06:25 +08:00
|
|
|
# Python vision check
|
2020-12-05 21:24:54 +08:00
|
|
|
py_v_info = sys.version_info
|
2021-02-14 20:22:29 +08:00
|
|
|
py_v = str('%d.%d.%d' % (py_v_info[0], py_v_info[1], py_v_info[2]))
|
|
|
|
print('Simple Rocket is running on Python Vision %s' % py_v)
|
2020-12-05 21:24:54 +08:00
|
|
|
if py_v_info[0] == 2:
|
2021-02-14 20:22:29 +08:00
|
|
|
raise Exception('Simple Rocket need python vision 3+')
|
2021-01-20 17:06:25 +08:00
|
|
|
# start games
|
2021-02-14 19:03:36 +08:00
|
|
|
game = main.Game()
|
2020-12-05 21:24:54 +08:00
|
|
|
|
2020-11-28 15:17:44 +08:00
|
|
|
|
2021-02-14 20:22:29 +08:00
|
|
|
if __name__ == '__main__':
|
2021-02-14 19:03:36 +08:00
|
|
|
game()
|