Question
C# - I do need to have the business logic of the game board in a seperate class using an array- im not sure how
C# - I do need to have the business logic of the game board in a seperate class using an array- im not sure how to set this up.. here are the instructions
Please help with this. program must be written in C# .. All of the game logic must be written in a seperate class using using an array that is passed in through a prperty that represents the game board. The class needs to have methods to determine of someone won, or if there was a tie, make sure all business logic is in a seperate class anot behind the UI..
***** These are the complete in instructions for the game assignment design
Create a Tic-Tac-Toe game that can be played by two players. The form will consist of a Tic-Tac-Toe board in which the users click on to choose their space. As the game is being played the Game Status section will tell whose turn it is. When someone wins or there is a tie, a message will be displayed in the Game status section telling the users the status. When someone wins the game the winning move needs to be indicated. There also needs to be a section that keeps track of the number of wins for each player, and the number of ties. When the game is finished the user may click the Start Game button to start a new game.
This program will consist of the main form and at least one class that will define the rules of the game. This class will have an array that is passed in through a property that represents the game board. The class will then have methods within it that determines if someone won, if there is a tie, or if neither has occurred yet. Make sure all business logic is in a separate class and not behind the UI.
Step 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