Files
tictactics/README.md

34 lines
988 B
Markdown

# Tictactics
A notepad-playable browser game that combines Tic Tac Toe's line-making goal with a small capture mechanic.
## Rules
- Two players alternate placing `X` and `O` on empty cells.
- The board is `5 x 5`.
- After placing a mark, enemy marks trapped in a straight line between the new mark and another friendly mark are captured and removed.
- Captures can happen in any of the eight directions.
- First player to make `4 in a row` wins.
- If the board fills with no winner, the game is a draw.
## Run Multiplayer
```powershell
npm start
```
Then open `http://localhost:3000` in two browser windows. The first two connected players are paired automatically.
Set a different port with:
```powershell
$env:PORT=4000; npm start
```
## Notes
- No authentication or user accounts are required.
- The server keeps games in memory only.
- If an opponent closes their window, the remaining player sees a disconnect error and waits for a new player.
- No build step is required.