This is a Tic Tac Toe game that uses an Arduino board to control the game pieces. The game is played on a 10x10 board, and the objective is to get a row, column, or diagonal of X's or O's before your opponent does.
To run this program, you will need:
- Python
- PySerial
- An Arduino board
- Connect the Arduino board to your computer via USB.
- Install the PySerial package by running pip install pyserial in your terminal.
- Download or clone the repository to your local machine.
- Open the file 10X10.py in your preferred text editor.
- Modify the makeblock variables in the draw_board function to match the name of the serial port that your Arduino board is connected to. This should be in the format "comX" on Windows.
- Save your changes and run the program using python 10X10.py.
- The game starts with an empty board.
- Player 1 goes first and places an "X" on the board by inputting the x and y coordinates of the cell they want to play in.
- Player 2 (the CPU) then places an "O" on the board by selecting an available cell.
- Play continues until one player gets a row, column, or diagonal of three X's or O's, or until the board is full.
- If a player wins, the game ends and their victory is announced. If the board is full without a winner, the game ends in a draw.
This game was created by rairahual7@gmail.com as a programming exercise.