[Development] Tic Tac Toe
You want to play a round Tic Tac Toe? This simple implementation is built according to the client/server model, which makes is possible to play Tic Tac Toe above two computers in the same network. It’s also possible to play at one computer.
A special feature is that you can choose the size of the field: You can play the classic Tic Tac Toe with 3×3 and you can increase the size up to 10×10 where you need to have 10 in a row to win the game.
To play the game you need two applications: The Tic Tac Toe-Server and the Tic Tac Toe-Client. First you have to start the server. You choose the size of the field. After that you’ll see the field and the local IP-Address of your machine.
Now you can start the client on the same machine or on another computer in your local network. It will ask you about the address. Type in the address that you see in the server application and you can start playing.
Note: To play between two computers you need to open port 65535 on your router.
Source code available on GitHub.
- Play between two computers or on localhost
- Choose the size of the field
- Detect the winner
- Detect if no one can win the game
- Graphical user interface: Nimbus