Skip to content

Add human vs agent mode#13

Merged
danielriddell21 merged 2 commits into
trunkfrom
feat/human-vs-agent
Jul 17, 2026
Merged

Add human vs agent mode#13
danielriddell21 merged 2 commits into
trunkfrom
feat/human-vs-agent

Conversation

@danielriddell21

@danielriddell21 danielriddell21 commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Play against an agent yourself in the GUI: set a side to human and click a
piece then a destination.

just gui -- --white human --black minimax   # you (white) vs minimax
  • human agent whose move comes from mouse clicks (blocks until you click; no time limit)
  • click-to-move with selected-square + legal-move highlights, auto-queen on promotion
  • only works in the GUI build (-tags ebiten) and can't be combined with --record

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.71429% with 11 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/cli/root.go 0.00% 5 Missing ⚠️
internal/game/game.go 0.00% 4 Missing ⚠️
internal/agent/human.go 89.47% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@sonarqubecloud

Copy link
Copy Markdown

@danielriddell21
danielriddell21 merged commit 605f3ff into trunk Jul 17, 2026
10 checks passed
@danielriddell21
danielriddell21 deleted the feat/human-vs-agent branch July 17, 2026 16:32
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