Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

* VB.net Programming Question. * Explained solution please. 4. VB Programming Project (45 Points): The pick-up-sticks game involves two players who take turns to play.

* VB.net Programming Question.

* Explained solution please.

image text in transcribed

4. VB Programming Project (45 Points): The pick-up-sticks game involves two players who take turns to play. Players can start with any number of sticks that they both agree upon before game. At each player's turn, the player must pick at least one stick and at most half the sticks. Whoever picks up the last stick loses the game. You are asked to implement this game so that a player can play against the computer. Requirements: 1) Design a user interface for the pick-up-sticks game on one Windows Form (20 points) You must use a combination of TextBox, Button, and Label controls to design your game interface. Other controls can be used in addition to the 3 basic types of controls. Your design must be able to support the game play with one human player playing against the computer. The user interface must be easy to use for most who know the rules of the game without any explanation. Label controls should be used appropriately to guide the players. The layout of the controls must be clean and organized. Related controls need to be aligned either horizontally, vertically, or both. Change the default values of the NAME property for each control to reflect its purpose and type. For example, the NAME property for the TextBox taking the Player's input can be changed to PlayerInputTextBox. Also change the default values of the TEXT property for Button and Label controls so that they are informative to the players. Change the FONT property of all Label controls to "Comic Sans MS with a size at least 14. 2) Programming with the following requirements: Let the player specify a starting number of sticks (5 points); Define a function that returns a value indicating whether the winner has been determined, if yes, who the winner is (10 points); After the player's turn, update the remaining number of sticks and use the function defined above to check if a winner has been determined and if the game should continue. (10 points)

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

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

=+3. Name and describe two different theories about hypnosis.

Answered: 1 week ago