Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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 creating

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis In Microsoft Excel

Authors: Alex Holloway

1st Edition

B0CCCPKTTX, 979-8852388452

More Books

Students also viewed these Databases questions

Question

How are ???? and ???? different?

Answered: 1 week ago

Question

1. Which position would you take?

Answered: 1 week ago