This is a project that I made, hope you like it
How to play
You are a robber who is trying to get money. You can do all kinds of things, such as rob a bank, eat a meal for health, become a youtube streamer, etc. Comment your high scores below to be on the leaderboard!
Thank you to:
- @hanlunli, who helped me code this
- @VulcanWM for the original idea. Go give his project an upvote at https://repl.it/talk/share/Diamond-Risk/40235
- @DillanSokalczuk for the colors that I used in my project.
- @ImmaEatYouMan for catching an error
I am open to any feedback.
it's a pretty neet game. nice job wit the color. and this is really similar to Diamond's risk. in my own opponent, you should make more of a difference. but overall, that's pretty good job. you deserve more cycles than you have now.
I love this game! It's like a level 2 for Diamond Risk. I have a question though; how do you program the luck factor? Is there a specific function? My high score was 287 dollars. Then I quacked...
@theroadtocode Thank you for the comment and the upvote! With the luck factor, I just used
random.randint. For example, if there was a 50 percent chance it would be like this:
import random def chance_example(): chance = random.randint(1,100) if chance <= 50: print('You are lucky!') elif chance > 50: print('You are unlucky.') else: pass chance_example()
Whenever I needed another chance, I would just add another
random.randint into the code.