Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In VB.NET language Your task is to create a Tic-Tac-Toe game. Download the base project from blackboard. The GUI Will be as follows: (0.0)=X4(1,1)=0(2,1)=x5(2,0)=0 When
In VB.NET language
Your task is to create a Tic-Tac-Toe game. Download the base project from blackboard. The GUI Will be as follows: (0.0)=X4(1,1)=0(2,1)=x5(2,0)=0 When a user clicks a button, your code must determine whose turn it is (use a boolean or an integer counter, Le, odd =XX even =0 ) and mark the button appropriately. To mark the button, load an appropriate image. Afterwards that button should be disabled so nobody can cick the same button twice. As the users click buttons, use a 20 Array to store the data (wheje in the game board the X's and 0 's are). You will need to develop an algonithm to atso determine if there is a winher three in a row). This algorithm should start checking the game board after five turns have been: completed (because its impossible for anyone to win if only 4 tums have passed). When a user wins, update the score board and display a message congratulating the appropriate player (player 1=X, player 2=0 ) and reset the game so users can play again. Modularity: Do not shove all your logic in the event handler subprocedures. Create your own functions and/or subprocedures. There is also a menu strip that should provide the following functionality: Game > Now Match: Resets the scores to 0 and starts a new game (clears the game board). Game > Restart Game: Resets the current game board, but does not reset the scores. Game > Close: Closes the program (this code has been done for you). Holp > About: Opens a new window (form) that displays your name, class, and assignment. Help > How to Play: Opens a new window (form) that instructs the basic rules of the game. To add a new form, right-click on your project in solution explorer, select Add, and then click New ltem. In the next window, select Windows Forms on the left-hand side menu, select Form (Windows Forms) and then provide a name of the form you are creatingStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started