Skip to content

Console-based Tic-Tac-Toe game implemented in Rust. The game utilizes the crossterm library for cross-platform terminal manipulation.

License

Notifications You must be signed in to change notification settings

cqb13/terminal-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Console-based Tic-Tac-Toe game implemented in Rust. The game utilizes the crossterm library for cross-platform terminal manipulation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages