# Program 2 – Number Baseball Game with screenshot – Instant Delivery – Perfect Solution

Lab Price = \$12
Payment methods

Problem Statement

Game Description:
1. This game is a hidden number finding game called the Number Baseball Game.
2. At the beginning of the game, a computer chooses randomly three numbers among 1 to 9. But this numbers are not shown to a game player. The numbers cannot be duplicated.
Example) 913, 319, 457, 175…. 335 (incorrect), 340 (incorrect)
3. The computer accepts three numbers from the player and shows the result for the input. If a number in player’s input matches a number in computer’s number and is placed in the same order, it is considered 1 strike. If a number in player’s input matches a number in computer’s number but is not placed in the same order, it is considered 1 ball.
Example) a computer’s number: 913, a user’s input: 935 ==> 1 strike and 1 ball
a computer’s number: 913, a user’s input: 915 ==> 2 strikes
a computer’s number: 913, a user’s input: 395 ==> 2 balls
a computer’s number: 913, a user’s input: 865 ==> No strike and no ball.
4. Allow up to five times of trial for each game. If a player gets three strikes within five times, it is a win of the player. If a player doesn’t get three strikes within five times, it is a loss of the player. Show the message for win or loss.
5. After each game, show the total number of games played and wins and the win percentage of the user. After that, ask the player whether to continue. If the player wants to continue, start a new game. Otherwise, terminate the program.

Programming Requirements:
1. Write a Visual Studio 2012 C# Console App that plays the Number Baseball Game.
2. Use at least one static method (except Main method) and one instance method.
3. Include your class (es) in the namespace called “NumBaseBall.”
4. At the beginning of the game, show your name.
5. After creating computer’s number, show them for the grading, but consider them as hidden to the game player.

Relevant Material
Screenshots

Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at support@iqrajavaid.com.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at support@iqrajavaid.com and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.