diff options
| author | Edvin Jakobsson <[email protected]> | 2026-09-08 19:12:32 +0200 |
|---|---|---|
| committer | Edvin Jakobsson <[email protected]> | 2026-09-08 19:12:32 +0200 |
| commit | 0462fb589a674abb66a1de3cef446572d6a02ee1 (patch) | |
| tree | e14f2819dbc7bdd3a5c8bd53ca482837856ef167 | |
| parent | 6d6e40cd35f1898b1e2bd0e926d9a4fa1cdab9cc (diff) | |
Added README
| -rw-r--r-- | README.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..92ba6f3 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# Connect Four + +A little Connect Four in C, built as a first go at driving SDL2 directly — window setup, loading BMP textures, mouse and keyboard events, a game loop that redraws every frame. + +Two players share a mouse and keyboard: click a column to drop a disc, and a highlight bar follows the cursor across the top row so you can see which column you're about to drop into. + +There's no actual four-in-a-row check anywhere in the code. Instead, whoever gets four in a row just presses a key to claim the win themselves, which bumps their score and starts a new round. Honor system instead of a win-condition scanner. + +## Controls + +- Click a column to drop a disc +- `R` — red claims a win +- `Y` — yellow claims a win + +## Building + +Needs SDL2 and SDL2_ttf. + +```sh +make +./connect_four +``` + +## License + +GPLv3 — see `LICENSE`. |
