bug(Santorini): Display Debug - #160
Conversation
…nly displays initial state
The initial prompt showed game_state['valid_moves'], which is set to _get_valid_moves(0) at reset, so every player was shown player 0's valid moves instead of their own. Use _get_valid_moves(player_id) so each player sees the moves for their own workers. Keeps the is_open/show_valid options and the create_board_str signature unchanged.
|
Reworked to a minimal fix — ready to merge. I pushed a commit that keeps the real bug fix but drops the collateral changes. The actual bug: the initial prompt showed if self.show_valid:
prompt += f"\nValid moves: {self._get_valid_moves(player_id)}"Why the rest was reverted: the previous version deleted the Verified on 3.11 (3-player): each player's prompt now matches |
|
Thanks for catching this, @cstorm125. I've rebased the one-line fix onto current |
Properly displays board and valid moves for Santorini environment.
Previously, it was displaying incorrect initial board state for each player causing confusion for agent starting second.