Difficulty Level : Easy
The game is to be played between two people (in this program between HUMAN and COMPUTER). One of the player chooses ‘O’ and the other ‘X’ to mark their respective cells. The game starts with one of the players and the game ends when one of the players has one whole row/ column/ diagonal filled with his/her respective character (‘O’ or ‘X’). If no one wins, then the game is said to be draw.
If both the players play optimally then it is destined that you will never lose (“although the match can still be drawn”). It doesn’t matter whether you play first or second.In another ways – “ Two expert players will always draw ”.
This is very easy java code & easy to play.
-
Download the above java file and run the code on your choice of IDE.
-
Click on "Run"
-
It ask you to enter your name & your opponent name after that your game will begain
-
Who score heighest marks will win.
- Ekta Arora
- Aaquib Ali
- Shrejal Singh
- Ruthvik Kanukunta