修复BUG
This commit is contained in:
parent
2a97a20ae0
commit
d5d184ca1c
|
@ -10,7 +10,6 @@ from douzero.server.battle import tick, baseline_players, positions, idx_positio
|
|||
from flask import Flask, jsonify, request
|
||||
from flask_cors import CORS
|
||||
from datetime import datetime
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
|
||||
from douzero.env.game import get_legal_card_play_actions
|
||||
|
||||
|
@ -199,7 +198,7 @@ def predict():
|
|||
rival_move = card_play_action_seq[-2][1]
|
||||
else:
|
||||
rival_move = card_play_action_seq[-1][1]
|
||||
info_set.rival_move = rival_move
|
||||
info_set.last_move = rival_move
|
||||
info_set.legal_actions = _get_legal_card_play_actions(player_hand_cards, rival_move)
|
||||
|
||||
# Prediction
|
||||
|
@ -261,7 +260,7 @@ class InfoSet(object):
|
|||
self.card_play_action_seq = None
|
||||
self.other_hand_cards = None
|
||||
self.legal_actions = None
|
||||
self.rival_move = None
|
||||
self.last_move = None
|
||||
self.last_moves = None
|
||||
self.played_cards = None
|
||||
self.bomb_num = None
|
||||
|
|
Loading…
Reference in New Issue