[SOLVED] SOLVED:Ancient dice game

15.99 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

Purpose: This pogram will simulate an ancient dice game for 2 players
Algorithm:
1) Ask for player 1 and player 2 names
2) Generate a random number, if it’s even, player 1 goes first, otherwise, player 2 goes first
3) Generate 6 random numbers between 1 and 6 and store them into dice[] array
4) Output the dice[] array onto the screen
5) Let the user choose their dice combination to cash in or socre
6) Update their score according to their input
7) Output the score of player 1

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.