# 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 With Docker Compose Optional: copy `.env.example` to `.env` and change `APP_PORT`. ```powershell docker compose up --build ``` Then open `http://localhost:8787` in two browser windows. The first two connected players are paired automatically. Set a different host port with: ```powershell $env:APP_PORT=9090; docker compose up --build ``` Stop it with: ```powershell docker compose down ``` ## Run Locally ```powershell npm start ``` Then open `http://localhost:8787` in two browser windows. Set a different port with: ```powershell $env:APP_PORT=9090; 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.