https://github.com/miguelgargallo/tictactoe-rust
This repository contains a simple implementation of the classic game "Tic-Tac-Toe" written in Rust. The game is played on a 3x3 board between two players, who take turns marking their symbol ('X' or 'O') on the board.
https://github.com/miguelgargallo/tictactoe-rust
game rs rust
Last synced: 4 months ago
JSON representation
This repository contains a simple implementation of the classic game "Tic-Tac-Toe" written in Rust. The game is played on a 3x3 board between two players, who take turns marking their symbol ('X' or 'O') on the board.
- Host: GitHub
- URL: https://github.com/miguelgargallo/tictactoe-rust
- Owner: miguelgargallo
- License: other
- Created: 2023-07-21T16:39:22.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-22T18:03:46.000Z (about 3 years ago)
- Last Synced: 2025-02-18T02:06:17.228Z (over 1 year ago)
- Topics: game, rs, rust
- Language: Rust
- Homepage: https://miguelgargallo.com
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: License.md
Awesome Lists containing this project
README
# Tic-Tac-Toe Rust

This repository contains a simple implementation of the classic game "Tic-Tac-Toe" written in Rust. The game is played on a 3x3 board between two players, who take turns marking their symbol ('X' or 'O') on the board. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
## Installation

Before running this game, make sure you have Rust installed in your system. If not, you can download it from [here](https://www.rust-lang.org/tools/install).
To download the game, clone the repository to your local machine using the following command:
```bash
git clone https://github.com/miguelgargallo/tictactoe-rust
```
## Usage
Navigate to the game's directory:
```bash
cd tictactoe-rust
```
Run the game:
```bash
cargo run
```
The game board is a 3x3 grid, represented as follows:
```bash
1 2 3
A . . .
B . . .
C . . .
```
Each cell in the grid is identified by a combination of a letter (A, B, C) and a number (1, 2, 3). For example, the top left cell is A1, the middle cell is `A1`, and the middle cell is `B2`, and so on.
When it's your turn, enter your move in the format `A1`, `B3`, `C2`, etc. The program will prompt you for your input.
## Contributing

Feel free to contribute to this project. Any contributions you make are greatly appreciated. Please read the [CONTRIBUTING.md](./CONTRIBUTING.md) for details on the code of conduct and the process for submitting pull requests.
## License

Permission is hereby granted, free of charge, to any person obtaining a copy of the Pylar AI software and associated documentation files (the "Software"), to visualize and use the Software solely for educational and informative purposes, subject to the following restrictions and conditions on the [PYLAR AI EDUCATIVE ML LICENSE](./License).