Skip to content

Add Connect Four app - #75

Merged
freethinkel merged 1 commit into
fmctools:mainfrom
zeezooX:add-connect-four
Dec 1, 2026
Merged

freethinkel merged 1 commit into
fmctools:mainfrom
zeezooX:add-connect-four

Conversation

@zeezooX

@zeezooX zeezooX commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Connect Four against a bot on a canvas UI: tap a column (or move the waiting disc with the crown and tap off the board) to drop a disc. Easy / Medium / Hard and who moves first are picked on the start screen; the level and win/loss/draw tallies per level are stored with a magic and version.

The bot is negamax with alpha-beta pruning on bitboards, iterative deepening, threat-first and centre-first move ordering, a 2048-entry transposition table in a static, and an integer heuristic (open threes/twos/ones per window, centre column, threats on the rows of each side's zugzwang parity). The search polls input every 30 ms and stops on a per-level node and time budget, so BUTTON still ends the app at once.

Connect Four against a bot on a canvas UI: tap a column (or move the waiting
disc with the crown and tap off the board) to drop a disc. Easy / Medium /
Hard and who moves first are picked on the start screen; the level and
win/loss/draw tallies per level are stored with a magic and version.

The bot is negamax with alpha-beta pruning on bitboards, iterative
deepening, threat-first and centre-first move ordering, a 2048-entry
transposition table in a static, and an integer heuristic (open
threes/twos/ones per window, centre column, threats on the rows of each
side's zugzwang parity). The search polls input every 30 ms and stops on
a per-level node and time budget, so BUTTON still ends the app at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@freethinkel
freethinkel merged commit 729c978 into fmctools:main Dec 1, 2026
2 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