Skip to content

A normal TicTacToe Game , basic UI and simple algorithm.

Notifications You must be signed in to change notification settings

igagansingh/TicTacToe

Repository files navigation

TicTacToe

A multiplayer TicTacToe Game , basic UI and simple algorithm.

A quick walkthrough with the algorithm.

The game uses table in the xml format with rows and coloumns with button , represented as a 2-D aray in .java file. Code is easy to understand , the principle function is : private boolean checkWinner(char[][] board, int size, char player); It has three sections :

1. Checking if the rows have the same value(boolean).
2. Checking if the coloumns have the same value(boolean).
3. Checking if the diagonals have the same value(boolean).

That's it , rest is pretty much simple.
Please note : To add the sting names according to your choice in values folder. Adding/modifying color in the color folder placed in values folder. .java is commented well, follow that !

About

A normal TicTacToe Game , basic UI and simple algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages