skip to content
sys.name
vvhybe_os 26.10
status
200 building papyrus
user
vvhybe (yassine bouba)

cat tic-tac-toe/

17 / 19

Tic-Tac-Toe

A static tic-tac-toe, then a PHP and MySQL rewrite to learn the whole stack.

year
2022
access
-r--r--r-- (archived, read-only)
Tic-Tac-Toe, screenshot

// overview

A static tic-tac-toe, then a PHP and MySQL rewrite to learn the whole stack.

// static first

Eight winning lines, checked after every move; X and O cloned from templates; a fresh board thirty seconds after a game ends.

// then the whole stack

The rewrite added players and scores: PHP controllers for registration, login and scores, a MySQL schema of players and statistics, and stored procedures that do the work in the database. The game posts the score as JSON after each win.

// stack

  • css
  • javascript
  • php
  • mysql

// links