Skip to content

Instantly share code, notes, and snippets.

@JamesJinPark
Created August 29, 2014 20:29
Show Gist options
  • Save JamesJinPark/4a75a9d6b73c22fab474 to your computer and use it in GitHub Desktop.
Save JamesJinPark/4a75a9d6b73c22fab474 to your computer and use it in GitHub Desktop.
Assignment 1 - Odd / Even game
#I am the creator of this program. This program is designed to implement a simple gambling game where one player is "odd" and the other player is "even." Each player begins witha certain amount of money and each player chooses some money to bet. If sum is odd, odd player wins. If sum is even, even player wins. Play continues until one or the other player has less than 2 * the maximum bet or until the human player decides to quit.
import random
a = "Human money"
b = "Computer money"
c = "Maximum bet"
Name = raw_input("Do you want to be even?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment