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.
Before running this game, make sure you have Rust installed in your system. If not, you can download it from here.
To download the game, clone the repository to your local machine using the following command:
git clone https://github.com/miguelgargallo/tictactoe-rust
Navigate to the game's directory:
cd tictactoe-rust
Run the game:
cargo run
The game board is a 3x3 grid, represented as follows:
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.
Feel free to contribute to this project. Any contributions you make are greatly appreciated. Please read the CONTRIBUTING.md for details on the code of conduct and the process for submitting pull requests.
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.