Write a program that rolls a dice (but hide the number from player) and then ask user enter a number in range of 1 - 6. If player enters same number of computer rolled, then the player earns $10. If player enters a number that is smaller or larger by 1, then the player earns $3. If player enters a number that is smaller or larger by 2, then the player earns $1. Player has to pay $3 dollar to play once. Make a MatchDice game.
slman 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
slman 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
slman 0 Newbie Poster
slman 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
stultuske 1,116 Posting Maven Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.