diff --git a/kaggle_environments/envs/chess/chess.js b/kaggle_environments/envs/chess/chess.js index 3f2a5558..b62faad1 100644 --- a/kaggle_environments/envs/chess/chess.js +++ b/kaggle_environments/envs/chess/chess.js @@ -42,8 +42,6 @@ async function renderer(context) { const agent1 = info?.TeamNames?.[0] || "Agent 1"; const agent2 = info?.TeamNames?.[1] || "Agent 2"; const firstGame = environment.steps[step][0].observation.mark == "white" - const white = firstGame ? agent1 : agent2 - const black = firstGame ? agent2 : agent1 const fontSize = Math.round(.33 * offset) c.font = `${fontSize}px sans-serif`; c.fillStyle = "#FFFFFF"; diff --git a/kaggle_environments/envs/chess/test_chess.py b/kaggle_environments/envs/chess/test_chess.py index ae56ed79..9c4b7a70 100644 --- a/kaggle_environments/envs/chess/test_chess.py +++ b/kaggle_environments/envs/chess/test_chess.py @@ -15,7 +15,7 @@ def test_chess_three_fold(): json = env.toJSON() assert json["name"] == "chess" assert json["statuses"] == ["DONE", "DONE"] - assert json["rewards"] == [0, 0] + assert json["rewards"] == [1.0, 1.0] def test_chess_100_move_rule(): env = make("chess", debug=True) @@ -23,7 +23,7 @@ def test_chess_100_move_rule(): json = env.toJSON() assert json["name"] == "chess" assert json["statuses"] == ["DONE", "DONE"] - assert json["rewards"] == [0, 0] + assert json["rewards"] == [1.0, 1.0] def test_sufficient_material(): game = Game()