docs: make README consistent with implementation #1

Merged
daniel-jirca merged 2 commits from docs/readme-consistency into master 2026-09-27 18:17:21 +03:00
Owner

Summary

The README described two behaviors that don't match the actual code. This PR corrects both so the docs are accurate.

Changes

  • CPU mode: README claimed a minimax AI, but public/game.js (cpuMove) picks a random empty cell. Updated to say random AI.
  • SQLite: README said sql.js runs in-memory, but server/db.js persists to a file (server/data/games.db). Updated to say file-based persistence.

No code changes — documentation only.

## Summary The README described two behaviors that don't match the actual code. This PR corrects both so the docs are accurate. ## Changes - **CPU mode**: README claimed a *minimax* AI, but `public/game.js` (`cpuMove`) picks a random empty cell. Updated to say *random AI*. - **SQLite**: README said `sql.js` runs *in-memory*, but `server/db.js` persists to a file (`server/data/games.db`). Updated to say *file-based persistence*. No code changes — documentation only.
daniel-jirca added 1 commit 2026-09-27 09:14:21 +03:00
- CPU mode uses a random AI, not minimax
- SQLite uses file-based persistence, not in-memory
README.md Outdated
@@ -1,10 +1,10 @@
# Tic Tac Toe
A tic-tac-toe game with two modes: **CPU** (play against a minimax AI) and **Online** (real-time 2-player over WebSocket).
A tic-tac-toe game with two modes: **CPU** (play against a random AI) and **Online** (real-time 2-player over WebSocket).
Author
Owner

what is a "random AI"? Do you mean an AI which makes random moves? Is it even an AI ?

what is a "random AI"? Do you mean an AI which makes random moves? Is it even an AI ?
Collaborator

Good catch — it's not a real AI; the CPU just picks a random empty cell with no strategy. I reworded line 3 to say the CPU mode plays against a CPU opponent that makes random moves (commit da52159).

Good catch — it's not a real AI; the CPU just picks a random empty cell with no strategy. I reworded line 3 to say the CPU mode plays against a CPU opponent that makes random moves (commit da52159).
daniel-jirca marked this conversation as resolved
robi added 1 commit 2026-09-27 17:08:52 +03:00
robi approved these changes 2026-09-27 18:16:33 +03:00
daniel-jirca merged commit c4d707b5ad into master 2026-09-27 18:17:21 +03:00
daniel-jirca deleted branch docs/readme-consistency 2026-09-27 18:17:22 +03:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: daniel-jirca/ttt#1