From e8167117567929b54ec1ef22e3f1cb7445addd13 Mon Sep 17 00:00:00 2001 From: Kylin_on_Mac Date: Fri, 10 Nov 2023 16:19:13 +0800 Subject: [PATCH] feat:update ml example --- ml/ml_play_manual.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ml/ml_play_manual.py b/ml/ml_play_manual.py index 99ac762..b46b770 100644 --- a/ml/ml_play_manual.py +++ b/ml/ml_play_manual.py @@ -1,4 +1,6 @@ import random + +import orjson import pygame @@ -10,7 +12,7 @@ class MLPlay: """ 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) actions = []