This is a simple Tic Tac Toe game where two players take turns placing their symbol (either an "X" or an "O") on a 3x3 board. The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
- "fmt"
- Run the
main
function. - Enter the names of the two players.
- Player 1 will place their symbol (an "X") on the board by entering the row and column where they want to place it.
- Player 2 will place their symbol (an "O") on the board by entering the row and column where they want to place it.
- The game continues until one player gets three of their symbols in a row or the board is full.
- If one player gets three of their symbols in a row, they win the game. If the board is full and no player has won, the game is a draw.
You can customize the symbols used in the game by modifying the p1BoardValue
and p2BoardValue
variables. You can also adjust the size of the board by modifying the board
variable.