

current - Node - Current Node of state tree.begin - Node - top element of the state tree.void playTurn(int pl,int turn) // overridden.public static int checkWin2(String x,String o).public static int checkWin(int turn,int st).w2 - int : Number of games won by Player1(O).w1 - int: Number of games won by Player1(X).butClicked - int: Button recently clicked by the user.pl2 - Player: Player 2 object (Computer / Human).pl1 - Player: Player 1 object (Computer / Human).state - int: Current state of the Game.

Hope that after reading this post, you will be more interested in AI than before and will develop much better applications. The friendly language will help you easily understand the code. It is a simple demonstration of the power of AI. This project was originally developed by Mohd Akram.
