Here is an outline of how I would approach the task:
Output:imports
initial variable assignments
define rps (input current credits)
play a round
return new credits
define roulette (input current credits)
play a round
return new credits
define coinflip (input current credits)
play a round
return new credits
loop:
choose game mode
play a game
play another round or go back to loop
It is very simplified, but I think you can get some good ideas from the example.