Starting from:

$10

Ancient dice game

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

More products