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.
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).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
The README described two behaviors that don't match the actual code. This PR corrects both so the docs are accurate.
Changes
public/game.js(cpuMove) picks a random empty cell. Updated to say random AI.sql.jsruns in-memory, butserver/db.jspersists to a file (server/data/games.db). Updated to say file-based persistence.No code changes — documentation only.
@@ -1,10 +1,10 @@# Tic Tac ToeA 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).what is a "random AI"? Do you mean an AI which makes random moves? Is it even an AI ?
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).