This is a simple console-based Tic-Tac-Toe game implemented in Rust. The game utilizes the crossterm
library for cross-platform terminal manipulation.
-
Console-based Interface: The game is played in the console, providing a simple and familiar experience.
-
Player Movement: Use arrow keys to navigate the cursor for selecting the position to place your marker.
-
Marker Representation: Players are visually represented by colored markers on the board.
-
Turn-based Gameplay: The game follows a turn-based structure, allowing players to take alternating moves.
- Ensure you have Rust installed on your system.
- Clone the repository:
git clone https://github.com/your/repo.git
- Navigate to the project directory:
cd tic-tac-toe-rust
- Run the game:
cargo run
- Players are represented by markers: 🟢 (Player 1) and ❌ (Player 2).
- Use the arrow keys to navigate the cursor on the game board.
- Press Enter to place your marker in the selected position.
- The game ends when a player achieves a winning combination or the board is full.
- Add a proper game over screen with the option to restart.
- Enhance the console UI for a better visual experience.