add description and logo on game_config.json

This commit is contained in:
Kylin_on_Mac
2022-05-06 09:26:57 +08:00
parent da3cdbba9b
commit 4272ddc7d1
11 changed files with 42 additions and 103 deletions

21
ml/ml_play_template.py Normal file
View File

@ -0,0 +1,21 @@
import random
class MLPlay:
def __init__(self):
print("Initial ml script")
def update(self, scene_info: dict, *args, **kwargs):
"""
Generate the command according to the received scene information
"""
# print("AI received data from game :", json.dumps(scene_info))
# print(scene_info)
actions = ["UP", "DOWN", "LEFT", "RIGHT"]
return random.sample(actions, 1)
def reset(self):
"""
Reset the status
"""
print("reset ml script")
pass