From d5d184ca1c76bc5f0da3be3254d617a5e770f3b2 Mon Sep 17 00:00:00 2001 From: zhiyang7 Date: Tue, 28 Dec 2021 09:36:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- evaluate_server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/evaluate_server.py b/evaluate_server.py index f42bc45..3df0838 100644 --- a/evaluate_server.py +++ b/evaluate_server.py @@ -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