Closed seigot closed 1 year ago
diff --git a/game_manager/machine_learning/block_controller_train_sample.py b/game_manager/machine_learning/block_controller_train_sample.py
index a1cceff..00b428c 100644
--- a/game_manager/machine_learning/block_controller_train_sample.py
+++ b/game_manager/machine_learning/block_controller_train_sample.py
@@ -36,7 +36,7 @@ class Block_Controller(object):
#パラメータ読み込み
def yaml_read(self,yaml_file):
- with open(yaml_file) as f:
+ with open(yaml_file, encoding='utf-8') as f:
cfg = yaml.safe_load(f)
return cfg
diff --git a/game_manager/machine_learning/block_controller_train_sample2.py b/game_manager/machine_learning/block_controller_train_sample2.py
index d10f8ee..c91e330 100644
--- a/game_manager/machine_learning/block_controller_train_sample2.py
+++ b/game_manager/machine_learning/block_controller_train_sample2.py
@@ -36,7 +36,7 @@ class Block_Controller(object):
#パラメータ読み込み
def yaml_read(self,yaml_file):
- with open(yaml_file) as f:
+ with open(yaml_file, encoding='utf-8') as f:
cfg = yaml.safe_load(f)
return cfg
https://github.com/seigot https://github.com/seigot/tetris/commit/886badcae40958fec9f223347c5641b8f9dcb7f1