22***
33## The user is initially displayed with an option to choose your opponent, either against the computer or a friend.
44
5- ![ Capture_NestedTicTacToe_MainMenu] ( )
5+ ![ Capture_NestedTicTacToe_MainMenu] ( https://github.com/04xRaynal/Nested_TicTacToe_JavaSwing/blob/85b913f85ab05f6e67fe220b1a5b483f3ecf27e1/Captured%20Images/Capture_NestedTicTacToe_MainMenu.PNG )
66
77---
88Play alternates between the user(player1) who initially is X and the player2/CPU which is O.
99
1010Image displaying a game between the user and CPU:
1111
12- ![ Capture_NestedTicTacToe_vsComputer] ( )
12+ ![ Capture_NestedTicTacToe_vsComputer] ( https://github.com/04xRaynal/Nested_TicTacToe_JavaSwing/blob/85b913f85ab05f6e67fe220b1a5b483f3ecf27e1/Captured%20Images/Capture_NestedTicTacToe_vsComputer.PNG )
1313
1414---
1515When a player plays his move by clicking on a tile, a new Window is opened which starts a new game(A Nested Game), the winner of the nested game gets his mark set on the main board.
1616
17- ![ Capture_NestedTicTacToe_vsComputerNested] ( )
17+ ![ Capture_NestedTicTacToe_vsComputerNested] ( https://github.com/04xRaynal/Nested_TicTacToe_JavaSwing/blob/85b913f85ab05f6e67fe220b1a5b483f3ecf27e1/Captured%20Images/Capture_NestedTicTacToe_vsComputerNested.PNG )
1818
1919---
2020This continues for all the tiles, until there's a winner on the main board.
2121
22- ![ Capture_NestedTicTacToe_vsComputerNested_Winner] ( )
22+ ![ Capture_NestedTicTacToe_vsComputerNested_Winner] ( https://github.com/04xRaynal/Nested_TicTacToe_JavaSwing/blob/85b913f85ab05f6e67fe220b1a5b483f3ecf27e1/Captured%20Images/Capture_NestedTicTacToe_vsComputerNested_Winner.PNG )
2323
2424The score of the main game as well as the nested games gets recorded accordingly.
2525
26- ![ Capture_NestedTicTacToe_vsComputerNested_2] ( )
26+ ![ Capture_NestedTicTacToe_vsComputerNested_2] ( https://github.com/04xRaynal/Nested_TicTacToe_JavaSwing/blob/85b913f85ab05f6e67fe220b1a5b483f3ecf27e1/Captured%20Images/Capture_NestedTicTacToe_vsComputerNested_2.PNG )
2727
2828---
2929
3030After the game(in the main board) ends a dialog box is displayed announcing the result and the score. The user is given an option for a re-match(play again).
3131
32- ![ Capture_TicTacToe_vsComputer_Winner] ( )
32+ ![ Capture_TicTacToe_vsComputer_Winner] ( https://github.com/04xRaynal/Nested_TicTacToe_JavaSwing/blob/85b913f85ab05f6e67fe220b1a5b483f3ecf27e1/Captured%20Images/Capture_NestedTicTacToe_vsComputer_Winner.PNG )
3333
3434---
3535If the user selects 'Yes' on the Play again option, a new game starts, but now the user (player 1) is O and the cpu/player2 is X.
@@ -46,7 +46,7 @@ After the end of a game, if the user selects 'No' on the Play again option, the
4646
4747Image displaying a new game between Player 1 & Player 2 (vs Friend):
4848
49- ![ Capture_NestedTicTacToe_vsFriend] ( )
49+ ![ Capture_NestedTicTacToe_vsFriend] ( https://github.com/04xRaynal/Nested_TicTacToe_JavaSwing/blob/85b913f85ab05f6e67fe220b1a5b483f3ecf27e1/Captured%20Images/Capture_NestedTicTacToe_vsFriend.PNG )
5050
5151---
5252
@@ -55,8 +55,11 @@ The score between the two players is also recorded and displayed at the bottom,
5555Top panel displays labels which indicate the turn of each player and their corresponding mark (either X or O).
5656
5757***
58+
5859Note:
60+
5961The code for NestedTicTacToe can be more compact if similar methods are joined and values distinguished with flags.
60- The TicTacToe code is from https://github.com/04xRaynal/TicTacToe_JavaSwing.git
62+
63+ The TicTacToe code is from https://github.com/04xRaynal/TicTacToe_JavaSwing.git
6164and only the nested components are added on top of it.
6265
0 commit comments