Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 1.39 KB

File metadata and controls

48 lines (41 loc) · 1.39 KB

Games of Chance

A collection of different games:

  • Coin Flip
  • Cho-Han
  • Higher Card
  • Roulette

General info

Use Python functions and random module to build different games of chance.

Technologies

  • Python 3.7.6
    • random module
  • Git Bash 2.27.0
  • Atom v1.49.0
  • Windows 10 Pro

Features

  • Choose bet amount for each game.
    • Logic to prevent user entering invalid amount.
  • Display the result and the amount won or lost.
  • A wallet that is updated by the amount that is won or lost.
  • Coin Flip:
    • Guess if "Heads" or "Tails".
  • Cho-Han:
    • Rolling two dice and guess if sum is "Even" or "Odd".
  • Higher Card:
    • Drawing 2 cards from a deck and higher card wins.
    • Option to play for chosen number of rounds from 1 to 26 (full deck).
    • Place individual bets in each round.
    • Create local wallet for this game so that user cannot overspend if playing several rounds.
    • Display colour and strength of card after each round.
    • Sum up wins and losses after each round.
    • Update global wallet only at the end of all rounds.
  • Roulette:
    • Option to choose bet type.
    • Different payouts according to bet type.

To-do list:

  • Finish Roulette game
  • Option to choose which game the user wants to play and how many rounds

Status

Project is: in progress

Inspiration

The project idea is from the Computer Science Carreer Path on Codecademy.