feat:update ml example
This commit is contained in:
parent
d11b879c98
commit
e816711756
|
@ -1,4 +1,6 @@
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
import orjson
|
||||||
import pygame
|
import pygame
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,7 +12,7 @@ class MLPlay:
|
||||||
"""
|
"""
|
||||||
Generate the command according to the received scene information
|
Generate the command according to the received scene information
|
||||||
"""
|
"""
|
||||||
# print("AI received data from game :", json.dumps(scene_info))
|
# print("AI received data from game :", orjson.dumps(scene_info))
|
||||||
# print(scene_info)
|
# print(scene_info)
|
||||||
actions = []
|
actions = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue