Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello I am having an issue with a C# related windows form question. I am currently unable to get my 4 x7 grid to function

Hello I am having an issue with a C# related windows form question. I am currently unable to get my 4 x7 grid to function properly as well as my different players would anyone be able to help get my source straightened out. The requirements for the project are as follows.

image text in transcribed

Sorry for being to broad. I am looking to create a windows form application via VStudio that is 4x7 to play the above game. On the 4x7 board I need all the dominoes from a double six set to be placed face down , more or less the numbers can be visible. Unlike dominoes I will not need to put dots I am allowed to just put like blank on one side the number 1 on the other. Then 1 and 1 etc up to the needed 28 tiles for double six set. What I have that I thing I do need still is the windows form project with a 4x7 panel. A small input box for player name and a list to hold the player objects. I then need the form code which should just be taking the input from player name and putting it into the list or that may need to be put into a separate class as an object (I am sort of confused by that). I then need a game class that does the actual math when flipping the two tiles over explained in the rules above and adding points. I also need a Domino class where each domino know what it is value wise so it can be used with form and game class. The last two segments in the above document also help describe what the game class should be doing I think? I would at least like to be able to see some sort of code for the separate Domino, Game, and Player Classs. What needs to go into them logic wise to produce the above game? How can I randomly assort them to the Panel on the form from the Game class? Let me know if that helps.. Thank you again for taking a look.

Thank you in advance

Concentration Domino Rules Domino-Games.com Number of Players: 2 or more Domino Set Required: Normally uses a double-six set, but larger sets may support more players Concentration Dominoes is similar to the Concentration card game. It's a simple game, and requires little planning or strategy, but a good memory definitely helps. Setup Shuffle the dominoes, then arrange them into a 4 x 7 grid. In Concentration, players do not have hands, but play from the tiles on the table Gameplay Each player in turn turns over two dominoes. If the dots on the two tiles add up to 12 (as in the 4-3 plus 4-1 in the photo), remove them from the grid, set them aside, and take another turn If the two dominoes do not add up to 12, turn them back over. Play passes to the next player. 1 form for the visual part of the game 1 class for the play of the game. (The form only shows the result of play game is controlled by the game class) 1 class for a domino (a domino knows what 2 values it holds, can be 2 text values does not need to be dots) The game class generates all of the dominoes for a double six set, and shuffles them before placing them on the form The game places all of the dominoes on the form not showing the values of the domino. A player clicks a domino and show the 2 values on the domino. Click the second domino show the 2 values if the total of the 2 dominoes add up to 12, add 12 to the player score and make the 2 dominoes non visible. If they do not add up to 12 then flip the dominoes back over. (Pause for a second or two before flipping over or making them non visible) When all of the dominoes are not visible the game is over the player with the highest score is declared the winner You may want to make the players objects also but is not required Concentration Domino Rules Domino-Games.com Number of Players: 2 or more Domino Set Required: Normally uses a double-six set, but larger sets may support more players Concentration Dominoes is similar to the Concentration card game. It's a simple game, and requires little planning or strategy, but a good memory definitely helps. Setup Shuffle the dominoes, then arrange them into a 4 x 7 grid. In Concentration, players do not have hands, but play from the tiles on the table Gameplay Each player in turn turns over two dominoes. If the dots on the two tiles add up to 12 (as in the 4-3 plus 4-1 in the photo), remove them from the grid, set them aside, and take another turn If the two dominoes do not add up to 12, turn them back over. Play passes to the next player. 1 form for the visual part of the game 1 class for the play of the game. (The form only shows the result of play game is controlled by the game class) 1 class for a domino (a domino knows what 2 values it holds, can be 2 text values does not need to be dots) The game class generates all of the dominoes for a double six set, and shuffles them before placing them on the form The game places all of the dominoes on the form not showing the values of the domino. A player clicks a domino and show the 2 values on the domino. Click the second domino show the 2 values if the total of the 2 dominoes add up to 12, add 12 to the player score and make the 2 dominoes non visible. If they do not add up to 12 then flip the dominoes back over. (Pause for a second or two before flipping over or making them non visible) When all of the dominoes are not visible the game is over the player with the highest score is declared the winner You may want to make the players objects also but is not required

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions