Skip to content

Add Go board renderer with interactive demonstration #347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chris-prichard
Copy link

Summary

  • Add Go board renderer (go_renderer.js) with full board visualization for 9x9, 13x13, and 19x19 boards
  • Include interactive HTML test page with multiple game scenarios and board size demonstrations
  • Add comprehensive documentation for Go game state JSON structure

Test plan

  • Test renderer with different board sizes (9x9, 13x13, 19x19)
  • Verify stone placement and recent move highlighting
  • Test coordinate system and labeling
  • Validate JSON parsing and error handling
  • Test interactive demonstration page

Implements a JavaScript-based renderer for Go boards in the OpenSpiel environment, including proper stone placement visualization, move indication, and board sizing. Includes a demonstration HTML file for testing the renderer functionality.
@chris-prichard chris-prichard requested a review from jhtschultz June 6, 2025 15:46
jhtschultz added a commit to jhtschultz/kaggle-environments that referenced this pull request Jun 16, 2025
bovard pushed a commit that referenced this pull request Jun 16, 2025
* Update OpenSpiel to v1.6.0

* Add example HTML playthrough generator.

* Refactor open_spiel.py wrapper.

- Moves Open Spiel game and state objects from global variables to env
instance variables.
- Stores complete state and action history in env.info.
- Cleaner logic for registering envs.
- Open Spiel proxies are loaded by default if they exist and are
  accessed without the {game_name}_proxy suffix.
- Adds logging.
- Removes remaining references to GameMaster agent, particularly in
  default HTML renderer.

* Add proxies and UIs for tic-tac-toe, Go, poker, and chess (UI only).

Credit to chris-prichard for Go renderer
(#347).

* Fix Open Spiel env test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant