Lab 09 Instructions Lab 09 Instructions Project 9-1: Build the PIG game app For this project, you will build a single-page app (SPA) that uses session state to persist data between requests....

1 answer below »
I need these assignment done by 11/6/2021 by 5pm if possible


Lab 09 Instructions Lab 09 Instructions Project 9-1: Build the PIG game app For this project, you will build a single-page app (SPA) that uses session state to persist data between requests. Specifications  When the app starts, or when the user clicks New Game, the scores for both players, the value for the die, and the total for the turn should all be zero.  When it’s their turn, a player can click Roll to roll the die or Hold to end their turn and add the point total for that turn to their score.  When a player clicks Roll, the app should generate and display a random number between 1 and 6 (see below). If the number is 1, the point total for the turn should be set to zero, and that player’s turn should end. Otherwise, the number rolled should be added to the point total for the turn, and the player’s turn should continue.  When a player clicks Hold, the app should add their points for that turn to their score and then end the turn. If the score is greater than the number of points needed to win, the app should end the game and display the name of the winner.  Clicking the browser’s Refresh button should only redisplay the page, not post the previous button click again.  Use the Random class in the System namespace to generate a random number like this: Random rand = new Random(); int roll = rand.Next(1, 7);  Use session state to store game data between requests. Lab 10 Instructions Lab 10 Instructions Project 10-1: Build the Tic Tac Toe app For this project, you will build a single-page app that uses model binding to pass data between controllers and views. Specifications  When the app starts, it should display nine


Answered 2 days AfterNov 05, 2021

Answer To: Lab 09 Instructions Lab 09 Instructions Project 9-1: Build the PIG game app For this project, you...

Amar Kumar answered on Nov 06 2021
111 Votes
Our program
Students’ program
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here