Skip to content

feat: add AI player toggle for boardgame.io games#5

Merged
devp merged 2 commits intomainfrom
claude/add-ai-player-toggle-fhUTP
Jan 31, 2026
Merged

feat: add AI player toggle for boardgame.io games#5
devp merged 2 commits intomainfrom
claude/add-ai-player-toggle-fhUTP

Conversation

@devp
Copy link
Owner

@devp devp commented Jan 31, 2026

Add support for toggling AI (RandomBot) for either or both players:

  • Add ai.enumerate functions to Tic-Tac-Toe and Rock-Paper-Scissors games
  • Create AI toggle UI controls in the game view header
  • Configure Local() multiplayer with bots based on AI settings
  • Show (AI) indicator next to player names when AI is enabled

https://claude.ai/code/session_018cNpftMV4MyLtbm7k5jSSh

@netlify
Copy link

netlify bot commented Jan 31, 2026

Deploy Preview for devp-fgj-js ready!

Name Link
🔨 Latest commit f43c93d
🔍 Latest deploy log https://app.netlify.com/projects/devp-fgj-js/deploys/697e1611931a700008e9fb54
😎 Deploy Preview https://deploy-preview-5--devp-fgj-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Add support for toggling AI (RandomBot) for either or both players:
- Add ai.enumerate functions to Tic-Tac-Toe and Rock-Paper-Scissors games
- Create AI toggle UI controls in the game view header
- Configure Local() multiplayer with bots based on AI settings
- Show (AI) indicator next to player names when AI is enabled

https://claude.ai/code/session_018cNpftMV4MyLtbm7k5jSSh
Switch from RandomBot to MCTSBot (Monte Carlo Tree Search) for
Tic-Tac-Toe to provide smarter AI gameplay. RandomBot is still
used for Rock-Paper-Scissors since MCTS doesn't work well with
simultaneous move games.

MCTSBot configuration:
- 500 iterations per move decision
- 20 playout depth for simulation

https://claude.ai/code/session_018cNpftMV4MyLtbm7k5jSSh
@devp devp force-pushed the claude/add-ai-player-toggle-fhUTP branch from 3b6a6b0 to f43c93d Compare January 31, 2026 14:47
@devp devp merged commit 1ffb14e into main Jan 31, 2026
5 checks passed
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.

2 participants