The code for Tic-Tac-Toe game by me in C.
So, as you may know the rules.
- There are 2-players
- A player choices either 'X/O'
- Each player takes a trun to mark thier symbol on the a 3x3 board
- The player with 'X' starts first
- The player Wins under 3-conditions,
- Supposed - 1 in 3 rows of the board is filled with thier symbol
- Supposed - 1 in 3 column of the board is filled with thier symbol
- Supposed - 1 in 2 diagonals of the board is filled with thier symbol
There is a .java-file attached where you will find an error free code.
You will also find a .class-file, run it on JDK and start playing. Enjoy!