Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cqb13/terminal-tic-tac-toe
Console-based Tic-Tac-Toe game implemented in Rust. The game utilizes the crossterm library for cross-platform terminal manipulation.
https://github.com/cqb13/terminal-tic-tac-toe
rust rust-terminal-game terminal-game tic-tac-toe tic-tac-toe-ai tictactoe-ai tictactoe-game
Last synced: 17 days ago
JSON representation
Console-based Tic-Tac-Toe game implemented in Rust. The game utilizes the crossterm library for cross-platform terminal manipulation.
- Host: GitHub
- URL: https://github.com/cqb13/terminal-tic-tac-toe
- Owner: cqb13
- License: mit
- Created: 2023-11-27T21:38:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-09T15:01:26.000Z (11 months ago)
- Last Synced: 2024-11-02T20:42:36.229Z (2 months ago)
- Topics: rust, rust-terminal-game, terminal-game, tic-tac-toe, tic-tac-toe-ai, tictactoe-ai, tictactoe-game
- Language: Rust
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust Tic-Tac-Toe
This is a simple console-based Tic-Tac-Toe game implemented in Rust. The game utilizes the `crossterm` library for cross-platform terminal manipulation.
## Features
- **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.
## How to Run
1. Ensure you have Rust installed on your system.
2. Clone the repository: `git clone https://github.com/your/repo.git`
3. Navigate to the project directory: `cd tic-tac-toe-rust`
4. Run the game: `cargo run`## How to Play
1. Players are represented by markers: 🟢 (Player 1) and ❌ (Player 2).
2. Use the arrow keys to navigate the cursor on the game board.
3. Press Enter to place your marker in the selected position.
4. The game ends when a player achieves a winning combination or the board is full.## Future Improvements
- Add a proper game over screen with the option to restart.
- Enhance the console UI for a better visual experience.