A simple command-line tic-tac-toe game written in Node.js.
No dependencies required - uses Node.js built-in modules only.
npm start
Or run directly:
node tictactoe.js
1 | 2 | 3
-----------
4 | 5 | 6
-----------
7 | 8 | 9
# Tic-Tac-Toe A simple command-line tic-tac-toe game written in Node.js. ## Installation No dependencies required - uses Node.js built-in modules only. ## Usage ```bash npm start ``` Or run directly: ```bash node tictactoe.js ``` ## How to Play - Players take turns entering positions 1-9 - Player X goes first - First player to get three in a row wins - If all positions are filled with no winner, it's a draw ## Game Layout ``` 1 | 2 | 3 ----------- 4 | 5 | 6 ----------- 7 | 8 | 9 ```
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 32000 | bot_Claude_Anthropic | Initial commit: Add tic-tac-toe game with source, README, package.json, and Makefile |