This is a simple implementation of the Tic-Tac-Toe game using the wxWidgets library. The game features a graphical user interface (GUI) where players can take turns and try to win by getting three of their symbols in a row.
To run this application, you need to have the following:
- C++ compiler
- wxWidgets library
-
Clone the repository:
git clone https://github.com/your-username/tic-tac-toe.git
-
Build the project using your preferred C++ compiler. Make sure to link against the wxWidgets library.
g++ MainFrame.cpp -o TicTacToe `wx-config --cxxflags --libs`
-
Run the compiled executable:
./TicTacToe
-
Launch the game and you will see the game board displayed on the screen.
-
The game starts with "Player X" turn. Each player takes turns by clicking on an empty cell in the grid.
-
The objective is to get three of your symbols (either "X" or "O") in a row, either horizontally, vertically, or diagonally.
-
The game ends when a player wins or there are no more empty cells on the grid, resulting in a draw.
-
To reset the game and start again, click the "Reset" button.
Contributions to the Face Encryptor project are welcome! If you have any bug reports, suggestions, or improvements, please feel free to submit a pull request or open an issue on the GitHub repository.
This project is licensed under the MIT License.
- The code is based on the wxWidgets Tic-Tac-Toe sample.
- Thanks to the wxWidgets community for their support and resources.