From cfa9da6b2c732fc980726ae0afbfb3b1359c4fd0 Mon Sep 17 00:00:00 2001 From: zhiyang7 Date: Mon, 6 Dec 2021 09:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B8=E5=BC=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- douzero/env/game.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/douzero/env/game.py b/douzero/env/game.py index 1b716f7..99c00d5 100644 --- a/douzero/env/game.py +++ b/douzero/env/game.py @@ -258,27 +258,27 @@ class GameEnv(object): elif rival_move_type == md.TYPE_4_BOMB: all_moves = mg.gen_type_4_bomb(4) moves = ms.filter_type_4_bomb(all_moves, rival_move) - all_moves += mg.gen_type_4_bomb(5) + mg.gen_type_4_bomb(6) + mg.gen_type_4_bomb(7) + mg.gen_type_4_bomb(8) + mg.gen_type_5_king_bomb() + moves += mg.gen_type_4_bomb(5) + mg.gen_type_4_bomb(6) + mg.gen_type_4_bomb(7) + mg.gen_type_4_bomb(8) + mg.gen_type_5_king_bomb() elif rival_move_type == md.TYPE_4_BOMB5: all_moves = mg.gen_type_4_bomb(5) moves = ms.filter_type_4_bomb(all_moves, rival_move) - all_moves += mg.gen_type_4_bomb(6) + mg.gen_type_4_bomb(7) + mg.gen_type_4_bomb(8) + mg.gen_type_5_king_bomb() + moves += mg.gen_type_4_bomb(6) + mg.gen_type_4_bomb(7) + mg.gen_type_4_bomb(8) + mg.gen_type_5_king_bomb() elif rival_move_type == md.TYPE_4_BOMB6: all_moves = mg.gen_type_4_bomb(6) moves = ms.filter_type_4_bomb(all_moves, rival_move) - all_moves += mg.gen_type_4_bomb(7) + mg.gen_type_4_bomb(8) + mg.gen_type_5_king_bomb() + moves += mg.gen_type_4_bomb(7) + mg.gen_type_4_bomb(8) + mg.gen_type_5_king_bomb() elif rival_move_type == md.TYPE_4_BOMB7: all_moves = mg.gen_type_4_bomb(7) moves = ms.filter_type_4_bomb(all_moves, rival_move) - all_moves += mg.gen_type_4_bomb(8) + mg.gen_type_5_king_bomb() + moves += mg.gen_type_4_bomb(8) + mg.gen_type_5_king_bomb() elif rival_move_type == md.TYPE_4_BOMB8: all_moves = mg.gen_type_4_bomb(8) moves = ms.filter_type_4_bomb(all_moves, rival_move) - all_moves += mg.gen_type_5_king_bomb() + moves += mg.gen_type_5_king_bomb() elif rival_move_type == md.TYPE_5_KING_BOMB: moves = []