Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Name: Joseph Miller
- #Date: 11/14/2017
- #Class: CSCI I
- #Assignment: Semester Final Project
- #Algorithm: Program plays Monopoly
- ############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
- #Imports RNG, Turtle Class, and Winsound
- import turtle
- import random
- import winsound
- #Defines variables
- space = ["Go", "Mediterranean Avenue", "Community Chest", "Baltic Avenue", "Income Tax", "Reading Railroad", "Oriental Avenue", "Chance", "Vermont Avenue", "Connecticut Avenue", "Jail (Visiting)", "St. Charles Place", "Electric Company", "States Avenue", "Virginia Avenue", "Pennsylvania Railroad", "St. James Place", "Community Chest", "Tennessee Avenue", "New York Avenue", "Free Parking", "Kentucky Avenue", "Chance", "Indiana Avenue", "Illinois Avenue", "B. & O. Railroad", "Atlantic Avenue", "Ventnor Avenue", "Water Works", "Marvin Gardens", "Jail", "Pacific Avenue", "North Carolina Avenue", "Community Chest", "Pennsylvania Avenue", "Short Line", "Chance", "Park Place", "Luxury Tax", "Boardwalk"]
- game = 1
- turn = random.randint(1, 2)
- p1s = 0
- p2s = 0
- p1m = 2000
- p2m = 2000
- p1rr = 0
- p2rr = 0
- p1u = 0
- p2u = 0
- p1dubs = 0
- p2dubs = 0
- p1free = 0
- p2free = 0
- buy = "x"
- #Mediterranean Avenue variables
- br1 = 0
- br1m = 0
- br1h = 0
- #Baltic Avenue variables
- br2 = 0
- br2m = 0
- br2h = 0
- #Oriental Avenue variables
- cy1 = 0
- cy1m = 0
- cy1h = 0
- #Vermont Avenue variables
- cy2 = 0
- cy2m = 0
- cy2h = 0
- #Connecticut Avenue variables
- cy3 = 0
- cy3m = 0
- cy3h = 0
- #St. Charles Place variables
- vi1 = 0
- vi1m = 0
- vi1h = 0
- #States Avenue variables
- vi2 = 0
- vi2m = 0
- vi2h = 0
- #Virginia Avenue variables
- vi3 = 0
- vi3m = 0
- vi3h = 0
- #St. James Place variables
- or1 = 0
- or1m = 0
- or1h = 0
- #Tennessee Avenue variables
- or2 = 0
- or2m = 0
- or2h = 0
- #New York variables
- or3 = 0
- or3m = 0
- or3h = 0
- #Kentucky Avenue variables
- red1 = 0
- red1m = 0
- red1h = 0
- #Indiana Avenue variables
- red2 = 0
- red2m = 0
- red2h = 0
- #Illinois Avenue variables
- red3 = 0
- red3m = 0
- red3h = 0
- #Atlantic Avenue variables
- ye1 = 0
- ye1m = 0
- ye1h = 0
- #Ventnor Avenue variables
- ye2 = 0
- ye2m = 0
- ye2h = 0
- #Marvin Gardens variables
- ye3 = 0
- ye3m = 0
- ye3h = 0
- #Pacific Avenue variables
- gr1 = 0
- gr1m = 0
- gr1h = 0
- #North Carolina Avenue variables
- gr2 = 0
- gr2m = 0
- gr2h = 0
- #Pennsylvania Avenue variables
- gr3 = 0
- gr3m = 0
- gr3h = 0
- #Park Place variables
- bl1 = 0
- bl1m = 0
- bl1h = 0
- #Boardwalk variables
- bl2 = 0
- bl2m = 0
- bl2h = 0
- #Reading Railroad variables
- rrr = 0
- rrrm = 0
- #Pennsylvania Railroad variables
- prr = 0
- prrm = 0
- #B. & O. Railroad variables
- brr = 0
- brrm = 0
- #Short Line Railroad variables
- srr = 0
- srrm = 0
- #Electric Company variables
- ec = 0
- ecm = 0
- #Water Works variables
- ww = 0
- wwm = 0
- #Free Parking variables
- fp = 200
- #Jail variables
- p1j = 0
- p1jt = 0
- p2j = 0
- p1jt = 0
- #Plays background music
- song = random.randint(1, 4)
- if song == 1:
- winsound.PlaySound('night.wav', winsound.SND_LOOP + winsound.SND_ASYNC)
- elif song == 2:
- winsound.PlaySound('day.wav', winsound.SND_LOOP + winsound.SND_ASYNC)
- elif song == 3:
- winsound.PlaySound('day2.wav', winsound.SND_LOOP + winsound.SND_ASYNC)
- elif song == 4:
- winsound.PlaySound('day3.wav', winsound.SND_LOOP + winsound.SND_ASYNC)
- #Sets up game board
- wn = turtle.Screen()
- wn.title("Monopoly")
- wn.setup(1000, 740)
- wn.bgpic("monopoly.png")
- wn.bgcolor("firebrick")
- #Sets up Chance cards
- chance1 = "chance1.gif"
- chance2 = "chance2.gif"
- chance3 = "chance3.gif"
- chance4 = "chance4.gif"
- chance5 = "chance5.gif"
- chance6 = "chance6.gif"
- chance7 = "chance7.gif"
- chance8 = "chance8.gif"
- chance9 = "chance9.gif"
- chance10 = "chance10.gif"
- chance11 = "chance11.gif"
- chance12 = "chance12.gif"
- chance13 = "chance13.gif"
- chance14 = "chance14.gif"
- chance15 = "chance15.gif"
- chance16 = "chance16.gif"
- wn.addshape(chance1)
- wn.addshape(chance2)
- wn.addshape(chance3)
- wn.addshape(chance4)
- wn.addshape(chance5)
- wn.addshape(chance6)
- wn.addshape(chance7)
- wn.addshape(chance8)
- wn.addshape(chance9)
- wn.addshape(chance10)
- wn.addshape(chance11)
- wn.addshape(chance12)
- wn.addshape(chance13)
- wn.addshape(chance14)
- wn.addshape(chance15)
- wn.addshape(chance16)
- card = turtle.Turtle()
- card.ht()
- card.shape(chance1)
- card.pu()
- card.speed(3)
- card.setpos(-800, 0)
- #Sets up Community Chest cards
- comm1 = "comm1.gif"
- comm2 = "comm2.gif"
- comm3 = "comm3.gif"
- comm4 = "comm4.gif"
- comm5 = "comm5.gif"
- comm6 = "comm6.gif"
- comm7 = "comm7.gif"
- comm8 = "comm8.gif"
- comm9 = "comm9.gif"
- comm10 = "comm10.gif"
- comm11 = "comm11.gif"
- comm12 = "comm12.gif"
- comm13 = "comm13.gif"
- comm14 = "comm14.gif"
- comm15 = "comm15.gif"
- comm16 = "comm16.gif"
- wn.addshape(comm1)
- wn.addshape(comm2)
- wn.addshape(comm3)
- wn.addshape(comm4)
- wn.addshape(comm5)
- wn.addshape(comm6)
- wn.addshape(comm7)
- wn.addshape(comm8)
- wn.addshape(comm9)
- wn.addshape(comm10)
- wn.addshape(comm11)
- wn.addshape(comm12)
- wn.addshape(comm13)
- wn.addshape(comm14)
- wn.addshape(comm15)
- wn.addshape(comm16)
- ccard = turtle.Turtle()
- ccard.ht()
- ccard.shape(comm1)
- ccard.pu()
- ccard.speed(3)
- ccard.setpos(-800, 0)
- #Sets up property ownership symbols
- catp = "cath.gif"
- stickmanp = "stickmanh.gif"
- carp = "carh.gif"
- thimblep = "thimbleh.gif"
- catcolorp = "catcolorh.gif"
- stickmancolorp = "stickmancolorh.gif"
- carcolorp = "carcolorh.gif"
- thimblecolorp = "thimblecolorh.gif"
- wn.addshape(thimblep)
- wn.addshape(stickmanp)
- wn.addshape(carp)
- wn.addshape(catp)
- wn.addshape(thimblecolorp)
- wn.addshape(stickmancolorp)
- wn.addshape(carcolorp)
- wn.addshape(catcolorp)
- prop1 = turtle.Turtle()
- prop1.ht()
- prop1.speed(0)
- prop1.pu()
- prop2 = prop1.clone()
- prop3 = prop1.clone()
- prop4 = prop1.clone()
- prop5 = prop1.clone()
- prop6 = prop1.clone()
- prop7 = prop1.clone()
- prop8 = prop1.clone()
- prop9 = prop1.clone()
- prop10 = prop1.clone()
- prop11 = prop1.clone()
- prop12 = prop1.clone()
- prop13 = prop1.clone()
- prop14 = prop1.clone()
- prop15 = prop1.clone()
- prop16 = prop1.clone()
- prop17 = prop1.clone()
- prop18 = prop1.clone()
- prop19 = prop1.clone()
- prop20 = prop1.clone()
- prop21 = prop1.clone()
- prop22 = prop1.clone()
- prop23 = prop1.clone()
- prop24 = prop1.clone()
- prop25 = prop1.clone()
- prop26 = prop1.clone()
- prop27 = prop1.clone()
- prop28 = prop1.clone()
- prop1.setpos(335 - 82 - 63 * 0, -335 - 70) #Mediterranean Avenue
- prop2.setpos(335 - 82 - 63 * 2, -335 - 70) #Baltic Avenue
- prop3.setpos(335 - 82 - 63 * 4, -335 - 70) #Reading Railroad
- prop4.setpos(335 - 82 - 63 * 5, -335 - 70) #Oriental Avenue
- prop5.setpos(335 - 82 - 63 * 7, -335 - 70) #Vermont Avenue
- prop6.setpos(335 - 82 - 63 * 8, -335 - 70) #Connecticut Avenue
- prop7.setpos(-335 - 70, -335 + 82 + 63 * 0) #St. Charles Place
- prop8.setpos(-335 - 70, -335 + 82 + 63 * 1) #Electric Company
- prop9.setpos(-335 - 70, -335 + 82 + 63 * 2) #States Avenue
- prop10.setpos(-335 - 70, -335 + 82 + 63 * 3) #Virginia Avenue
- prop11.setpos(-335 - 70, -335 + 82 + 63 * 4) #Pennsylvania Railroad
- prop12.setpos(-335 - 70, -335 + 82 + 63 * 5) #St. James Avenue
- prop13.setpos(-335 - 70, -335 + 82 + 63 * 7) #Tennessee Avenue
- prop14.setpos(-335 - 70, -335 + 82 + 63 * 8) #New York Avenue
- prop15.setpos(-335 + 82 + 63 * 0, 335 + 70) #Kentucky Avenue
- prop16.setpos(-335 + 82 + 63 * 2, 335 + 70) #Indiana Avenue
- prop17.setpos(-335 + 82 + 63 * 3, 335 + 70) #Illinois Avenue
- prop18.setpos(-335 + 82 + 63 * 4, 335 + 70) #B. & O. Railroad
- prop19.setpos(-335 + 82 + 63 * 5, 335 + 70) #Atlantic Avenue
- prop20.setpos(-335 + 82 + 63 * 6, 335 + 70) #Ventnor Avenue
- prop21.setpos(-335 + 82 + 63 * 7, 335 + 70) #Water Works
- prop22.setpos(-335 + 82 + 63 * 8, 335 + 70) #Marvin Gardens
- prop23.setpos(335 + 70, 335 - 82 - 63 * 0) #Pacific Avenue
- prop24.setpos(335 + 70, 335 - 82 - 63 * 1) #North Carolina Avenue
- prop25.setpos(335 + 70, 335 - 82 - 63 * 3) #Pennsylvania Avenue
- prop26.setpos(335 + 70, 335 - 82 - 63 * 4) #Short Line
- prop27.setpos(335 + 70, 335 - 82 - 63 * 6) #Park Place
- prop28.setpos(335 + 70, 335 - 82 - 63 * 8) #Boardwalk
- #Sets up mortgage symbols
- mortgage = "mortgaged.gif"
- wn.addshape(mortgage)
- m1 = turtle.Turtle()
- m1.shape(mortgage)
- m1.pu()
- m1.speed(0)
- m1.ht()
- m2 = m1.clone()
- m3 = m1.clone()
- m4 = m1.clone()
- m5 = m1.clone()
- m6 = m1.clone()
- m7 = m1.clone()
- m8 = m1.clone()
- m9 = m1.clone()
- m10 = m1.clone()
- m11 = m1.clone()
- m12 = m1.clone()
- m13 = m1.clone()
- m14 = m1.clone()
- m15 = m1.clone()
- m16 = m1.clone()
- m17 = m1.clone()
- m18 = m1.clone()
- m19 = m1.clone()
- m20 = m1.clone()
- m21 = m1.clone()
- m22 = m1.clone()
- m23 = m1.clone()
- m24 = m1.clone()
- m25 = m1.clone()
- m26 = m1.clone()
- m27 = m1.clone()
- m28 = m1.clone()
- m1.setpos(335 - 82 - 63 * 0, -335) #Mediterranean Avenue
- m2.setpos(335 - 82 - 63 * 2, -335) #Baltic Avenue
- m3.setpos(335 - 82 - 63 * 4, -335) #Reading Railroad
- m4.setpos(335 - 82 - 63 * 5, -335) #Oriental Avenue
- m5.setpos(335 - 82 - 63 * 7, -335) #Vermont Avenue
- m6.setpos(335 - 82 - 63 * 8, -335) #Connecticut Avenue
- m7.setpos(-333, -335 + 82 + 63 * 0) #St. Charles Place
- m8.setpos(-333, -335 + 82 + 63 * 1) #Electric Company
- m9.setpos(-333, -335 + 82 + 63 * 2) #States Avenue
- m10.setpos(-333, -335 + 82 + 63 * 3) #Virginia Avenue
- m11.setpos(-333, -335 + 82 + 63 * 4) #Pennsylvania Railroad
- m12.setpos(-333, -335 + 82 + 63 * 5) #St. James Place
- m13.setpos(-333, -335 + 82 + 63 * 7) #Tennessee Avenue
- m14.setpos(-333, -335 + 82 + 63 * 8) #New York Avenue
- m15.setpos(-333 + 82 + 63 * 0, 333) #Kentucky Avenue
- m16.setpos(-333 + 82 + 63 * 2, 333) #Indiana Avenue
- m17.setpos(-333 + 82 + 63 * 3, 333) #Illinois Avenue
- m18.setpos(-333 + 82 + 63 * 4, 333) #B. & O. Railroad
- m19.setpos(-333 + 82 + 63 * 5, 333) #Atlantic Avenue
- m20.setpos(-333 + 82 + 63 * 6, 333) #Ventnor Avenue
- m21.setpos(-333 + 82 + 63 * 7, 333) #Water Works
- m22.setpos(-333 + 82 + 63 * 8, 333) #Marvin Gardens
- m23.setpos(335, 333 - 82 - 63 * 0) #Pacific Avenue
- m24.setpos(335, 333 - 82 - 63 * 1) #North Carolina Avenue
- m25.setpos(335, 333 - 82 - 63 * 3) #Pennsylvania Avenue
- m26.setpos(335, 333 - 82 - 63 * 4) #Short Line
- m27.setpos(335, 333 - 82 - 63 * 6) #Park Place
- m28.setpos(335, 333 - 82 - 63 * 8) #Boardwalk
- #Sets up houses and hotels
- house = "house.gif"
- house2 = "house2.gif"
- house3 = "house3.gif"
- house4 = "house4.gif"
- hotel = "hotel.gif"
- wn.addshape(house)
- wn.addshape(house2)
- wn.addshape(house3)
- wn.addshape(house4)
- wn.addshape(hotel)
- h1 = turtle.Turtle()
- h1.shape(house)
- h1.pu()
- h1.speed(0)
- h1.ht()
- h2 = h1.clone()
- h3 = h1.clone()
- h4 = h1.clone()
- h5 = h1.clone()
- h6 = h1.clone()
- h7 = h1.clone()
- h8 = h1.clone()
- h9 = h1.clone()
- h10 = h1.clone()
- h11 = h1.clone()
- h12 = h1.clone()
- h13 = h1.clone()
- h14 = h1.clone()
- h15 = h1.clone()
- h16 = h1.clone()
- h17 = h1.clone()
- h18 = h1.clone()
- h19 = h1.clone()
- h20 = h1.clone()
- h21 = h1.clone()
- h22 = h1.clone()
- h1.setpos(335 - 82 - 63 * 0, -295) #Mediterranean Avenue
- h2.setpos(335 - 82 - 63 * 2, -295) #Baltic Avenue
- h3.setpos(335 - 82 - 63 * 5, -295) #Oriental Avenue
- h4.setpos(335 - 82 - 63 * 7, -295) #Vermont Avenue
- h5.setpos(335 - 82 - 63 * 8, -295) #Connecticut Avenue
- h6.setpos(-295, -335 + 82 + 63 * 0) #St. Charles Place
- h7.setpos(-295, -335 + 82 + 63 * 2) #States Avenue
- h8.setpos(-295, -335 + 82 + 63 * 3) #Virginia Avenue
- h9.setpos(-295, -335 + 82 + 63 * 5) #St. James Place
- h10.setpos(-295, -335 + 82 + 63 * 7) #Tennessee Avenue
- h11.setpos(-295, -335 + 82 + 63 * 8) #New York Avenue
- h12.setpos(-335 + 82 + 63 * 0, 295) #Kentucky Avenue
- h13.setpos(-335 + 82 + 63 * 2, 295) #Indiana Avenue
- h14.setpos(-335 + 82 + 63 * 3, 295) #Illinois Avenue
- h15.setpos(-335 + 82 + 63 * 5, 295) #Atlantic Avenue
- h16.setpos(-335 + 82 + 63 * 6, 295) #Ventnor Avenue
- h17.setpos(-335 + 82 + 63 * 8, 295) #Marvin Gardens
- h18.setpos(295, 335 - 82 - 63 * 0) #Pacific Avenue
- h19.setpos(295, 335 - 82 - 63 * 1) #North Carolina Avenue
- h20.setpos(295, 335 - 82 - 63 * 3) #Pennsylvania Avenue
- h21.setpos(295, 335 - 82 - 63 * 6) #Park Place
- h22.setpos(295, 335 - 82 - 63 * 8) #Boardwalk
- #Sets up characters
- char1 = "cat.gif"
- char2 = "stickman.gif"
- char3 = "car.gif"
- char4 = "thimble.gif"
- char5 = "catcolor.gif"
- char6 = "stickmancolor.gif"
- char7 = "carcolor.gif"
- char8 = "thimblecolor.gif"
- chari1 = "cati.gif"
- chari2 = "stickmani.gif"
- chari3 = "cari.gif"
- chari4 = "thimblei.gif"
- wn.addshape(char1)
- wn.addshape(char2)
- wn.addshape(char3)
- wn.addshape(char4)
- wn.addshape(char5)
- wn.addshape(char6)
- wn.addshape(char7)
- wn.addshape(char8)
- wn.addshape(chari1)
- wn.addshape(chari2)
- wn.addshape(chari3)
- wn.addshape(chari4)
- player1 = turtle.Turtle()
- player1.ht()
- player1.pu()
- player1.speed(0)
- p1x = 335
- p1y = -335
- player1.setpos(p1x, p1y)
- player1.speed(2)
- player2 = turtle.Turtle()
- player2.ht()
- player2.pu()
- player2.speed(0)
- p2x = 335
- p2y = -335
- player2.setpos(p2x, p2y)
- player2.speed(2)
- #Intro text
- print("---------------------------------------------------------")
- print("Welcome to Monopoly!")
- input()
- #Defines names
- p1 = input("Give us your name, Player One! ")
- print()
- p2 = input("Don't be shy, introduce yourself, Player Two! ")
- print()
- #Allows players to select characters
- print("Select your character,", p1 + "!")
- i1 = turtle.Turtle()
- i1.shape(chari1)
- i1.pu()
- i1.speed(0)
- i1.setpos(-125, 100)
- i2 = turtle.Turtle()
- i2.shape(chari2)
- i2.pu()
- i2.speed(0)
- i2.setpos(125, 97)
- i3 = turtle.Turtle()
- i3.shape(chari3)
- i3.pu()
- i3.speed(0)
- i3.setpos(-110, -200)
- i4 = turtle.Turtle()
- i4.shape(chari4)
- i4.pu()
- i4.speed(0)
- i4.setpos(125, -167)
- p1cc = "x"
- while p1cc.upper() != "CAT" and p1cc.upper() != "CAR" and p1cc.upper() != "STICKMAN" and p1cc.upper() != "THIMBLE" and p1cc.upper() != "CATCOLOR" and p1cc.upper() != "CARCOLOR" and p1cc.upper() != "STICKMANCOLOR" and p1cc.upper() != "THIMBLECOLOR":
- p1cc = input("Type the name of the character you'd like to be: ")
- if p1cc.upper() == "CAT":
- front = 1
- i1.ht()
- elif p1cc.upper() == "STICKMAN":
- front = 2
- i2.ht()
- elif p1cc.upper() == "CAR":
- front = 3
- i3.ht()
- elif p1cc.upper() == "THIMBLE":
- front = 4
- i4.ht()
- elif p1cc.upper() == "CATCOLOR":
- print("Chose secret Cat character!")
- front = 5
- elif p1cc.upper() == "STICKMANCOLOR":
- print("Chose secret Stickman character!")
- front = 6
- elif p1cc.upper() == "CARCOLOR":
- print("Chose secret Car character!")
- front = 7
- elif p1cc.upper() == "THIMBLECOLOR":
- print("Chose secret Thimble character!")
- front = 8
- else:
- print("\nInvalid response.")
- print("\nNow, select your character,", p2 + "!")
- p2cc = "x"
- while p2cc.upper() != "CAT" and p2cc.upper() != "CAR" and p2cc.upper() != "STICKMAN" and p2cc.upper() != "THIMBLE" and p2cc.upper() != "CATCOLOR" and p2cc.upper() != "CARCOLOR" and p2cc.upper() != "STICKMANCOLOR" and p2cc.upper() != "THIMBLECOLOR":
- p2cc = input("Type the name of the character you'd like to be: ")
- if p2cc.upper() == "CAT":
- if p2cc.upper() != p1cc.upper():
- player2.shape(char1)
- i1.ht()
- else:
- print("\nCat is taken, please select a different character.")
- p2cc = "x"
- elif p2cc.upper() == "STICKMAN":
- if p2cc.upper() != p1cc.upper():
- player2.shape(char2)
- i2.ht()
- else:
- print("\nStickman is taken, please select a different character.")
- p2cc = "x"
- elif p2cc.upper() == "CAR":
- if p2cc.upper() != p1cc.upper():
- player2.shape(char3)
- i3.ht()
- else:
- print("\nCar is taken, please select a different character.")
- p2cc = "x"
- elif p2cc.upper() == "THIMBLE":
- if p2cc.upper() != p1cc.upper():
- player2.shape(char4)
- i4.ht()
- else:
- print("\nThimble is taken, please select a different character.")
- elif p2cc.upper() == "CATCOLOR":
- if p2cc.upper() != p1cc.upper():
- player2.shape(char5)
- print("Chose secret Cat character!")
- else:
- print("\nThis secret character is taken.")
- elif p2cc.upper() == "STICKMANCOLOR":
- if p2cc.upper() != p1cc.upper():
- player2.shape(char6)
- print("Chose secret Stickman character!")
- else:
- print("\nThis secret character is taken.")
- elif p2cc.upper() == "CARCOLOR":
- if p2cc.upper() != p1cc.upper():
- player2.shape(char7)
- print("Chose secret Car character!")
- else:
- print("\nThis secret character is taken.")
- elif p2cc.upper() == "THIMBLECOLOR":
- if p2cc.upper() != p1cc.upper():
- player2.shape(char8)
- print("Chose secret Thimble character!")
- else:
- print("\nThis secret character is taken.")
- else:
- print("\nInvalid response.")
- if front == 1:
- player1.shape(char1)
- elif front == 2:
- player1.shape(char2)
- elif front == 3:
- player1.shape(char3)
- elif front == 4:
- player1.shape(char4)
- elif front == 5:
- player1.shape(char5)
- elif front == 6:
- player1.shape(char6)
- elif front == 7:
- player1.shape(char7)
- elif front == 8:
- player1.shape(char8)
- print("---------------------------------------------------------")
- player2.st()
- player1.st()
- i1.ht()
- i2.ht()
- i3.ht()
- i4.ht()
- #Determines who goes first
- if turn == 1:
- print(p1, "goes first!")
- input()
- if turn == 2:
- print(p2, "goes first!")
- input()
- #While game is on...
- while game == 1:
- ####While it is Player One's turn...
- while turn == 1 and game == 1:
- #Displays player stats
- print(p1 + "'s turn!")
- print("*********************")
- print("*", p1 + ":", end='')
- if len(p1) <= 11:
- for i in range(11 - len(p1)):
- print(" ", end='')
- print("$" + str(p1m), end='')
- if len(str((p1m))) <= 5:
- for i in range(5 - len(str((p1m)))):
- print(" ", end='')
- print("*\n*", p2 + ":", end='')
- if len(p2) <= 11:
- for i in range(11 - len(p2)):
- print(" ", end='')
- print("$" + str(p2m), end='')
- if len(str((p2m))) <= 5:
- for i in range(5 - len(str((p2m)))):
- print(" ", end='')
- print("*\n*********************\n")
- #If player is in Jail...
- if p1j == 1:
- p1jc = "x"
- p1jt = p1jt + 1
- #Player has these Jail options...
- while p1jc.lower() != "p" and p1jc.lower() != "r" and p1jc.lower() != "g" and p1jc.lower() != "i" and p1jc.lower() != "i." and p1jc.lower() != "ii" and p1jc.lower() != "ii." and p1jc.lower() != "iii" and p1jc.lower() != "iii.":
- if p1jt < 4:
- print("You are in Jail.")
- print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
- print("X I.\tPay $50 to be released (p) X")
- print("X II.\tAttempt to roll doubles (r) X")
- print("X III.\tUse a Get Out of Jail Free Card (g) X")
- print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
- p1jc = input()
- #If player pays to leave Jail...
- if p1jc.lower() == "p" or p1jc.lower() == "i" or p1jc.lower() == "i.":
- if p1m >= 50:
- print()
- print(p1, "paid and left Jail.")
- p1j = 0
- p1jt = 0
- p1m = p1m - 50
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Insufficient funds. Too bad.\n")
- p1jc = "x"
- #If player rolls to leave Jail...
- elif p1jc == "r" or p1jc.lower() == "ii" or p1jc.lower() == "ii.":
- die1 = random.randint(1, 6)
- die2 = random.randint(1, 6)
- input("Here's hoping for some good luck...\n")
- print(p1, "rolled a", str(die1), "and a", str(die2) + "!\n")
- if die1 == die2:
- print("Success! You walked free.")
- p1j = 0
- p1jt = 0
- else:
- print("Ah, you tried.")
- turn = 2
- elif p1jc.lower() == "g" or p1jc.lower() == "iii" or p1jc.lower() == "iii.":
- if p1free == 1:
- print()
- print(p1, "used a Get Out of Jail Free Card!")
- p1j = 0
- p1jt = 0
- p1free = p1free - 1
- else:
- print("You don't have a Get Out of Jail Free Card.\n")
- p1jc = "x"
- else:
- print("\nInvalid response.")
- else:
- print("You served your time,", p1 + ".")
- input()
- p1j = 0
- p1jt = 0
- p1jc = "r"
- if turn == 1:
- p1c = "x"
- #Player menu
- while p1c.lower() != "i" and p1c.lower() != "i." and p1c.lower() != "ii" and p1c.lower() != "ii." and p1c.lower() != "iii" and p1c.lower() != "iii." and p1c.lower() != "iv" and p1c.lower() != "iv." and p1c.lower() != "v" and p1c.lower() != "v." and p1c.lower() != "vi" and p1c.lower() != "vi." and p1c.lower() != "vii" and p1c.lower() != "vii." and p1c.lower() != "r" and p1c.lower() != "m" and p1c.lower() != "b" and p1c.lower() != "t" and p1c.lower() != "u" and p1c.lower() != "s" and p1c.lower() != "d":
- print("What will you do,", p1 + "?")
- print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
- print("X I.\tRoll the dice (r) X")
- print("X II.\tMortgage properties (m) X")
- print("X III.\tUnmortgage properties (u) X")
- print("X IV.\tBuild houses (b) X")
- print("X V.\tSell houses (s) X")
- print("X VI.\tMake a trade (t) X")
- print("X VII.\tDeclare bankruptcy (d) X")
- print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
- p1c = input()
- #If player chooses to roll...
- if p1c.lower() == "r" or p1c.lower() == "i" or p1c.lower() == "i.":
- if p1m >= 0:
- print("Roll the dice,", p1 + "!")
- input()
- else:
- print("You can't roll while your balance is negative.")
- input()
- p1c = "x"
- #If player chooses to mortgage...
- elif p1c.lower() == "m" or p1c.lower() == "ii" or p1c.lower() == "ii.":
- p1mc = "x"
- #Huge friggin' mortgaging while loop
- while p1mc.lower() != "mediterranean avenue" and p1mc.lower() != "baltic avenue" and p1mc.lower() != "reading railroad" and p1mc.lower() != "oriental avenue" and p1mc.lower() != "vermont avenue" and p1mc.lower() != "connecticut avenue" and p1mc.lower() != "st. charles place" and p1mc.lower() != "electric company" and p1mc.lower() != "states avenue" and p1mc.lower() != "virginia avenue" and p1mc.lower() != "pennsylvania railroad" and p1mc.lower() != "st. james place" and p1mc.lower() != "tennessee avenue" and p1mc.lower() != "new york avenue" and p1mc.lower() != "kentucky avenue" and p1mc.lower() != "indiana avenue" and p1mc.lower() != "illinois avenue" and p1mc.lower() != "b. & o. railroad" and p1mc.lower() != "atlantic avenue" and p1mc.lower() != "ventnor avenue" and p1mc.lower() != "water works" and p1mc.lower() != "marvin gardens" and p1mc.lower() != "pacific avenue" and p1mc.lower() != "north carolina avenue" and p1mc.lower() != "pennsylvania avenue" and p1mc.lower() != "short line" and p1mc.lower() != "park place" and p1mc.lower() != "boardwalk" and p1mc.lower() != "done":
- print("Mortgage which properties?")
- print("``````````````````````````")
- if br1 == 1 and br1m == 0 and br1h == 0 and br2h == 0:
- print("Mediterranean Avenue ($30)")
- if br2 == 1 and br2m == 0 and br1h == 0 and br2h == 0:
- print("Baltic Avenue ($30)")
- if cy1 == 1 and cy1m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Oriental Avenue ($50)")
- if cy2 == 1 and cy2m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Vermont Avenue ($50)")
- if cy3 == 1 and cy3m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Connecticut Avenue ($60)")
- if vi1 == 1 and vi1m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("St. Charles Place ($70)")
- if vi2 == 1 and vi2m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("States Avenue ($70)")
- if vi3 == 1 and vi3m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("Virginia Avenue ($80)")
- if or1 == 1 and or1m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
- print("St. James Place ($90)")
- if or2 == 1 and or2m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
- print("Tennessee Avenue ($90)")
- if or3 == 1 and or3m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
- print("New York Avenue ($100)")
- if red1 == 1 and red1m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Kentucky Avenue ($110)")
- if red2 == 1 and red2m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Indiana Avenue ($110)")
- if red3 == 1 and red3m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Illinois Avenue ($120)")
- if ye1 == 1 and ye1m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Atlantic Avenue ($130)")
- if ye2 == 1 and ye2m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Ventnor Avenue ($130)")
- if ye3 == 1 and ye3m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Marvin Gardens ($140)")
- if gr1 == 1 and gr1m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Pacific Avenue ($150)")
- if gr2 == 1 and gr2m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("North Carolina Avenue ($150)")
- if gr3 == 1 and gr3m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Pennsylvania Avenue ($160)")
- if bl1 == 1 and bl1m == 0 and bl1h == 0 and bl2h == 0:
- print("Park Place ($175)")
- if bl2 == 1 and bl2m == 0 and bl1h == 0 and bl2h == 0:
- print("Boardwalk ($200)")
- if rrr == 1 and rrrm == 0:
- print("Reading Railroad ($100)")
- if prr == 1 and prrm == 0:
- print("Pennsylvania Railroad ($100)")
- if brr == 1 and brrm == 0:
- print("B. & O. Railroad ($100)")
- if srr == 1 and srrm == 0:
- print("Short Line ($100)")
- if ec == 1 and ecm == 0:
- print("Electric Company ($75)")
- if ww == 1 and wwm == 0:
- print("Water Works ($75)")
- print("``````````````````````````")
- print("(Type 'Done' to finish)")
- p1mc = input()
- print()
- #If player tries to mortgage Mediterranean Avenue...
- if p1mc.lower() == "mediterranean avenue":
- if br1 == 1 and br1m == 0 and br1h == 0 and br2h == 0:
- print(p1, "mortgaged Mediterranean Avenue for $30.")
- br1m = 1
- p1m = p1m + 30
- m1.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Baltic Avenue...
- elif p1mc.lower() == "baltic avenue":
- if br2 == 1 and br2m == 0 and br1h == 0 and br2h == 0:
- print(p1, "mortgaged Baltic Avenue for $30.")
- br2m = 1
- p1m = p1m + 30
- m2.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Oriental Avenue...
- elif p1mc.lower() == "oriental avenue":
- if cy1 == 1 and cy1m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print(p1, "mortgaged Oriental Avenue for $50.")
- cy1m = 1
- p1m = p1m + 50
- m4.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Vermont Avenue...
- elif p1mc.lower() == "vermont avenue":
- if cy2 == 1 and cy2m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print(p1, "mortgaged Vermont Avenue for $50.")
- cy2m = 1
- p1m = p1m + 50
- m5.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Connecticut Avenue...
- elif p1mc.lower() == "connecticut avenue":
- if cy3 == 1 and cy3m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print(p1, "mortgaged Connecticut Avenue for $60.")
- cy3m = 1
- p1m = p1m + 60
- m6.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage St. Charles Place...
- elif p1mc.lower() == "st. charles place":
- if vi1 == 1 and vi1m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print(p1, "mortgaged St. Charles Place for $70.")
- vi1m = 1
- p1m = p1m + 70
- m7.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage States Avenue...
- elif p1mc.lower() == "states avenue":
- if vi2 == 1 and vi2m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print(p1, "mortgaged States Avenue for $70.")
- vi2m = 1
- p1m = p1m + 70
- m9.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Virginia Avenue...
- elif p1mc.lower() == "virginia avenue":
- if vi3 == 1 and vi3m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print(p1, "mortgaged Virginia Avenue for $80.")
- vi3m = 1
- p1m = p1m + 80
- m10.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage St. James Place...
- elif p1mc.lower() == "st. james place":
- if or1 == 1 and or1m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
- print(p1, "mortgaged St. James Place for $90.")
- or1m = 1
- p1m = p1m + 90
- m12.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Tennessee Avenue...
- elif p1mc.lower() == "tennessee avenue":
- if or2 == 1 and or2m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
- print(p1, "mortgaged Tennessee Avenue for $90.")
- or2m = 1
- p1m = p1m + 90
- m13.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage New York Avenue...
- elif p1mc.lower() == "new york avenue":
- if or3 == 1 and or3m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
- print(p1, "mortgaged New York Avenue for $100.")
- or3m = 1
- p1m = p1m + 100
- m14.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Kentucky Avenue...
- elif p1mc.lower() == "kentucky avenue":
- if red1 == 1 and red1m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
- print(p1, "mortgaged Kentucky Avenue for $110.")
- red1m = 1
- p1m = p1m + 110
- m15.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Indiana Avenue...
- elif p1mc.lower() == "indiana avenue":
- if red2 == 1 and red2m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
- print(p1, "mortgaged Indiana Avenue for $110.")
- red2m = 1
- p1m = p1m + 110
- m16.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Illinois Avenue...
- elif p1mc.lower() == "illinois avenue":
- if red3 == 1 and red3m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
- print(p1, "mortgaged Illinois Avenue for $120.")
- red3m = 1
- p1m = p1m + 120
- m17.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Atlantic Avenue...
- elif p1mc.lower() == "atlantic avenue":
- if ye1 == 1 and ye1m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print(p1, "mortgaged Atlantic Avenue for $130.")
- ye1m = 1
- p1m = p1m + 130
- m19.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Ventnor Avenue...
- elif p1mc.lower() == "ventnor avenue":
- if ye2 == 1 and ye2m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print(p1, "mortgaged Ventnor Avenue for 130.")
- ye2m = 1
- p1m = p1m + 130
- m20.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Marvin Gardens...
- elif p1mc.lower() == "marvin gardens":
- if ye3 == 1 and ye3m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print(p1, "mortgaged Marvin Gardens for $140.")
- ye3m = 1
- p1m = p1m + 140
- m22.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Pacific Avenue...
- elif p1mc.lower() == "pacific avenue":
- if gr1 == 1 and gr1m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print(p1, "mortgaged Pacific Avenue for $150.")
- gr1m = 1
- p1m = p1m + 150
- m23.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage North Carolina Avenue...
- elif p1mc.lower() == "north carolina avenue":
- if gr2 == 1 and gr2m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print(p1, "mortgaged North Carolina Avenue for $150.")
- gr2m = 1
- p1m = p1m + 150
- m24.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Pennsylvania Avenue...
- elif p1mc.lower() == "pennsylvania avenue":
- if gr3 == 1 and gr3m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print(p1, "mortgaged Pennsylvania Avenue for $160.")
- gr3m = 1
- p1m = p1m + 160
- m25.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Park Place...
- elif p1mc.lower() == "park place":
- if bl1 == 1 and bl1m == 0 and bl1h == 0 and bl2h == 0:
- print(p1, "mortgaged Park Place for $175.")
- bl1m = 1
- p1m = p1m + 175
- m27.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Boardwalk...
- elif p1mc.lower() == "boardwalk":
- if bl2 == 1 and bl2m == 0 and bl1h == 0 and bl2h == 0:
- print(p1, "mortgaged Boardwalk for $200.")
- bl2m = 1
- p1m = p1m + 200
- m28.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Reading Railroad...
- elif p1mc.lower() == "reading railroad":
- if rrr == 1 and rrrm == 0:
- print(p1, "mortgaged Reading Railroad for $100.")
- rrrm = 1
- p1rr = p1rr - 1
- p1m = p1m + 100
- m3.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Pennsylvania Railroad...
- elif p1mc.lower() == "pennsylvania railroad":
- if prr == 1 and prrm == 0:
- print(p1, "mortgaged Pennsylvania Railroad for $100.")
- prrm = 1
- p1rr = p1rr - 1
- p1m = p1m + 100
- m11.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage B. & O. Railroad...
- elif p1mc.lower() == "b. & o. railroad":
- if brr == 1 and brrm == 0:
- print(p1, "mortgaged B. & O. Railroad for $100.")
- brrm = 1
- p1rr = p1rr - 1
- p1m = p1m + 100
- m18.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Short Line...
- elif p1mc.lower() == "short line":
- if srr == 1 and srrm == 0:
- print(p1, "mortgaged Short Line for $100.")
- srrm = 1
- p1rr = p1rr - 1
- p1m = p1m + 100
- m26.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Electric Company...
- elif p1mc.lower() == "electric company":
- if ec == 1 and ecm == 0:
- print(p1, "mortgaged Electric Company for $75.")
- ecm = 1
- p1u = p1u - 1
- p1m = p1m + 75
- m8.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player tries to mortgage Water Works...
- elif p1mc.lower() == "water works":
- if ww == 1 and wwm == 0:
- print(p1, "mortgaged Water Works for $75.")
- wwm = 1
- p1u = p1u - 1
- p1m = p1m + 75
- m21.st()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to mortgage that property.")
- p1mc = "x"
- #If player is done mortgaging properties...
- elif p1mc.lower() == "done":
- print("Now then...")
- #If player enters an invalid response...
- else:
- print("Invalid response.")
- p1c = "x"
- print()
- #If player chooses to unmortgage...
- elif p1c.lower() == "u" or p1c.lower() == "iii" and p1c.lower() == "iii.":
- p1mc = "x"
- #Huge friggin' unmortgaging while loop
- while p1mc.lower() != "mediterranean avenue" and p1mc.lower() != "baltic avenue" and p1mc.lower() != "reading railroad" and p1mc.lower() != "oriental avenue" and p1mc.lower() != "vermont avenue" and p1mc.lower() != "connecticut avenue" and p1mc.lower() != "st. charles place" and p1mc.lower() != "electric company" and p1mc.lower() != "states avenue" and p1mc.lower() != "virginia avenue" and p1mc.lower() != "pennsylvania railroad" and p1mc.lower() != "st. james place" and p1mc.lower() != "tennessee avenue" and p1mc.lower() != "new york avenue" and p1mc.lower() != "kentucky avenue" and p1mc.lower() != "indiana avenue" and p1mc.lower() != "illinois avenue" and p1mc.lower() != "b. & o. railroad" and p1mc.lower() != "atlantic avenue" and p1mc.lower() != "ventnor avenue" and p1mc.lower() != "water works" and p1mc.lower() != "marvin gardens" and p1mc.lower() != "pacific avenue" and p1mc.lower() != "north carolina avenue" and p1mc.lower() != "pennsylvania avenue" and p1mc.lower() != "short line" and p1mc.lower() != "park place" and p1mc.lower() != "boardwalk" and p1mc.lower() != "done":
- print("Unmortgage which properties?")
- print("``````````````````````````")
- if br1 == 1 and br1m == 1 and p1m >= 33:
- print("Mediterranean Avenue (-$33)")
- if br2 == 1 and br2m == 1 and p1m >= 33:
- print("Baltic Avenue (-$33)")
- if cy1 == 1 and cy1m == 1 and p1m >= 55:
- print("Oriental Avenue (-$55)")
- if cy2 == 1 and cy2m == 1 and p1m >= 55:
- print("Vermont Avenue (-$55)")
- if cy3 == 1 and cy3m == 1 and p1m >= 66:
- print("Connecticut Avenue (-$66)")
- if vi1 == 1 and vi1m == 1 and p1m >= 77:
- print("St. Charles Place (-$77)")
- if vi2 == 1 and vi2m == 1 and p1m >= 77:
- print("States Avenue (-$77)")
- if vi3 == 1 and vi3m == 1 and p1m >= 88:
- print("Virginia Avenue (-$88)")
- if or1 == 1 and or1m == 1 and p1m >= 99:
- print("St. James Place (-$99)")
- if or2 == 1 and or2m == 1 and p1m >= 99:
- print("Tennessee Avenue (-$99)")
- if or3 == 1 and or3m == 1 and p1m >= 110:
- print("New York Avenue (-$110)")
- if red1 == 1 and red1m == 1 and p1m >= 121:
- print("Kentucky Avenue (-$121)")
- if red2 == 1 and red2m == 1 and p1m >= 121:
- print("Indiana Avenue (-$121)")
- if red3 == 1 and red3m == 1 and p1m >= 132:
- print("Illinois Avenue (-$132)")
- if ye1 == 1 and ye1m == 1 and p1m >= 143:
- print("Atlantic Avenue (-$143)")
- if ye2 == 1 and ye2m == 1 and p1m >= 143:
- print("Ventnor Avenue (-$143)")
- if ye3 == 1 and ye3m == 1 and p1m >= 154:
- print("Marvin Gardens (-$154)")
- if gr1 == 1 and gr1m == 1 and p1m >= 165:
- print("Pacific Avenue (-$165)")
- if gr2 == 1 and gr2m == 1 and p1m >= 165:
- print("North Carolina Avenue (-$165)")
- if gr3 == 1 and gr3m == 1 and p1m >= 176:
- print("Pennsylvania Avenue (-$176)")
- if bl1 == 1 and bl1m == 1 and p1m >= 192:
- print("Park Place (-$192)")
- if bl2 == 1 and bl2m == 1 and p1m >= 220:
- print("Boardwalk (-$220)")
- if rrr == 1 and rrrm == 1 and p1m >= 110:
- print("Reading Railroad (-$110)")
- if prr == 1 and prrm == 1 and p1m >= 110:
- print("Pennsylvania Railroad (-$110)")
- if brr == 1 and brrm == 1 and p1m >= 110:
- print("B. & O. Railroad (-$110)")
- if srr == 1 and srrm == 1 and p1m >= 110:
- print("Short Line (-$110)")
- if ec == 1 and ecm == 1 and p1m >= 82:
- print("Electric Company (-$82)")
- if ww == 1 and wwm == 1 and p1m >= 82:
- print("Water Works (-$82)")
- print("``````````````````````````")
- print("(Type 'Done' to finish)")
- p1mc = input()
- print()
- #If player tries to unmortgage Mediterranean Avenue...
- if p1mc.lower() == "mediterranean avenue":
- if br1 == 1 and br1m == 1 and p1m >= 33:
- print(p1, "unmortgaged Mediterranean Avenue for $33.")
- br1m = 0
- p1m = p1m - 33
- m1.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Baltic Avenue...
- elif p1mc.lower() == "baltic avenue":
- if br2 == 1 and br2m == 1 and p1m >= 33:
- print(p1, "unmortgaged Baltic Avenue for $33.")
- br2m = 0
- p1m = p1m - 33
- m2.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Oriental Avenue...
- elif p1mc.lower() == "oriental avenue":
- if cy1 == 1 and cy1m == 1 and p1m >= 55:
- print(p1, "unmortgaged Oriental Avenue for $55.")
- cy1m = 0
- p1m = p1m - 55
- m4.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Vermont Avenue...
- elif p1mc.lower() == "vermont avenue":
- if cy2 == 1 and cy2m == 1 and p1m >= 55:
- print(p1, "unmortgaged Vermont Avenue for $55.")
- cy2m = 0
- p1m = p1m - 55
- m5.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Connecticut Avenue...
- elif p1mc.lower() == "connecticut avenue":
- if cy3 == 1 and cy3m == 1 and p1m >= 66:
- print(p1, "unmortgaged Connecticut Avenue for $66.")
- cy3m = 0
- p1m = p1m - 66
- m6.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage St. Charles Place...
- elif p1mc.lower() == "st. charles place":
- if vi1 == 1 and vi1m == 1 and p1m >= 77:
- print(p1, "unmortgaged St. Charles Place for $77.")
- vi1m = 0
- p1m = p1m - 77
- m7.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage States Avenue...
- elif p1mc.lower() == "states avenue":
- if vi2 == 1 and vi2m == 1 and p1m >= 77:
- print(p1, "unmortgaged States Avenue for $77.")
- vi2m = 0
- p1m = p1m - 77
- m9.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Virginia Avenue...
- elif p1mc.lower() == "virginia avenue":
- if vi3 == 1 and vi3m == 1 and p1m >= 88:
- print(p1, "unmortgaged Virginia Avenue for $88.")
- vi3m = 0
- p1m = p1m - 88
- m10.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage St. James Place...
- elif p1mc.lower() == "st. james place":
- if or1 == 1 and or1m == 1 and p1m >= 99:
- print(p1, "unmortgaged St. James Place for $99.")
- or1m = 0
- p1m = p1m - 99
- m12.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Tennessee Avenue...
- elif p1mc.lower() == "tennessee avenue":
- if or2 == 1 and or2m == 1 and p1m >= 99:
- print(p1, "unmortgaged Tennessee Avenue for $99.")
- or2m = 0
- p1m = p1m - 99
- m13.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage New York Avenue...
- elif p1mc.lower() == "new york avenue":
- if or3 == 1 and or3m == 1 and p1m >= 110:
- print(p1, "unmortgaged New York Avenue for $110.")
- or3m = 0
- p1m = p1m - 110
- m14.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Kentucky Avenue...
- elif p1mc.lower() == "kentucky avenue":
- if red1 == 1 and red1m == 1 and p1m >= 121:
- print(p1, "unmortgaged Kentucky Avenue for $121.")
- red1m = 0
- p1m = p1m - 121
- m15.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Indiana Avenue...
- elif p1mc.lower() == "indiana avenue":
- if red2 == 1 and red2m == 1 and p1m >= 121:
- print(p1, "unmortgaged Indiana Avenue for $121.")
- red2m = 0
- p1m = p1m - 121
- m16.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Illinois Avenue...
- elif p1mc.lower() == "illinois avenue":
- if red3 == 1 and red3m == 1 and p1m >= 132:
- print(p1, "unmortgaged Illinois Avenue for $132.")
- red3m = 0
- p1m = p1m - 132
- m17.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Atlantic Avenue...
- elif p1mc.lower() == "atlantic avenue":
- if ye1 == 1 and ye1m == 1 and p1m >= 143:
- print(p1, "unmortgaged Atlantic Avenue for $143.")
- ye1m = 0
- p1m = p1m - 143
- m19.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Ventnor Avenue...
- elif p1mc.lower() == "ventnor avenue":
- if ye2 == 1 and ye2m == 1 and p1m >= 143:
- print(p1, "unmortgaged Ventnor Avenue for 143.")
- ye2m = 0
- p1m = p1m - 143
- m20.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Marvin Gardens...
- elif p1mc.lower() == "marvin gardens":
- if ye3 == 1 and ye3m == 1 and p1m >= 154:
- print(p1, "unmortgaged Marvin Gardens for $154.")
- ye3m = 0
- p1m = p1m - 154
- m22.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Pacific Avenue...
- elif p1mc.lower() == "pacific avenue":
- if gr1 == 1 and gr1m == 1 and p1m >= 165:
- print(p1, "unmortgaged Pacific Avenue for $165.")
- gr1m = 0
- p1m = p1m - 165
- m23.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage North Carolina Avenue...
- elif p1mc.lower() == "north carolina avenue":
- if gr2 == 1 and gr2m == 1 and p1m >= 165:
- print(p1, "unmortgaged North Carolina Avenue for $165.")
- gr2m = 0
- p1m = p1m - 165
- m24.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Pennsylvania Avenue...
- elif p1mc.lower() == "pennsylvania avenue":
- if gr3 == 1 and gr3m == 1 and p1m >= 176:
- print(p1, "unmortgaged Pennsylvania Avenue for $176.")
- gr3m = 0
- p1m = p1m - 176
- m25.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Park Place...
- elif p1mc.lower() == "park place":
- if bl1 == 1 and bl1m == 1 and p1m >= 192:
- print(p1, "unmortgaged Park Place for $192.")
- bl1m = 0
- p1m = p1m - 192
- m27.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Boardwalk...
- elif p1mc.lower() == "boardwalk":
- if bl2 == 1 and bl2m == 1 and p1m >= 220:
- print(p1, "unmortgaged Boardwalk for $220.")
- bl2m = 0
- p1m = p1m - 220
- m28.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Reading Railroad...
- elif p1mc.lower() == "reading railroad":
- if rrr == 1 and rrrm == 1 and p1m >= 110:
- print(p1, "unmortgaged Reading Railroad for $110.")
- rrrm = 0
- p1rr = p1rr + 1
- p1m = p1m - 110
- m3.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Pennsylvania Railroad...
- elif p1mc.lower() == "pennsylvania railroad":
- if prr == 1 and prrm == 1 and p1m >= 110:
- print(p1, "unmortgaged Pennsylvania Railroad for $110.")
- prrm = 0
- p1rr = p1rr + 1
- p1m = p1m - 110
- m11.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage B. & O. Railroad...
- elif p1mc.lower() == "b. & o. railroad":
- if brr == 1 and brrm == 1 and p1m >= 110:
- print(p1, "unmortgaged B. & O. Railroad for $110.")
- brrm = 0
- p1rr = p1rr + 1
- p1m = p1m - 110
- m18.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Short Line...
- elif p1mc.lower() == "short line":
- if srr == 1 and srrm == 1 and p1m >= 110:
- print(p1, "unmortgaged Short Line for $110.")
- srrm = 0
- p1rr = p1rr + 1
- p1m = p1m - 110
- m26.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Electric Company...
- elif p1mc.lower() == "electric company":
- if ec == 1 and ecm == 1 and p1m >= 82:
- print(p1, "unmortgaged Electric Company for $82.")
- ecm = 0
- p1u = p1u + 1
- p1m = p1m - 82
- m8.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player tries to unmortgage Water Works...
- elif p1mc.lower() == "water works":
- if ww == 1 and wwm == 1 and p1m >= 82:
- print(p1, "unmortgaged Water Works for $82.")
- wwm = 0
- p1u = p1u + 1
- p1m = p1m - 82
- m21.ht()
- print("You now have $" + str(p1m) + ".\n")
- p1mc = "x"
- else:
- print("Unable to unmortgage that property.")
- p1mc = "x"
- #If player is done unmortgaging properties...
- elif p1mc.lower() == "done":
- print("Now then...")
- #If player enters an invalid response...
- else:
- print("Invalid response.")
- p1c = "x"
- print()
- #If player chooses to build houses...
- elif p1c.lower() == "b" or p1c.lower() == "iv" or p1c.lower() == "iv.":
- p1hc = "x"
- #Huge friggin' house-building while loop
- while p1hc.lower() != "mediterranean avenue" and p1hc.lower() != "baltic avenue" and p1hc.lower() != "oriental avenue" and p1hc.lower() != "vermont avenue" and p1hc.lower() != "connecticut avenue" and p1hc.lower() != "st. charles place" and p1hc.lower() != "states avenue" and p1hc.lower() != "virginia avenue" and p1hc.lower() != "st. james place" and p1hc.lower() != "tennessee avenue" and p1hc.lower() != "new york avenue" and p1hc.lower() != "kentucky avenue" and p1hc.lower() != "indiana avenue" and p1hc.lower() != "illinois avenue" and p1hc.lower() != "atlantic avenue" and p1hc.lower() != "ventnor avenue" and p1hc.lower() != "marvin gardens" and p1hc.lower() != "pacific avenue" and p1hc.lower() != "north carolina avenue" and p1hc.lower() != "pennsylvania avenue" and p1hc.lower() != "park place" and p1hc.lower() != "boardwalk" and p1hc.lower() != "done":
- print("Build a house on which property?")
- print("``````````````````````````")
- if p1m >= 50:
- if br1 == 1 and br2 == 1 and br1m == 0 and br2m == 0:
- if br1h <= br2h and br1h < 5:
- print("Mediterranean Avenue (-$50)")
- if br2h <= br1h and br2h < 5:
- print("Baltic Avenue (-$50)")
- if cy1 == 1 and cy2 == 1 and cy3 == 1 and cy1m == 0 and cy2m == 0 and cy3m == 0:
- if cy1h <= cy2h and cy1h <= cy3h and cy1h < 5:
- print("Oriental Avenue (-$50)")
- if cy2h <= cy1h and cy2h <= cy3h and cy2h < 5:
- print("Vermont Avenue (-$50)")
- if cy3h <= cy1h and cy3h <= cy2h and cy3h < 5:
- print("Connecticut Avenue (-$50)")
- if p1m >= 100:
- if vi1 == 1 and vi2 == 1 and vi3 == 1 and vi1m == 0 and vi2m == 0 and vi3m == 0:
- if vi1h <= vi2h and vi1h <= vi3h and vi1h < 5:
- print("St. Charles Place (-$100)")
- if vi2h <= vi1h and vi2h <= vi3h and vi2h < 5:
- print("States Avenue (-$100)")
- if vi3h <= vi1h and vi3h <= vi2h and vi3h < 5:
- print("Virginia Avenue (-$100)")
- if or1 == 1 and or2 == 1 and or3 == 1 and or1m == 0 and or2m == 0 and or3m == 0:
- if or1h <= or2h and or1h <= or3h and or1h < 5:
- print("St. James Place (-$100)")
- if or2h <= or1h and or2h <= or3h and or2h < 5:
- print("Tennessee Avenue (-$100)")
- if or3h <= or1h and or3h <= or2h and or3h < 5:
- print("New York Avenue (-$100)")
- if p1m >= 150:
- if red1 == 1 and red2 == 1 and red3 == 1 and red1m == 0 and red2m == 0 and red3m == 0:
- if red1h <= red2h and red1h <= red3h and red1h < 5:
- print("Kentucky Avenue (-$150)")
- if red2h <= red1h and red2h <= red3h and red2h < 5:
- print("Indiana Avenue (-$150)")
- if cy3h <= red1h and red3h <= red2h and red3h < 5:
- print("Illinois Avenue (-$150)")
- if ye1 == 1 and ye2 == 1 and ye3 == 1 and ye1m == 0 and ye2m == 0 and ye3m == 0:
- if ye1h <= ye2h and ye1h <= ye3h and ye1h < 5:
- print("Atlantic Avenue (-$150)")
- if ye2h <= ye1h and ye2h <= ye3h and ye2h < 5:
- print("Ventnor Avenue (-$150)")
- if ye3h <= ye1h and ye3h <= ye2h and ye3h < 5:
- print("Marvin Gardens (-$150)")
- if p1m >= 200:
- if gr1 == 1 and gr2 == 1 and gr3 == 1 and gr1m == 0 and gr2m == 0 and gr3m == 0:
- if gr1h <= gr2h and gr1h <= gr3h and gr1h < 5:
- print("Pacific Avenue (-$200)")
- if gr2h <= gr1h and gr2h <= gr3h and gr2h < 5:
- print("North Carolina Avenue (-$200)")
- if gr3h <= gr1h and gr3h <= gr2h and gr3h < 5:
- print("Pennsylvania Avenue (-$200)")
- if bl1 == 1 and bl2 == 1 and bl1m == 0 and bl2m == 0:
- if bl1h <= bl2h and bl1h < 5:
- print("Park Place (-$200)")
- if bl2h <= bl1h and bl2h < 5:
- print("Boardwalk (-$200)")
- print("``````````````````````````")
- print("(Type 'Done' to finish)")
- p1hc = input()
- print()
- #If player tries to build house on Mediterranean Avenue...
- if p1hc.lower() == "mediterranean avenue":
- if p1m >= 50 and br1 == 1 and br2 == 1 and br1m == 0 and br2m == 0 and br1h <= br2h and br1h < 5:
- if br1h < 4:
- print("Built a house on Mediterranean Avenue!")
- elif br1h == 4:
- print("Built a hotel on Mediterranean Avenue!")
- br1h = br1h + 1
- p1m = p1m - 50
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if br1h == 1:
- h1.shape(house)
- h1.st()
- if br1h == 2:
- h1.shape(house2)
- if br1h == 3:
- h1.shape(house3)
- if br1h == 4:
- h1.shape(house4)
- if br1h == 5:
- h1.shape(hotel)
- else:
- print("Unable to build on Mediterranean Avenue.")
- p1hc = "x"
- #If player tries to build house on Baltic Avenue...
- elif p1hc.lower() == "baltic avenue":
- if p1m >= 50 and br1 == 1 and br2 == 1 and br1m == 0 and br2m == 0 and br2h <= br1h and br2h < 5:
- if br2h < 4:
- print("Built a house on Baltic Avenue!")
- elif br2h == 4:
- print("Built a hotel on Baltic Avenue!")
- br2h = br2h + 1
- p1m = p1m - 50
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if br2h == 1:
- h2.shape(house)
- h2.st()
- if br2h == 2:
- h2.shape(house2)
- if br2h == 3:
- h2.shape(house3)
- if br2h == 4:
- h2.shape(house4)
- if br2h == 5:
- h2.shape(hotel)
- else:
- print("Unable to build on Baltic Avenue.")
- p1hc = "x"
- #If player tries to build house on Oriental Avenue...
- elif p1hc.lower() == "oriental avenue":
- if p1m >= 50 and cy1 == 1 and cy2 == 1 and cy3 == 1 and cy1m == 0 and cy2m == 0 and cy3m == 0 and cy1h <= cy2h and cy1h <= cy3h and cy1h < 5:
- if cy1h < 4:
- print("Built a house on Oriental Avenue!")
- elif cy1h == 4:
- print("Built a hotel on Oriental Avenue!")
- cy1h = cy1h + 1
- p1m = p1m - 50
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if cy1h == 1:
- h3.shape(house)
- h3.st()
- if cy1h == 2:
- h3.shape(house2)
- if cy1h == 3:
- h3.shape(house3)
- if cy1h == 4:
- h3.shape(house4)
- if cy1h == 5:
- h3.shape(hotel)
- else:
- print("Unable to build on Oriental Avenue.")
- p1hc = "x"
- #If player tries to build house on Vermont Avenue...
- elif p1hc.lower() == "vermont avenue":
- if p1m >= 50 and cy1 == 1 and cy2 == 1 and cy3 == 1 and cy1m == 0 and cy2m == 0 and cy3m == 0 and cy2h <= cy1h and cy2h <= cy3h and cy2h < 5:
- if cy2h < 4:
- print("Built a house on Vermont Avenue!")
- elif cy2h == 4:
- print("Built a hotel on Vermont Avenue!")
- cy2h = cy2h + 1
- p1m = p1m - 50
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if cy2h == 1:
- h4.shape(house)
- h4.st()
- if cy2h == 2:
- h4.shape(house2)
- if cy2h == 3:
- h4.shape(house3)
- if cy2h == 4:
- h4.shape(house4)
- if cy2h == 5:
- h4.shape(hotel)
- else:
- print("Unable to build on Vermont Avenue.")
- p1hc = "x"
- #If player tries to build house on Connecticut Avenue...
- elif p1hc.lower() == "connecticut avenue":
- if p1m >= 50 and cy1 == 1 and cy2 == 1 and cy3 == 1 and cy1m == 0 and cy2m == 0 and cy3m == 0 and cy3h <= cy1h and cy3h <= cy2h and cy3h < 5:
- if cy3h < 4:
- print("Built a house on Connecticut Avenue!")
- elif cy3h == 4:
- print("Built a hotel on Connecticut Avenue!")
- cy3h = cy3h + 1
- p1m = p1m - 50
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if cy3h == 1:
- h5.shape(house)
- h5.st()
- if cy3h == 2:
- h5.shape(house2)
- if cy3h == 3:
- h5.shape(house3)
- if cy3h == 4:
- h5.shape(house4)
- if cy3h == 5:
- h5.shape(hotel)
- else:
- print("Unable to build on Connecticut Avenue.")
- p1hc = "x"
- #If player tries to build house on St. Charles Place...
- elif p1hc.lower() == "st. charles place":
- if p1m >= 100 and vi1 == 1 and vi2 == 1 and vi3 == 1 and vi1m == 0 and vi2m == 0 and vi3m == 0 and vi1h <= vi2h and vi1h <= vi3h and vi1h < 5:
- if vi1h < 4:
- print("Built a house on St. Charles Place!")
- elif vi1h == 4:
- print("Built a hotel on St. Charles Place!")
- vi1h = vi1h + 1
- p1m = p1m - 100
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if vi1h == 1:
- h6.shape(house)
- h6.st()
- if vi1h == 2:
- h6.shape(house2)
- if vi1h == 3:
- h6.shape(house3)
- if vi1h == 4:
- h6.shape(house4)
- if vi1h == 5:
- h6.shape(hotel)
- else:
- print("Unable to build on St. Charles Place.")
- p1hc = "x"
- #If player tries to build house on States Avenue...
- elif p1hc.lower() == "states avenue":
- if p1m >= 100 and vi1 == 1 and vi2 == 1 and vi3 == 1 and vi1m == 0 and vi2m == 0 and vi3m == 0 and vi2h <= vi1h and vi2h <= vi3h and vi2h < 5:
- if vi2h < 4:
- print("Built a house on States Avenue!")
- elif vi2h == 4:
- print("Built a hotel on States Avenue!")
- vi2h = vi2h + 1
- p1m = p1m - 100
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if vi2h == 1:
- h7.shape(house)
- h7.st()
- if vi2h == 2:
- h7.shape(house2)
- if vi2h == 3:
- h7.shape(house3)
- if vi2h == 4:
- h7.shape(house4)
- if vi2h == 5:
- h7.shape(hotel)
- else:
- print("Unable to build on States Avenue.")
- p1hc = "x"
- #If player tries to build house on Virginia Avenue...
- elif p1hc.lower() == "states avenue":
- if p1m >= 100 and vi1 == 1 and vi2 == 1 and vi3 == 1 and vi1m == 0 and vi2m == 0 and vi3m == 0 and vi3h <= vi1h and vi3h <= vi2h and vi3h < 5:
- if vi3h < 4:
- print("Built a house on Virginia Avenue!")
- elif vi3h == 4:
- print("Built a hotel on Virginia Avenue!")
- vi3h = vi3h + 1
- p1m = p1m - 100
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if vi3h == 1:
- h8.shape(house)
- h8.st()
- if vi3h == 2:
- h8.shape(house2)
- if vi3h == 3:
- h8.shape(house3)
- if vi3h == 4:
- h8.shape(house4)
- if vi3h == 5:
- h8.shape(hotel)
- else:
- print("Unable to build on Virginia Avenue.")
- p1hc = "x"
- #If player tries to build house on St. James Place...
- elif p1hc.lower() == "st. james place":
- if p1m >= 100 and or1 == 1 and or2 == 1 and or3 == 1 and or1m == 0 and or2m == 0 and or3m == 0 and or1h <= or2h and or1h <= or3h and or1h < 5:
- if or1h < 4:
- print("Built a house on St. James Place!")
- elif or1h == 4:
- print("Built a hotel on St. James Place!")
- or1h = or1h + 1
- p1m = p1m - 100
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if or1h == 1:
- h9.shape(house)
- h9.st()
- if or1h == 2:
- h9.shape(house2)
- if or1h == 3:
- h9.shape(house3)
- if or1h == 4:
- h9.shape(house4)
- if or1h == 5:
- h9.shape(hotel)
- else:
- print("Unable to build on St. James Place.")
- p1hc = "x"
- #If player tries to build house on Tennessee Avenue...
- elif p1hc.lower() == "tennessee avenue":
- if p1m >= 100 and or1 == 1 and or2 == 1 and or3 == 1 and or1m == 0 and or2m == 0 and or3m == 0 and or2h <= or1h and or2h <= or3h and or2h < 5:
- if or2h < 4:
- print("Built a house on Tennessee Avenue!")
- elif or2h == 4:
- print("Built a hotel on Tennessee Avenue!")
- or2h = or2h + 1
- p1m = p1m - 100
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if or2h == 1:
- h10.shape(house)
- h10.st()
- if or2h == 2:
- h10.shape(house2)
- if or2h == 3:
- h10.shape(house3)
- if or2h == 4:
- h10.shape(house4)
- if or2h == 5:
- h10.shape(hotel)
- else:
- print("Unable to build on Tennessee Avenue.")
- p1hc = "x"
- #If player tries to build house on New York Avenue...
- elif p1hc.lower() == "new york avenue":
- if p1m >= 100 and or1 == 1 and or2 == 1 and or3 == 1 and or1m == 0 and or2m == 0 and or3m == 0 and or3h <= or1h and or3h <= or2h and or3h < 5:
- if or3h < 4:
- print("Built a house on New York Avenue!")
- elif or3h == 4:
- print("Built a hotel on New York Avenue!")
- or3h = or3h + 1
- p1m = p1m - 100
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if or3h == 1:
- h11.shape(house)
- h11.st()
- if or3h == 2:
- h11.shape(house2)
- if or3h == 3:
- h11.shape(house3)
- if or3h == 4:
- h11.shape(house4)
- if or3h == 5:
- h11.shape(hotel)
- else:
- print("Unable to build on New York Avenue.")
- p1hc = "x"
- #If player tries to build house on Kentucky Avenue...
- elif p1hc.lower() == "kentucky avenue":
- if p1m >= 150 and red1 == 1 and red2 == 1 and red3 == 1 and red1m == 0 and red2m == 0 and red3m == 0 and red1h <= red2h and red1h <= red3h and red1h < 5:
- if red1h < 4:
- print("Built a house on Kentucky Avenue!")
- elif red1h == 4:
- print("Built a hotel on Kentucky Avenue!")
- red1h = red1h + 1
- p1m = p1m - 150
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if red1h == 1:
- h12.shape(house)
- h12.st()
- if red1h == 2:
- h12.shape(house2)
- if red1h == 3:
- h12.shape(house3)
- if red1h == 4:
- h12.shape(house4)
- if red1h == 5:
- h12.shape(hotel)
- else:
- print("Unable to build on Kentucky Avenue.")
- p1hc = "x"
- #If player tries to build house on Indiana Avenue...
- elif p1hc.lower() == "indiana avenue":
- if p1m >= 150 and red1 == 1 and red2 == 1 and red3 == 1 and red1m == 0 and red2m == 0 and red3m == 0 and red2h <= red1h and red2h <= red3h and red2h < 5:
- if red2h < 4:
- print("Built a house on Indiana Avenue!")
- elif red2h == 4:
- print("Built a hotel on Indiana Avenue!")
- red2h = red2h + 1
- p1m = p1m - 150
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if red2h == 1:
- h13.shape(house)
- h13.st()
- if red2h == 2:
- h13.shape(house2)
- if red2h == 3:
- h13.shape(house3)
- if red2h == 4:
- h13.shape(house4)
- if red2h == 5:
- h13.shape(hotel)
- else:
- print("Unable to build on Indiana Avenue.")
- p1hc = "x"
- #If player tries to build house on Illinois Avenue...
- elif p1hc.lower() == "illinois avenue":
- if p1m >= 150 and red1 == 1 and red2 == 1 and red3 == 1 and red1m == 0 and red2m == 0 and red3m == 0 and red3h <= red1h and red3h <= red2h and red3h < 5:
- if red3h < 4:
- print("Built a house on Illinois Avenue!")
- elif red3h == 4:
- print("Built a hotel on Illinois Avenue!")
- red3h = red3h + 1
- p1m = p1m - 150
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if red3h == 1:
- h14.shape(house)
- h14.st()
- if red3h == 2:
- h14.shape(house2)
- if red3h == 3:
- h14.shape(house3)
- if red3h == 4:
- h14.shape(house4)
- if red3h == 5:
- h14.shape(hotel)
- else:
- print("Unable to build on Illinois Avenue.")
- p1hc = "x"
- #If player tries to build house on Atlantic Avenue...
- elif p1hc.lower() == "atlantic avenue":
- if p1m >= 150 and ye1 == 1 and ye2 == 1 and ye3 == 1 and ye1m == 0 and ye2m == 0 and ye3m == 0 and ye1h <= ye2h and ye1h <= ye3h and ye1h < 5:
- if ye1h < 4:
- print("Built a house on Atlantic Avenue!")
- elif ye1h == 4:
- print("Built a hotel on Atlantic Avenue!")
- ye1h = ye1h + 1
- p1m = p1m - 150
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if ye1h == 1:
- h15.shape(house)
- h15.st()
- if ye1h == 2:
- h15.shape(house2)
- if ye1h == 3:
- h15.shape(house3)
- if ye1h == 4:
- h15.shape(house4)
- if ye1h == 5:
- h15.shape(hotel)
- else:
- print("Unable to build on Atlantic Avenue.")
- p1hc = "x"
- #If player tries to build house on Ventnor Avenue...
- elif p1hc.lower() == "ventnor avenue":
- if p1m >= 150 and ye1 == 1 and ye2 == 1 and ye3 == 1 and ye1m == 0 and ye2m == 0 and ye3m == 0 and ye2h <= ye1h and ye2h <= ye3h and ye2h < 5:
- if ye2h < 4:
- print("Built a house on Ventnor Avenue!")
- elif ye2h == 4:
- print("Built a hotel on Ventnor Avenue!")
- ye2h = ye2h + 1
- p1m = p1m - 150
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if ye2h == 1:
- h16.shape(house)
- h16.st()
- if ye2h == 2:
- h16.shape(house2)
- if ye2h == 3:
- h16.shape(house3)
- if ye2h == 4:
- h16.shape(house4)
- if ye2h == 5:
- h16.shape(hotel)
- else:
- print("Unable to build on Ventnor Avenue.")
- p1hc = "x"
- #If player tries to build house on Marvin Gardens...
- elif p1hc.lower() == "marvin gardens":
- if p1m >= 150 and ye1 == 1 and ye2 == 1 and ye3 == 1 and ye1m == 0 and ye2m == 0 and ye3m == 0 and ye3h <= ye1h and ye3h <= ye2h and ye3h < 5:
- if ye3h < 4:
- print("Built a house on Marvin Gardens!")
- elif ye3h == 4:
- print("Built a hotel on Marvin Gardens!")
- ye3h = ye3h + 1
- p1m = p1m - 150
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if ye3h == 1:
- h17.shape(house)
- h17.st()
- if ye3h == 2:
- h17.shape(house2)
- if ye3h == 3:
- h17.shape(house3)
- if ye3h == 4:
- h17.shape(house4)
- if ye3h == 5:
- h17.shape(hotel)
- else:
- print("Unable to build on Marvin Gardens.")
- p1hc = "x"
- #If player tries to build house on Pacific Avenue...
- elif p1hc.lower() == "pacific avenue":
- if p1m >= 200 and gr1 == 1 and gr2 == 1 and gr3 == 1 and gr1m == 0 and gr2m == 0 and gr3m == 0 and gr1h <= gr2h and gr1h <= gr3h and gr1h < 5:
- if gr1h < 4:
- print("Built a house on Pacific Avenue!")
- elif gr1h == 4:
- print("Built a hotel on Pacific Avenue!")
- gr1h = gr1h + 1
- p1m = p1m - 200
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if gr1h == 1:
- h18.shape(house)
- h18.st()
- if gr1h == 2:
- h18.shape(house2)
- if gr1h == 3:
- h18.shape(house3)
- if gr1h == 4:
- h18.shape(house4)
- if gr1h == 5:
- h18.shape(hotel)
- else:
- print("Unable to build on Pacific Avenue.")
- p1hc = "x"
- #If player tries to build house on North Carolina Avenue...
- elif p1hc.lower() == "north carolina avenue":
- if p1m >= 200 and gr1 == 1 and gr2 == 1 and gr3 == 1 and gr1m == 0 and gr2m == 0 and gr3m == 0 and gr2h <= gr1h and gr2h <= gr3h and gr2h < 5:
- if gr2h < 4:
- print("Built a house on North Carolina Avenue!")
- elif gr2h == 4:
- print("Built a hotel on North Carolina Avenue!")
- gr2h = gr2h + 1
- p1m = p1m - 200
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if gr2h == 1:
- h19.shape(house)
- h19.st()
- if gr2h == 2:
- h19.shape(house2)
- if gr2h == 3:
- h19.shape(house3)
- if gr2h == 4:
- h19.shape(house4)
- if gr2h == 5:
- h19.shape(hotel)
- else:
- print("Unable to build on North Carolina Avenue.")
- p1hc = "x"
- #If player tries to build house on Pennsylvania Avenue...
- elif p1hc.lower() == "pennsylvania avenue":
- if p1m >= 200 and gr1 == 1 and gr2 == 1 and gr3 == 1 and gr1m == 0 and gr2m == 0 and gr3m == 0 and gr3h <= gr1h and gr3h <= gr2h and gr3h < 5:
- if gr3h < 4:
- print("Built a house on Pennsylvania Avenue!")
- elif gr3h == 4:
- print("Built a hotel on Pennsylvania Avenue!")
- gr3h = gr3h + 1
- p1m = p1m - 200
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if gr3h == 1:
- h20.shape(house)
- h20.st()
- if gr3h == 2:
- h20.shape(house2)
- if gr3h == 3:
- h20.shape(house3)
- if gr3h == 4:
- h20.shape(house4)
- if gr3h == 5:
- h20.shape(hotel)
- else:
- print("Unable to build on Pennsylvania Avenue.")
- p1hc = "x"
- #If player tries to build house on Park Place...
- elif p1hc.lower() == "park place":
- if p1m >= 200 and bl1 == 1 and bl2 == 1 and bl1m == 0 and bl2m == 0 and bl1h <= bl2h and bl1h < 5:
- if bl1h < 4:
- print("Built a house on Park Place!")
- elif bl1h == 4:
- print("Built a hotel on Park Place!")
- bl1h = bl1h + 1
- p1m = p1m - 200
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if bl1h == 1:
- h21.shape(house)
- h21.st()
- if bl1h == 2:
- h21.shape(house2)
- if bl1h == 3:
- h21.shape(house3)
- if bl1h == 4:
- h21.shape(house4)
- if bl1h == 5:
- h21.shape(hotel)
- else:
- print("Unable to build on Park Place.")
- p1hc = "x"
- #If player tries to build house on Boardwalk...
- elif p1hc.lower() == "boardwalk":
- if p1m >= 200 and bl1 == 1 and bl2 == 1 and bl1m == 0 and bl2m == 0 and bl2h <= bl1h and bl2h < 5:
- if bl2h < 4:
- print("Built a house on Boardwalk!")
- elif bl2h == 4:
- print("Built a hotel on Boardwalk!")
- bl2h = bl2h + 1
- p1m = p1m - 200
- print("You now have $" + str(p1m) + ".\n")
- #Determines how many houses to display
- if bl2h == 1:
- h22.shape(house)
- h22.st()
- if bl2h == 2:
- h22.shape(house2)
- if bl2h == 3:
- h22.shape(house3)
- if bl2h == 4:
- h22.shape(house4)
- if bl2h == 5:
- h22.shape(hotel)
- else:
- print("Unable to build on Boardwalk.")
- p1hc = "x"
- #If player is done building houses
- elif p1hc.lower() == "done":
- print("Now then...")
- #If player enters an invalid response...
- else:
- print("Invalid response.")
- p1c = "x"
- print()
- #If player chooses to sell houses...
- elif p1c.lower() == "s" or p1c.lower() == "v" or p1c.lower() == "v.":
- p1hc = "x"
- #Huge friggin' house-selling while loop
- while p1hc.lower() != "mediterranean avenue" and p1hc.lower() != "baltic avenue" and p1hc.lower() != "oriental avenue" and p1hc.lower() != "vermont avenue" and p1hc.lower() != "connecticut avenue" and p1hc.lower() != "st. charles place" and p1hc.lower() != "states avenue" and p1hc.lower() != "virginia avenue" and p1hc.lower() != "st. james place" and p1hc.lower() != "tennessee avenue" and p1hc.lower() != "new york avenue" and p1hc.lower() != "kentucky avenue" and p1hc.lower() != "indiana avenue" and p1hc.lower() != "illinois avenue" and p1hc.lower() != "atlantic avenue" and p1hc.lower() != "ventnor avenue" and p1hc.lower() != "marvin gardens" and p1hc.lower() != "pacific avenue" and p1hc.lower() != "north carolina avenue" and p1hc.lower() != "pennsylvania avenue" and p1hc.lower() != "park place" and p1hc.lower() != "boardwalk" and p1hc.lower() != "done":
- print("Sell a house on which property?")
- print("``````````````````````````")
- if br1 == 1 and br1h >= br2h and br1h > 0:
- print("Mediterranean Avenue ($25)")
- if br2 == 1 and br2h >= br1h and br2h > 0:
- print("Baltic Avenue ($25)")
- if cy1 == 1 and cy1h >= cy2h and cy1h >= cy3h and cy1h > 0:
- print("Oriental Avenue ($25)")
- if cy2 == 1 and cy2h >= cy1h and cy2h >= cy3h and cy2h > 0:
- print("Vermont Avenue ($25)")
- if cy3 == 1 and cy3h >= cy1h and cy3h >= cy2h and cy3h > 0:
- print("Connecticut Avenue ($25)")
- if vi1 == 1 and vi1h >= vi2h and vi1h >= vi3h and vi1h > 0:
- print("St. Charles Place ($50)")
- if vi2 == 1 and vi2h >= vi1h and vi2h >= vi3h and vi2h > 0:
- print("States Avenue ($50)")
- if vi3 == 1 and vi3h >= vi1h and vi3h >= vi2h and vi3h > 0:
- print("Virginia Avenue ($50)")
- if or1 == 1 and or1h >= or2h and or1h >= or3h and or1h > 0:
- print("St. James Place ($50)")
- if or2 == 1 and or2h >= or1h and or2h >= or3h and or2h > 0:
- print("Tennessee Avenue ($50)")
- if or3 == 1 and or3h >= or1h and or3h >= or2h and or3h > 0:
- print("New York Avenue ($50)")
- if red1 == 1 and red1h >= red2h and red1h >= red3h and red1h > 0:
- print("Kentucky Avenue ($75)")
- if red2 == 1 and red2h >= red1h and red2h >= red3h and red2h > 0:
- print("Indiana Avenue ($75)")
- if red3 == 1 and red3h >= red1h and red3h >= red2h and red3h > 0:
- print("Illinois Avenue ($75)")
- if ye1 == 1 and ye1h >= ye2h and ye1h >= ye3h and ye1h > 0:
- print("Atlantic Avenue ($75)")
- if ye2 == 1 and ye2h >= ye1h and ye2h >= ye3h and ye2h > 0:
- print("Ventnor Avenue ($75)")
- if ye3 == 1 and ye3h >= ye1h and ye3h >= ye2h and ye3h > 0:
- print("Marvin Gardens ($75)")
- if gr1 == 1 and gr1h >= gr2h and gr1h >= gr3h and gr1h > 0:
- print("Pacific Avenue ($100)")
- if gr2 == 1 and gr2h >= gr1h and gr2h >= gr3h and gr2h > 0:
- print("North Carolina Avenue ($100)")
- if gr3 == 1 and gr3h >= gr1h and gr3h >= gr2h and gr3h > 0:
- print("Pennsylvania Avenue ($100)")
- if bl1 == 1 and bl1h >= bl2h and bl1h > 0:
- print("Park Place ($100)")
- if bl2 == 1 and bl2h >= bl1h and bl2h > 0:
- print("Boardwalk ($100)")
- print("``````````````````````````")
- print("(Type 'Done' to finish)")
- p1hc = input()
- print()
- #If player tries to sell house on Mediterranean Avenue...
- if p1hc.lower() == "mediterranean avenue":
- if br1 == 1 and br1h >= br2h and br1h > 0:
- print("Sold house on Mediterranean Avenue!")
- if br1h == 5:
- h1.shape(house4)
- if br1h == 4:
- h1.shape(house3)
- if br1h == 3:
- h1.shape(house2)
- if br1h == 2:
- h1.shape(house)
- if br1h == 1:
- h1.ht()
- br1h = br1h - 1
- p1m = p1m + 25
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Mediterranean Avenue.")
- p1hc = "x"
- #If player tries to sell house on Baltic Avenue...
- elif p1hc.lower() == "baltic avenue":
- if br2 == 1 and br2h >= br1h and br2h > 0:
- print("Sold house on Baltic Avenue!")
- if br2h == 5:
- h2.shape(house4)
- if br2h == 4:
- h2.shape(house3)
- if br2h == 3:
- h2.shape(house2)
- if br2h == 2:
- h2.shape(house)
- if br2h == 1:
- h2.ht()
- br2h = br2h - 1
- p1m = p1m + 25
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Baltic Avenue.")
- p1hc = "x"
- #If player tries to sell house on Oriental Avenue...
- elif p1hc.lower() == "oriental avenue":
- if cy1 == 1 and cy1h >= cy2h and cy1h >= cy3h and cy1h > 0:
- print("Sold house on Oriental Avenue!")
- if cy1h == 5:
- h3.shape(house4)
- if cy1h == 4:
- h3.shape(house3)
- if cy1h == 3:
- h3.shape(house2)
- if cy1h == 2:
- h3.shape(house)
- if cy1h == 1:
- h3.ht()
- cy1h = cy1h - 1
- p1m = p1m + 25
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Oriental Avenue.")
- p1hc = "x"
- #If player tries to sell house on Vermont Avenue...
- elif p1hc.lower() == "vermont avenue":
- if cy2 == 1 and cy2h >= cy1h and cy2h >= cy3h and cy2h > 0:
- print("Sold house on Vermont Avenue!")
- if cy2h == 5:
- h4.shape(house4)
- if cy2h == 4:
- h4.shape(house3)
- if cy2h == 3:
- h4.shape(house2)
- if cy2h == 2:
- h4.shape(house)
- if cy2h == 1:
- h4.ht()
- cy2h = cy2h - 1
- p1m = p1m + 25
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Vermont Avenue.")
- p1hc = "x"
- #If player tries to sell house on Connecticut Avenue...
- elif p1hc.lower() == "connecticut avenue":
- if cy3 == 1 and cy3h >= cy1h and cy3h >= cy2h and cy3h > 0:
- print("Sold house on Connecticut Avenue!")
- if cy3h == 5:
- h5.shape(house4)
- if cy3h == 4:
- h5.shape(house3)
- if cy3h == 3:
- h5.shape(house2)
- if cy3h == 2:
- h5.shape(house)
- if cy3h == 1:
- h5.ht()
- cy3h = cy3h - 1
- p1m = p1m + 25
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Connecticut Avenue.")
- p1hc = "x"
- #If player tries to sell house on St. Charles Place...
- elif p1hc.lower() == "st. charles place":
- if vi1 == 1 and vi1h >= vi2h and vi1h >= vi3h and vi1h > 0:
- print("Sold house on St. Charles Place!")
- if vi1h == 5:
- h6.shape(house4)
- if vi1h == 4:
- h6.shape(house3)
- if vi1h == 3:
- h6.shape(house2)
- if vi1h == 2:
- h6.shape(house)
- if vi1h == 1:
- h6.ht()
- vi1h = vi1h - 1
- p1m = p1m + 50
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on St. Charles Place.")
- p1hc = "x"
- #If player tries to sell house on States Avenue...
- elif p1hc.lower() == "states avenue":
- if vi2 == 1 and vi2h >= vi1h and vi2h >= vi3h and vi2h > 0:
- print("Sold house on States Avenue!")
- if vi2h == 5:
- h7.shape(house4)
- if vi2h == 4:
- h7.shape(house3)
- if vi2h == 3:
- h7.shape(house2)
- if vi2h == 2:
- h7.shape(house)
- if vi2h == 1:
- h7.ht()
- vi2h = vi2h - 1
- p1m = p1m + 50
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on States Avenue.")
- p1hc = "x"
- #If player tries to sell house on Virginia Avenue...
- elif p1hc.lower() == "virginia avenue":
- if vi3 == 1 and vi3h >= vi1h and vi3h >= vi2h and vi3h > 0:
- print("Sold house on Virginia Avenue!")
- if vi3h == 5:
- h8.shape(house4)
- if vi3h == 4:
- h8.shape(house3)
- if vi3h == 3:
- h8.shape(house2)
- if vi3h == 2:
- h8.shape(house)
- if vi3h == 1:
- h8.ht()
- vi3h = vi3h - 1
- p1m = p1m + 50
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Virginia Avenue.")
- p1hc = "x"
- #If player tries to sell house on St. James Place...
- elif p1hc.lower() == "st. james place":
- if or1 == 1 and or1h >= or2h and or1h >= or3h and or1h > 0:
- print("Sold house on St. James Place!")
- if or1h == 5:
- h9.shape(house4)
- if or1h == 4:
- h9.shape(house3)
- if or1h == 3:
- h9.shape(house2)
- if or1h == 2:
- h9.shape(house)
- if or1h == 1:
- h9.ht()
- or1h = or1h - 1
- p1m = p1m + 50
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on St. James Place.")
- p1hc = "x"
- #If player tries to sell house on Tennessee Avenue...
- elif p1hc.lower() == "tennessee avenue":
- if or2 == 1 and or2h >= or1h and or2h >= or3h and or2h > 0:
- print("Sold house on Tennessee Avenue!")
- if or2h == 5:
- h10.shape(house4)
- if or2h == 4:
- h10.shape(house3)
- if or2h == 3:
- h10.shape(house2)
- if or2h == 2:
- h10.shape(house)
- if or2h == 1:
- h10.ht()
- or2h = or2h - 1
- p1m = p1m + 50
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Tennessee Avenue.")
- p1hc = "x"
- #If player tries to sell house on New York Avenue...
- elif p1hc.lower() == "new york avenue":
- if or3 == 1 and or3h >= or1h and or3h >= or2h and or3h > 0:
- print("Sold house on New York Avenue!")
- if or3h == 5:
- h11.shape(house4)
- if or3h == 4:
- h11.shape(house3)
- if or3h == 3:
- h11.shape(house2)
- if or3h == 2:
- h11.shape(house)
- if or3h == 1:
- h11.ht()
- or3h = or3h - 1
- p1m = p1m + 50
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on New York Avenue.")
- p1hc = "x"
- #If player tries to sell house on Kentucky Avenue...
- elif p1hc.lower() == "kentucky avenue":
- if red1 == 1 and red1h >= red2h and red1h >= red3h and red1h > 0:
- print("Sold house on Kentucky Avenue!")
- if red1h == 5:
- h12.shape(house4)
- if red1h == 4:
- h12.shape(house3)
- if red1h == 3:
- h12.shape(house2)
- if red1h == 2:
- h12.shape(house)
- if red1h == 1:
- h12.ht()
- red1h = red1h - 1
- p1m = p1m + 75
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Kentucky Avenue.")
- p1hc = "x"
- #If player tries to sell house on Indiana Avenue...
- elif p1hc.lower() == "indiana avenue":
- if red2 == 1 and red2h >= red1h and red2h >= red3h and red2h > 0:
- print("Sold house on Indiana Avenue!")
- if red2h == 5:
- h13.shape(house4)
- if red2h == 4:
- h13.shape(house3)
- if red2h == 3:
- h13.shape(house2)
- if red2h == 2:
- h13.shape(house)
- if red2h == 1:
- h13.ht()
- red2h = red2h - 1
- p1m = p1m + 75
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Indiana Avenue.")
- p1hc = "x"
- #If player tries to sell house on Illinois Avenue...
- elif p1hc.lower() == "illinois avenue":
- if red3 == 1 and red3h >= red1h and red3h >= red2h and red3h > 0:
- print("Sold house on Illinois Avenue!")
- if red3h == 5:
- h14.shape(house4)
- if red3h == 4:
- h14.shape(house3)
- if red3h == 3:
- h14.shape(house2)
- if red3h == 2:
- h14.shape(house)
- if red3h == 1:
- h14.ht()
- red3h = red3h - 1
- p1m = p1m + 75
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Illinois Avenue.")
- p1hc = "x"
- #If player tries to sell house on Atlantic Avenue...
- elif p1hc.lower() == "atlantic avenue":
- if ye1 == 1 and ye1h >= ye2h and ye1h >= ye3h and ye1h > 0:
- print("Sold house on Atlantic Avenue!")
- if ye1h == 5:
- h15.shape(house4)
- if ye1h == 4:
- h15.shape(house3)
- if ye1h == 3:
- h15.shape(house2)
- if ye1h == 2:
- h15.shape(house)
- if ye1h == 1:
- h15.ht()
- ye1h = ye1h - 1
- p1m = p1m + 75
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Atlantic Avenue.")
- p1hc = "x"
- #If player tries to sell house on Ventnor Avenue...
- elif p1hc.lower() == "ventnor avenue":
- if ye2 == 1 and ye2h >= ye1h and ye2h >= ye3h and ye2h > 0:
- print("Sold house on Ventnor Avenue!")
- if ye2h == 5:
- h16.shape(house4)
- if ye2h == 4:
- h16.shape(house3)
- if ye2h == 3:
- h16.shape(house2)
- if ye2h == 2:
- h16.shape(house)
- if ye2h == 1:
- h16.ht()
- ye2h = ye2h - 1
- p1m = p1m + 75
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Ventnor Avenue.")
- p1hc = "x"
- #If player tries to sell house on Marvin Gardens...
- elif p1hc.lower() == "marvin gardens":
- if ye3 == 1 and ye3h >= ye1h and ye3h >= ye2h and ye3h > 0:
- print("Sold house on Marvin Gardens!")
- if ye3h == 5:
- h17.shape(house4)
- if ye3h == 4:
- h17.shape(house3)
- if ye3h == 3:
- h17.shape(house2)
- if ye3h == 2:
- h17.shape(house)
- if ye3h == 1:
- h17.ht()
- ye3h = ye3h - 1
- p1m = p1m + 75
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Marvin Gardens.")
- p1hc = "x"
- #If player tries to sell house on Pacific Avenue...
- elif p1hc.lower() == "pacific avenue":
- if gr1 == 1 and gr1h >= gr2h and gr1h >= gr3h and gr1h > 0:
- print("Sold house on Pacific Avenue!")
- if gr1h == 5:
- h18.shape(house4)
- if gr1h == 4:
- h18.shape(house3)
- if gr1h == 3:
- h18.shape(house2)
- if gr1h == 2:
- h18.shape(house)
- if gr1h == 1:
- h18.ht()
- gr1h = gr1h - 1
- p1m = p1m + 100
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Pacific Avenue.")
- p1hc = "x"
- #If player tries to sell house on North Carolina Avenue...
- elif p1hc.lower() == "north carolina avenue":
- if gr2 == 1 and gr2h >= gr1h and gr2h >= gr3h and gr2h > 0:
- print("Sold house on North Carolina Avenue!")
- if gr2h == 5:
- h19.shape(house4)
- if gr2h == 4:
- h19.shape(house3)
- if gr2h == 3:
- h19.shape(house2)
- if gr2h == 2:
- h19.shape(house)
- if gr2h == 1:
- h19.ht()
- gr2h = gr2h - 1
- p1m = p1m + 100
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on North Carolina Avenue.")
- p1hc = "x"
- #If player tries to sell house on Pennsylvania Avenue...
- elif p1hc.lower() == "pennsylvania avenue":
- if gr3 == 1 and gr3h >= gr1h and gr3h >= gr2h and gr3h > 0:
- print("Sold house on Pennsylvania Avenue!")
- if gr3h == 5:
- h20.shape(house4)
- if gr3h == 4:
- h20.shape(house3)
- if gr3h == 3:
- h20.shape(house2)
- if gr3h == 2:
- h20.shape(house)
- if gr3h == 1:
- h20.ht()
- gr3h = gr3h - 1
- p1m = p1m + 100
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Pennsylvania Avenue.")
- p1hc = "x"
- #If player tries to sell house on Park Place...
- elif p1hc.lower() == "park place":
- if bl1 == 1 and bl1h >= bl2h and bl1h > 0:
- print("Sold house on Park Place!")
- if bl1h == 5:
- h21.shape(house4)
- if bl1h == 4:
- h21.shape(house3)
- if bl1h == 3:
- h21.shape(house2)
- if bl1h == 2:
- h21.shape(house)
- if bl1h == 1:
- h21.ht()
- bl1h = bl1h - 1
- p1m = p1m + 100
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Park Place.")
- p1hc = "x"
- #If player tries to sell house on Boardwalk...
- elif p1hc.lower() == "boardwalk":
- if bl2 == 1 and bl2h >= bl1h and bl2h > 0:
- print("Sold house on Boardwalk!")
- if bl2h == 5:
- h22.shape(house4)
- if bl2h == 4:
- h22.shape(house3)
- if bl2h == 3:
- h22.shape(house2)
- if bl2h == 2:
- h22.shape(house)
- if bl2h == 1:
- h22.ht()
- bl2h = bl2h - 1
- p1m = p1m + 100
- print("You now have $" + str(p1m) + ".\n")
- else:
- print("Couldn't sell house on Boardwalk.")
- p1hc = "x"
- #If player is done selling houses...
- elif p1hc.lower() == "done":
- print("Now then...")
- #If player enters an invalid response...
- else:
- print("Invalid response.")
- p1c = "x"
- print()
- #If player chooses to trade...
- elif p1c.lower() == "t" or p1c.lower() == "vi" or p1c.lower() == "vi.":
- trd1 = 0
- p1tc = "x"
- #Huge friggin' trading while loop
- while p1tc.lower() != "n/a" and p1tc.lower() != "mediterranean avenue" and p1tc.lower() != "baltic avenue" and p1tc.lower() != "reading railroad" and p1tc.lower() != "oriental avenue" and p1tc.lower() != "vermont avenue" and p1tc.lower() != "connecticut avenue" and p1tc.lower() != "st. charles place" and p1tc.lower() != "electric company" and p1tc.lower() != "states avenue" and p1tc.lower() != "virginia avenue" and p1tc.lower() != "pennsylvania railroad" and p1tc.lower() != "st. james place" and p1tc.lower() != "tennessee avenue" and p1tc.lower() != "new york avenue" and p1tc.lower() != "kentucky avenue" and p1tc.lower() != "indiana avenue" and p1tc.lower() != "illinois avenue" and p1tc.lower() != "b. & o. railroad" and p1tc.lower() != "atlantic avenue" and p1tc.lower() != "ventnor avenue" and p1tc.lower() != "water works" and p1tc.lower() != "marvin gardens" and p1tc.lower() != "pacific avenue" and p1tc.lower() != "north carolina avenue" and p1tc.lower() != "pennsylvania avenue" and p1tc.lower() != "short line" and p1tc.lower() != "park place" and p1tc.lower() != "boardwalk" and p1tc.lower() != "done":
- print("Trade which property to", p2 + "?")
- print("````````````````````````````````````````````````````````")
- if br1 == 1 and br1h == 0 and br2h == 0:
- print("Mediterranean Avenue")
- if br2 == 1 and br1h == 0 and br2h == 0:
- print("Baltic Avenue")
- if cy1 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Oriental Avenue")
- if cy2 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Vermont Avenue")
- if cy3 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Connecticut Avenue")
- if vi1 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("St. Charles Place")
- if vi2 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("States Avenue")
- if vi3 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("Virginia Avenue")
- if or1 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
- print("St. James Place")
- if or2 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
- print("Tennessee Avenue")
- if or3 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
- print("New York Avenue")
- if red1 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Kentucky Avenue")
- if red2 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Indiana Avenue")
- if red3 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Illinois Avenue")
- if ye1 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Atlantic Avenue")
- if ye2 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Ventnor Avenue")
- if ye3 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Marvin Gardens")
- if gr1 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Pacific Avenue")
- if gr2 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("North Carolina Avenue")
- if gr3 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Pennsylvania Avenue")
- if bl1 == 1 and bl1h == 0 and bl2h == 0:
- print("Park Place")
- if bl2 == 1 and bl1h == 0 and bl2h == 0:
- print("Boardwalk")
- if rrr == 1:
- print("Reading Railroad")
- if prr == 1:
- print("Pennsylvania Railroad")
- if brr == 1:
- print("B. & O. Railroad")
- if srr == 1:
- print("Short Line")
- if ec == 1:
- print("Electric Company")
- if ww == 1:
- print("Water Works")
- print("````````````````````````````````````````````````````````")
- print("(Type 'Done' to cancel, or 'N/A' if trading no property)")
- p1tc = input()
- #If player tries to trade Mediterranean Avenue...
- if p1tc.lower() == "mediterranean avenue":
- if br1 == 1 and br1h == 0 and br2h == 0:
- print("Added", p1 + "'s Mediterranean Avenue to trade.")
- trd1 = 1
- #If player tries to trade Baltic Avenue...
- elif p1tc.lower() == "baltic avenue":
- if br2 == 1 and br1h == 0 and br2h == 0:
- print("Added", p1 + "'s Baltic Avenue to trade.")
- trd1 = 2
- #If player tries to trade Oriental Avenue...
- elif p1tc.lower() == "oriental avenue":
- if cy1 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Added", p1 + "'s Oriental Avenue to trade.")
- trd1 = 3
- #If player tries to trade Vermont Avenue...
- elif p1tc.lower() == "vermont avenue":
- if cy2 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Added", p1 + "'s Vermont Avenue to trade.")
- trd1 = 4
- #If player tries to trade Connecticut Avenue...
- elif p1tc.lower() == "connecticut avenue":
- if cy3 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Added", p1 + "'s Connecticut Avenue to trade.")
- trd1 = 5
- #If player tries to trade St. Charles Place...
- elif p1tc.lower() == "st. charles place":
- if vi1 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("Added", p1 + "'s St. Charles Place to trade.")
- trd1 = 6
- #If player tries to trade States Avenue...
- elif p1tc.lower() == "states avenue":
- if vi2 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("Added", p1 + "'s States Avenue to trade.")
- trd1 = 7
- #If player tries to trade Virginia Avenue...
- elif p1tc.lower() == "virginia avenue":
- if vi3 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("Added", p1 + "'s Virginia Avenue to trade.")
- trd1 = 8
- #If player tries to trade St. James Place...
- elif p1tc.lower() == "st. james place":
- if or1 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
- print("Added", p1 + "'s St. James Place to trade.")
- trd1 = 9
- #If player tries to trade Tennessee Avenue...
- elif p1tc.lower() == "tennessee avenue":
- if or2 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
- print("Added", p1 + "'s Tennessee Avenue to trade.")
- trd1 = 10
- #If player tries to trade New York Avenue...
- elif p1tc.lower() == "new york avenue":
- if or3 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
- print("Added", p1 + "'s New York Avenue to trade.")
- trd1 = 11
- #If player tries to trade Kentucky Avenue...
- elif p1tc.lower() == "kentucky avenue":
- if red1 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Added", p1 + "'s Kentucky Avenue to trade.")
- trd1 = 12
- #If player tries to trade Indiana Avenue...
- elif p1tc.lower() == "indiana avenue":
- if red2 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Added", p1 + "'s Indiana Avenue to trade.")
- trd1 = 13
- #If player tries to trade Illinois Avenue...
- elif p1tc.lower() == "illinois avenue":
- if red3 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Added", p1 + "'s Illinois Avenue to trade.")
- trd1 = 14
- #If player tries to trade Atlantic Avenue...
- elif p1tc.lower() == "atlantic avenue":
- if ye1 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Added", p1 + "'s Atlantic Avenue to trade.")
- trd1 = 15
- #If player tries to trade Ventnor Avenue...
- elif p1tc.lower() == "ventnor avenue":
- if ye2 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Added", p1 + "'s Ventnor Avenue to trade.")
- trd1 = 16
- #If player tries to trade Marvin Gardens...
- elif p1tc.lower() == "marvin gardens":
- if ye3 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Added", p1 + "'s Marvin Gardens to trade.")
- trd1 = 17
- #If player tries to trade Pacific Avenue...
- elif p1tc.lower() == "pacific avenue":
- if gr1 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Added", p1 + "'s Pacific Avenue to trade.")
- trd1 = 18
- #If player tries to trade North Carolina Avenue...
- elif p1tc.lower() == "north carolina avenue":
- if gr2 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Added", p1 + "'s North Carolina Avenue to trade.")
- trd1 = 19
- #If player tries to trade Pennsylvania Avenue...
- elif p1tc.lower() == "pennsylvania avenue":
- if gr3 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Added", p1 + "'s Pennsylvania Avenue to trade.")
- trd1 = 20
- #If player tries to trade Park Place...
- elif p1tc.lower() == "park place":
- if bl1 == 1 and bl1h == 0 and bl2h == 0:
- print("Added", p1 + "'s Park Place to trade.")
- trd1 = 21
- #If player tries to trade Boardwalk...
- elif p1tc.lower() == "boardwalk":
- if bl2 == 1 and bl1h == 0 and bl2h == 0:
- print("Added", p1 + "'s Boardwalk to trade.")
- trd1 = 22
- #If player tries to trade Reading Railroad...
- elif p1tc.lower() == "reading railroad":
- if rrr == 1:
- print("Added", p1 + "'s Reading Railroad to trade.")
- trd1 = 23
- #If player tries to trade Pennsylvania Railroad...
- elif p1tc.lower() == "pennsylvania railroad":
- if prr == 1:
- print("Added", p1 + "'s Pennsylvania Railroad to trade.")
- trd1 = 24
- #If player tries to trade B. & O. Railroad...
- elif p1tc.lower() == "b. & o. railroad":
- if brr == 1:
- print("Added", p1 + "'s B. & O. Railroad to trade.")
- trd1 = 25
- #If player tries to trade Short Line...
- elif p1tc.lower() == "short line":
- if srr == 1:
- print("Added", p1 + "'s Short Line to trade.")
- trd1 = 26
- #If player tries to trade Electric Company...
- elif p1tc.lower() == "electric company":
- if ec == 1:
- print("Added", p1 + "'s Electric Company to trade.")
- trd1 = 27
- #If player tries to trade Water Works...
- elif p1tc.lower() == "water works":
- if ww == 1:
- print("Added", p1 + "'s Water Works to trade.")
- trd1 = 28
- #If player tries to trade no property...
- elif p1tc.lower() == "n/a":
- print("Added no property to trade.")
- trd1 = -1
- #If player is done trading...
- elif p1tc.lower() == "done":
- print("\nNow then...")
- #If player enters an invalid answer...
- else:
- print("Invalid response.")
- #When player is prompted to trade money to opponent...
- if trd1 != 0:
- trd1m = -1
- while trd1m == -1:
- print("\nTrade how much money to", p2 + "?")
- trd1m = int(input())
- if p1m >= trd1m:
- print("Added $" + str(trd1m), "to trade.")
- else:
- print("Can not add $" + str(trd1m), "to trade; insufficient funds.")
- trd1m = -1
- #When player requests property from opponent...
- p1tcc = "x"
- while p1tcc.lower() != "n/a" and p1tcc.lower() != "mediterranean avenue" and p1tcc.lower() != "baltic avenue" and p1tcc.lower() != "reading railroad" and p1tcc.lower() != "oriental avenue" and p1tcc.lower() != "vermont avenue" and p1tcc.lower() != "connecticut avenue" and p1tcc.lower() != "st. charles place" and p1tcc.lower() != "electric company" and p1tcc.lower() != "states avenue" and p1tcc.lower() != "virginia avenue" and p1tcc.lower() != "pennsylvania railroad" and p1tcc.lower() != "st. james place" and p1tcc.lower() != "tennessee avenue" and p1tcc.lower() != "new york avenue" and p1tcc.lower() != "kentucky avenue" and p1tcc.lower() != "indiana avenue" and p1tcc.lower() != "illinois avenue" and p1tcc.lower() != "b. & o. railroad" and p1tcc.lower() != "atlantic avenue" and p1tcc.lower() != "ventnor avenue" and p1tcc.lower() != "water works" and p1tcc.lower() != "marvin gardens" and p1tcc.lower() != "pacific avenue" and p1tcc.lower() != "north carolina avenue" and p1tcc.lower() != "pennsylvania avenue" and p1tcc.lower() != "short line" and p1tcc.lower() != "park place" and p1tcc.lower() != "boardwalk" and p1tcc.lower() != "done":
- print("\nNow, what property do you want from", p2 + "?")
- print("````````````````````````````````````````````````````````")
- if br1 == 2 and br1h == 0 and br2h == 0:
- print("Mediterranean Avenue")
- if br2 == 2 and br1h == 0 and br2h == 0:
- print("Baltic Avenue")
- if cy1 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Oriental Avenue")
- if cy2 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Vermont Avenue")
- if cy3 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Connecticut Avenue")
- if vi1 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("St. Charles Place")
- if vi2 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("States Avenue")
- if vi3 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("Virginia Avenue")
- if or1 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
- print("St. James Place")
- if or2 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
- print("Tennessee Avenue")
- if or3 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
- print("New York Avenue")
- if red1 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Kentucky Avenue")
- if red2 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Indiana Avenue")
- if red3 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Illinois Avenue")
- if ye1 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Atlantic Avenue")
- if ye2 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Ventnor Avenue")
- if ye3 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Marvin Gardens")
- if gr1 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Pacific Avenue")
- if gr2 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("North Carolina Avenue")
- if gr3 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Pennsylvania Avenue")
- if bl1 == 2 and bl1h == 0 and bl2h == 0:
- print("Park Place")
- if bl2 == 2 and bl1h == 0 and bl2h == 0:
- print("Boardwalk")
- if rrr == 2:
- print("Reading Railroad")
- if prr == 2:
- print("Pennsylvania Railroad")
- if brr == 2:
- print("B. & O. Railroad")
- if srr == 2:
- print("Short Line")
- if ec == 2:
- print("Electric Company")
- if ww == 2:
- print("Water Works")
- print("````````````````````````````````````````````````````````")
- print("(Type 'Done' to cancel, or 'N/A' if you desire no property)")
- p1tcc = input()
- #If player requests Mediterranean Avenue...
- if p1tcc.lower() == "mediterranean avenue":
- if br1 == 2 and br1h == 0 and br2h == 0:
- print("Added", p2 + "'s Mediterranean Avenue to trade.")
- trd2 = 1
- #If player requests Baltic Avenue...
- elif p1tcc.lower() == "baltic avenue":
- if br2 == 2 and br1h == 0 and br2h == 0:
- print("Added", p2 + "'s Baltic Avenue to trade.")
- trd2 = 2
- #If player requests Oriental Avenue...
- elif p1tcc.lower() == "oriental avenue":
- if cy1 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Added", p2 + "'s Oriental Avenue to trade.")
- trd2 = 3
- #If player requests Vermont Avenue...
- elif p1tcc.lower() == "vermont avenue":
- if cy2 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Added", p2 + "'s Vermont Avenue to trade.")
- trd2 = 4
- #If player requests Connecticut Avenue...
- elif p1tcc.lower() == "connecticut avenue":
- if cy3 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
- print("Added", p2 + "'s Connecticut Avenue to trade.")
- trd2 = 5
- #If player requests St. Charles Place...
- elif p1tcc.lower() == "st. charles place":
- if vi1 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("Added", p2 + "'s St. Charles Place to trade.")
- trd2 = 6
- #If player requests States Avenue...
- elif p1tcc.lower() == "states avenue":
- if vi2 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("Added", p2 + "'s States Avenue to trade.")
- trd2 = 7
- #If player requests Virginia Avenue...
- elif p1tcc.lower() == "virginia avenue":
- if vi3 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
- print("Added", p2 + "'s Virginia Avenue to trade.")
- trd2 = 8
- #If player requests St. James Place...
- elif p1tcc.lower() == "st. james place":
- if or1 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
- print("Added", p2 + "'s St. James Place to trade.")
- trd2 = 9
- #If player requests Tennessee Avenue...
- elif p1tcc.lower() == "tennessee avenue":
- if or2 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
- print("Added", p2 + "'s Tennessee Avenue to trade.")
- trd2 = 10
- #If player requests New York Avenue...
- elif p1tcc.lower() == "new york avenue":
- if or3 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
- print("Added", p2 + "'s New York Avenue to trade.")
- trd2 = 11
- #If player requests Kentucky Avenue...
- elif p1tcc.lower() == "kentucky avenue":
- if red1 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Added", p2 + "'s Kentucky Avenue to trade.")
- trd2 = 12
- #If player requests Indiana Avenue...
- elif p1tcc.lower() == "indiana avenue":
- if red2 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Added", p2 + "'s Indiana Avenue to trade.")
- trd2 = 13
- #If player requests Illinois Avenue...
- elif p1tcc.lower() == "illinois avenue":
- if red3 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
- print("Added", p2 + "'s Illinois Avenue to trade.")
- trd2 = 14
- #If player requests Atlantic Avenue...
- elif p1tcc.lower() == "atlantic avenue":
- if ye1 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Added", p2 + "'s Atlantic Avenue to trade.")
- trd2 = 15
- #If player requests Ventnor Avenue...
- elif p1tcc.lower() == "ventnor avenue":
- if ye2 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Added", p2 + "'s Ventnor Avenue to trade.")
- trd2 = 16
- #If player requests Marvin Gardens...
- elif p1tcc.lower() == "marvin gardens":
- if ye3 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
- print("Added", p2 + "'s Marvin Gardens to trade.")
- trd2 = 17
- #If player requests Pacific Avenue...
- elif p1tcc.lower() == "pacific avenue":
- if gr1 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Added", p2 + "'s Pacific Avenue to trade.")
- trd2 = 18
- #If player requests North Carolina Avenue...
- elif p1tcc.lower() == "north carolina avenue":
- if gr2 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Added", p2 + "'s North Carolina Avenue to trade.")
- trd2 = 19
- #If player requests Pennsylvania Avenue...
- elif p1tcc.lower() == "pennsylvania avenue":
- if gr3 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
- print("Added", p2 + "'s Pennsylvania Avenue to trade.")
- trd2 = 20
- #If player requests Park Place...
- elif p1tcc.lower() == "park place":
- if bl1 == 2 and bl1h == 0 and bl2h == 0:
- print("Added", p2 + "'s Park Place to trade.")
- trd2 = 21
- #If player requests Boardwalk...
- elif p1tcc.lower() == "boardwalk":
- if bl2 == 2 and bl1h == 0 and bl2h == 0:
- print("Added", p2 + "'s Boardwalk to trade.")
- trd2 = 22
- #If player requests Reading Railroad...
- elif p1tcc.lower() == "reading railroad":
- if rrr == 2:
- print("Added", p2 + "'s Reading Railroad to trade.")
- trd2 = 23
- #If player requests Pennsylvania Railroad...
- elif p1tcc.lower() == "pennsylvania railroad":
- if prr == 2:
- print("Added", p2 + "'s Pennsylvania Railroad to trade.")
- trd2 = 24
- #If player requests B. & O. Railroad...
- elif p1tcc.lower() == "b. & o. railroad":
- if brr == 2:
- print("Added", p2 + "'s B. & O. Railroad to trade.")
- trd2 = 25
- #If player requests Short Line...
- elif p1tcc.lower() == "short line":
- if srr == 2:
- print("Added", p2 + "'s Short Line to trade.")
- trd2 = 26
- #If player requests Electric Company...
- elif p1tcc.lower() == "electric company":
- if ec == 2:
- print("Added", p2 + "'s Electric Company to trade.")
- trd2 = 27
- #If player requests Water Works...
- elif p1tcc.lower() == "water works":
- if ww == 2:
- print("Added", p2 + "'s Water Works to trade.")
- trd2 = 28
- #If player requests no property...
- elif p1tcc.lower() == "n/a":
- print("Added no property to trade.")
- trd2 = -1
- #If player changes their mind...
- elif p1tcc.lower() == "done":
- print("All right then...")
- trd2 = 0
- #If player gives an invalid response...
- else:
- print("Invalid response.")
- #When player is prompted to request money from opponent...
- if trd2 != 0:
- trd2m = -1
- while trd2m == -1:
- print("\nHow much money do you want from", p2 + "?")
- trd2m = int(input())
- if p2m >= trd2m:
- print("Added $" + str(trd2m), "to trade.")
- input()
- else:
- print("Can not add $" + str(trd2m), "to trade; insufficient funds.")
- trd2m = -1
- trade = "x"
- #Trade specification statement
- while trade != "y" and trade != "n":
- print(p2 + ",", p1, "wants to give you ", end='')
- if trd1 == 1:
- print("Mediterranean Avenue", end='')
- elif trd1 == 2:
- print("Baltic Avenue", end='')
- elif trd1 == 3:
- print("Oriental Avenue", end='')
- elif trd1 == 4:
- print("Vermont Avenue", end='')
- elif trd1 == 5:
- print("Connecticut Avenue", end='')
- elif trd1 == 6:
- print("St. Charles Place", end='')
- elif trd1 == 7:
- print("States Avenue", end='')
- elif trd1 == 8:
- print("Virginia Avenue", end='')
- elif trd1 == 9:
- print("St. James Place", end='')
- elif trd1 == 10:
- print("Tennessee Avenue", end='')
- elif trd1 == 11:
- print("New York Avenue", end='')
- elif trd1 == 12:
- print("Kentucky Avenue", end='')
- elif trd1 == 13:
- print("Indiana Avenue", end='')
- elif trd1 == 14:
- print("Illinois Avenue", end='')
- elif trd1 == 15:
- print("Atlantic Avenue", end='')
- elif trd1 == 16:
- print("Ventnor Avenue", end='')
- elif trd1 == 17:
- print("Marvin Gardens", end='')
- elif trd1 == 18:
- print("Pacific Avenue", end='')
- elif trd1 == 19:
- print("North Carolina Avenue", end='')
- elif trd1 == 20:
- print("Pennsylvania Avenue", end='')
- elif trd1 == 21:
- print("Park Place", end='')
- elif trd1 == 22:
- print("Boardwalk", end='')
- elif trd1 == 23:
- print("Reading Railroad", end='')
- elif trd1 == 24:
- print("Pennsylvania Railroad", end='')
- elif trd1 == 25:
- print("B. & O. Railroad", end='')
- elif trd1 == 26:
- print("Short Line", end='')
- elif trd1 == 27:
- print("Electric Company", end='')
- elif trd1 == 28:
- print("Water Works", end='')
- if trd1 != -1:
- print(" and", end='')
- print(" $" + str(trd1m), "in")
- print("exchange for ", end='')
- if trd2 == 1:
- print("Mediterranean Avenue", end='')
- elif trd2 == 2:
- print("Baltic Avenue", end='')
- elif trd2 == 3:
- print("Oriental Avenue", end='')
- elif trd2 == 4:
- print("Vermont Avenue", end='')
- elif trd2 == 5:
- print("Connecticut Avenue", end='')
- elif trd2 == 6:
- print("St. Charles Place", end='')
- elif trd2 == 7:
- print("States Avenue", end='')
- elif trd2 == 8:
- print("Virginia Avenue", end='')
- elif trd2 == 9:
- print("St. James Place", end='')
- elif trd2 == 10:
- print("Tennessee Avenue", end='')
- elif trd2 == 11:
- print("New York Avenue", end='')
- elif trd2 == 12:
- print("Kentucky Avenue", end='')
- elif trd2 == 13:
- print("Indiana Avenue", end='')
- elif trd2 == 14:
- print("Illinois Avenue", end='')
- elif trd2 == 15:
- print("Atlantic Avenue", end='')
- elif trd2 == 16:
- print("Ventnor Avenue", end='')
- elif trd2 == 17:
- print("Marvin Gardens", end='')
- elif trd2 == 18:
- print("Pacific Avenue", end='')
- elif trd2 == 19:
- print("North Carolina Avenue", end='')
- elif trd2 == 20:
- print("Pennsylvania Avenue", end='')
- elif trd2 == 21:
- print("Park Place", end='')
- elif trd2 == 22:
- print("Boardwalk", end='')
- elif trd2 == 23:
- print("Reading Railroad", end='')
- elif trd2 == 24:
- print("Pennsylvania Railroad", end='')
- elif trd2 == 25:
- print("B. & O. Railroad", end='')
- elif trd2 == 26:
- print("Short Line", end='')
- elif trd2 == 27:
- print("Electric Company", end='')
- elif trd2 == 28:
- print("Water Works", end='')
- if trd2 != -1:
- print(" and ", end='')
- print("$" + str(trd2m) + ". Do you accept? (y/n)")
- trade = input()
- #If player accepts the offer...
- if trade.lower() == "y":
- print("\nTrade complete!")
- #Player One's offer gets traded to Player Two
- if trd1 == 1:
- br1 = 2
- if p2cc.lower() == "cat":
- prop1.shape(catp)
- elif p2cc.lower() == "stickman":
- prop1.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop1.shape(carp)
- elif p2cc.lower() == "thimble":
- prop1.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop1.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop1.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop1.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop1.shape(thimblecolorp)
- elif trd1 == 2:
- br2 = 2
- if p2cc.lower() == "cat":
- prop2.shape(catp)
- elif p2cc.lower() == "stickman":
- prop2.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop2.shape(carp)
- elif p2cc.lower() == "thimble":
- prop2.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop2.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop2.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop2.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop2.shape(thimblecolorp)
- elif trd1 == 3:
- cy1 = 2
- if p2cc.lower() == "cat":
- prop4.shape(catp)
- elif p2cc.lower() == "stickman":
- prop4.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop4.shape(carp)
- elif p2cc.lower() == "thimble":
- prop4.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop4.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop4.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop4.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop4.shape(thimblecolorp)
- elif trd1 == 4:
- cy2 = 2
- if p2cc.lower() == "cat":
- prop5.shape(catp)
- elif p2cc.lower() == "stickman":
- prop5.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop5.shape(carp)
- elif p2cc.lower() == "thimble":
- prop5.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop5.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop5.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop5.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop5.shape(thimblecolorp)
- elif trd1 == 5:
- cy3 = 2
- if p2cc.lower() == "cat":
- prop6.shape(catp)
- elif p2cc.lower() == "stickman":
- prop6.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop6.shape(carp)
- elif p2cc.lower() == "thimble":
- prop6.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop6.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop6.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop6.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop6.shape(thimblecolorp)
- elif trd1 == 6:
- vi1 = 2
- if p2cc.lower() == "cat":
- prop7.shape(catp)
- elif p2cc.lower() == "stickman":
- prop7.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop7.shape(carp)
- elif p2cc.lower() == "thimble":
- prop7.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop7.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop7.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop7.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop7.shape(thimblecolorp)
- elif trd1 == 7:
- vi2 = 2
- if p2cc.lower() == "cat":
- prop9.shape(catp)
- elif p2cc.lower() == "stickman":
- prop9.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop9.shape(carp)
- elif p2cc.lower() == "thimble":
- prop9.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop9.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop9.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop9.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop9.shape(thimblecolorp)
- elif trd1 == 8:
- vi3 = 2
- if p2cc.lower() == "cat":
- prop10.shape(catp)
- elif p2cc.lower() == "stickman":
- prop10.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop10.shape(carp)
- elif p2cc.lower() == "thimble":
- prop10.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop10.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop10.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop10.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop10.shape(thimblecolorp)
- elif trd1 == 9:
- or1 = 2
- if p2cc.lower() == "cat":
- prop12.shape(catp)
- elif p2cc.lower() == "stickman":
- prop12.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop12.shape(carp)
- elif p2cc.lower() == "thimble":
- prop12.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop12.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop12.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop12.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop12.shape(thimblecolorp)
- elif trd1 == 10:
- or2 = 2
- if p2cc.lower() == "cat":
- prop13.shape(catp)
- elif p2cc.lower() == "stickman":
- prop13.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop13.shape(carp)
- elif p2cc.lower() == "thimble":
- prop13.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop13.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop13.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop13.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop13.shape(thimblecolorp)
- elif trd1 == 11:
- or3 = 2
- if p2cc.lower() == "cat":
- prop14.shape(catp)
- elif p2cc.lower() == "stickman":
- prop14.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop14.shape(carp)
- elif p2cc.lower() == "thimble":
- prop14.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop14.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop14.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop14.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop14.shape(thimblecolorp)
- elif trd1 == 12:
- red1 = 2
- if p2cc.lower() == "cat":
- prop15.shape(catp)
- elif p2cc.lower() == "stickman":
- prop15.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop15.shape(carp)
- elif p2cc.lower() == "thimble":
- prop15.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop15.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop15.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop15.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop15.shape(thimblecolorp)
- elif trd1 == 13:
- red2 = 2
- if p2cc.lower() == "cat":
- prop16.shape(catp)
- elif p2cc.lower() == "stickman":
- prop16.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop16.shape(carp)
- elif p2cc.lower() == "thimble":
- prop16.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop16.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop16.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop16.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop16.shape(thimblecolorp)
- elif trd1 == 14:
- red3 = 2
- if p2cc.lower() == "cat":
- prop17.shape(catp)
- elif p2cc.lower() == "stickman":
- prop17.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop17.shape(carp)
- elif p2cc.lower() == "thimble":
- prop17.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop17.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop17.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop17.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop17.shape(thimblecolorp)
- elif trd1 == 15:
- ye1 = 2
- if p2cc.lower() == "cat":
- prop19.shape(catp)
- elif p2cc.lower() == "stickman":
- prop19.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop19.shape(carp)
- elif p2cc.lower() == "thimble":
- prop19.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop19.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop19.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop19.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop19.shape(thimblecolorp)
- elif trd1 == 16:
- ye2 = 2
- if p2cc.lower() == "cat":
- prop20.shape(catp)
- elif p2cc.lower() == "stickman":
- prop20.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop20.shape(carp)
- elif p2cc.lower() == "thimble":
- prop20.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop20.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop20.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop20.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop20.shape(thimblecolorp)
- elif trd1 == 17:
- ye3 = 2
- if p2cc.lower() == "cat":
- prop22.shape(catp)
- elif p2cc.lower() == "stickman":
- prop22.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop22.shape(carp)
- elif p2cc.lower() == "thimble":
- prop22.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop22.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop22.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop22.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop22.shape(thimblecolorp)
- elif trd1 == 18:
- gr1 = 2
- if p2cc.lower() == "cat":
- prop23.shape(catp)
- elif p2cc.lower() == "stickman":
- prop23.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop23.shape(carp)
- elif p2cc.lower() == "thimble":
- prop23.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop23.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop23.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop23.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop23.shape(thimblecolorp)
- elif trd1 == 19:
- gr2 = 2
- if p2cc.lower() == "cat":
- prop24.shape(catp)
- elif p2cc.lower() == "stickman":
- prop24.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop24.shape(carp)
- elif p2cc.lower() == "thimble":
- prop24.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop24.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop24.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop24.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop24.shape(thimblecolorp)
- elif trd1 == 20:
- gr3 = 2
- if p2cc.lower() == "cat":
- prop25.shape(catp)
- elif p2cc.lower() == "stickman":
- prop25.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop25.shape(carp)
- elif p2cc.lower() == "thimble":
- prop25.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop25.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop25.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop25.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop25.shape(thimblecolorp)
- elif trd1 == 21:
- bl1 = 2
- if p2cc.lower() == "cat":
- prop27.shape(catp)
- elif p2cc.lower() == "stickman":
- prop27.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop27.shape(carp)
- elif p2cc.lower() == "thimble":
- prop27.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop27.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop27.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop27.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop27.shape(thimblecolorp)
- elif trd1 == 22:
- bl2 = 2
- if p2cc.lower() == "cat":
- prop28.shape(catp)
- elif p2cc.lower() == "stickman":
- prop28.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop28.shape(carp)
- elif p2cc.lower() == "thimble":
- prop28.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop28.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop28.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop28.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop28.shape(thimblecolorp)
- elif trd1 == 23:
- rrr = 2
- p1rr = p1rr - 1
- p2rr = p2rr + 1
- if p2cc.lower() == "cat":
- prop3.shape(catp)
- elif p2cc.lower() == "stickman":
- prop3.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop3.shape(carp)
- elif p2cc.lower() == "thimble":
- prop3.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop3.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop3.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop3.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop3.shape(thimblecolorp)
- elif trd1 == 24:
- prr = 2
- p1rr = p1rr - 1
- p2rr = p2rr + 1
- if p2cc.lower() == "cat":
- prop11.shape(catp)
- elif p2cc.lower() == "stickman":
- prop11.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop11.shape(carp)
- elif p2cc.lower() == "thimble":
- prop11.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop11.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop11.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop11.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop11.shape(thimblecolorp)
- elif trd1 == 25:
- brr = 2
- p1rr = p1rr - 1
- p2rr = p2rr + 1
- if p2cc.lower() == "cat":
- prop18.shape(catp)
- elif p2cc.lower() == "stickman":
- prop18.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop18.shape(carp)
- elif p2cc.lower() == "thimble":
- prop18.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop18.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop18.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop18.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop18.shape(thimblecolorp)
- elif trd1 == 26:
- srr = 2
- p1rr = p1rr - 1
- p2rr = p2rr + 1
- if p2cc.lower() == "cat":
- prop26.shape(catp)
- elif p2cc.lower() == "stickman":
- prop26.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop26.shape(carp)
- elif p2cc.lower() == "thimble":
- prop26.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop26.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop26.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop26.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop26.shape(thimblecolorp)
- elif trd1 == 27:
- ec = 2
- p1u = p1u - 1
- p2u = p2u + 1
- if p2cc.lower() == "cat":
- prop8.shape(catp)
- elif p2cc.lower() == "stickman":
- prop8.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop8.shape(carp)
- elif p2cc.lower() == "thimble":
- prop8.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop8.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop8.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop8.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop8.shape(thimblecolorp)
- elif trd1 == 28:
- ww = 2
- p1u = p1u - 1
- p2u = p2u + 1
- if p2cc.lower() == "cat":
- prop21.shape(catp)
- elif p2cc.lower() == "stickman":
- prop21.shape(stickmanp)
- elif p2cc.lower() == "car":
- prop21.shape(carp)
- elif p2cc.lower() == "thimble":
- prop21.shape(thimblep)
- elif p2cc.lower() == "catcolor":
- prop21.shape(catcolorp)
- elif p2cc.lower() == "stickmancolor":
- prop21.shape(stickmancolorp)
- elif p2cc.lower() == "carcolor":
- prop21.shape(carcolorp)
- elif p2cc.lower() == "thimblecolor":
- prop21.shape(thimblecolorp)
- #Player Two's offer gets traded to Player One
- if trd2 == 1:
- br1 = 1
- if p1cc.lower() == "cat":
- prop1.shape(catp)
- elif p1cc.lower() == "stickman":
- prop1.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop1.shape(carp)
- elif p1cc.lower() == "thimble":
- prop1.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop1.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop1.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop1.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop1.shape(thimblecolorp)
- elif trd2 == 2:
- br2 = 1
- if p1cc.lower() == "cat":
- prop2.shape(catp)
- elif p1cc.lower() == "stickman":
- prop2.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop2.shape(carp)
- elif p1cc.lower() == "thimble":
- prop2.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop2.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop2.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop2.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop2.shape(thimblecolorp)
- elif trd2 == 3:
- cy1 = 1
- if p1cc.lower() == "cat":
- prop4.shape(catp)
- elif p1cc.lower() == "stickman":
- prop4.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop4.shape(carp)
- elif p1cc.lower() == "thimble":
- prop4.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop4.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop4.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop4.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop4.shape(thimblecolorp)
- elif trd2 == 4:
- cy2 = 1
- if p1cc.lower() == "cat":
- prop5.shape(catp)
- elif p1cc.lower() == "stickman":
- prop5.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop5.shape(carp)
- elif p1cc.lower() == "thimble":
- prop5.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop5.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop5.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop5.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop5.shape(thimblecolorp)
- elif trd2 == 5:
- cy3 = 1
- if p1cc.lower() == "cat":
- prop6.shape(catp)
- elif p1cc.lower() == "stickman":
- prop6.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop6.shape(carp)
- elif p1cc.lower() == "thimble":
- prop6.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop6.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop6.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop6.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop6.shape(thimblecolorp)
- elif trd2 == 6:
- vi1 = 1
- if p1cc.lower() == "cat":
- prop7.shape(catp)
- elif p1cc.lower() == "stickman":
- prop7.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop7.shape(carp)
- elif p1cc.lower() == "thimble":
- prop7.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop7.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop7.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop7.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop7.shape(thimblecolorp)
- elif trd2 == 7:
- vi2 = 1
- if p1cc.lower() == "cat":
- prop9.shape(catp)
- elif p1cc.lower() == "stickman":
- prop9.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop9.shape(carp)
- elif p1cc.lower() == "thimble":
- prop9.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop9.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop9.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop9.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop9.shape(thimblecolorp)
- elif trd2 == 8:
- vi3 = 1
- if p1cc.lower() == "cat":
- prop10.shape(catp)
- elif p1cc.lower() == "stickman":
- prop10.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop10.shape(carp)
- elif p1cc.lower() == "thimble":
- prop10.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop10.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop10.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop10.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop10.shape(thimblecolorp)
- elif trd2 == 9:
- or1 = 1
- if p1cc.lower() == "cat":
- prop12.shape(catp)
- elif p1cc.lower() == "stickman":
- prop12.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop12.shape(carp)
- elif p1cc.lower() == "thimble":
- prop12.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop12.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop12.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop12.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop12.shape(thimblecolorp)
- elif trd2 == 10:
- or2 = 1
- if p1cc.lower() == "cat":
- prop13.shape(catp)
- elif p1cc.lower() == "stickman":
- prop13.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop13.shape(carp)
- elif p1cc.lower() == "thimble":
- prop13.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop13.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop13.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop13.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop13.shape(thimblecolorp)
- elif trd2 == 11:
- or3 = 1
- if p1cc.lower() == "cat":
- prop14.shape(catp)
- elif p1cc.lower() == "stickman":
- prop14.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop14.shape(carp)
- elif p1cc.lower() == "thimble":
- prop14.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop14.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop14.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop14.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop14.shape(thimblecolorp)
- elif trd2 == 12:
- red1 = 1
- if p1cc.lower() == "cat":
- prop15.shape(catp)
- elif p1cc.lower() == "stickman":
- prop15.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop15.shape(carp)
- elif p1cc.lower() == "thimble":
- prop15.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop15.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop15.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop15.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop15.shape(thimblecolorp)
- elif trd2 == 13:
- red2 = 1
- if p1cc.lower() == "cat":
- prop16.shape(catp)
- elif p1cc.lower() == "stickman":
- prop16.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop16.shape(carp)
- elif p1cc.lower() == "thimble":
- prop16.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop16.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop16.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop16.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop16.shape(thimblecolorp)
- elif trd2 == 14:
- red3 = 1
- if p1cc.lower() == "cat":
- prop17.shape(catp)
- elif p1cc.lower() == "stickman":
- prop17.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop17.shape(carp)
- elif p1cc.lower() == "thimble":
- prop17.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop17.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop17.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop17.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop17.shape(thimblecolorp)
- elif trd2 == 15:
- ye1 = 1
- if p1cc.lower() == "cat":
- prop19.shape(catp)
- elif p1cc.lower() == "stickman":
- prop19.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop19.shape(carp)
- elif p1cc.lower() == "thimble":
- prop19.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop19.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop19.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop19.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop19.shape(thimblecolorp)
- elif trd2 == 16:
- ye2 = 1
- if p1cc.lower() == "cat":
- prop20.shape(catp)
- elif p1cc.lower() == "stickman":
- prop20.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop20.shape(carp)
- elif p1cc.lower() == "thimble":
- prop20.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop20.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop20.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop20.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop20.shape(thimblecolorp)
- elif trd2 == 17:
- ye3 = 1
- if p1cc.lower() == "cat":
- prop22.shape(catp)
- elif p1cc.lower() == "stickman":
- prop22.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop22.shape(carp)
- elif p1cc.lower() == "thimble":
- prop22.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop22.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop22.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop22.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop22.shape(thimblecolorp)
- elif trd2 == 18:
- gr1 = 1
- if p1cc.lower() == "cat":
- prop23.shape(catp)
- elif p1cc.lower() == "stickman":
- prop23.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop23.shape(carp)
- elif p1cc.lower() == "thimble":
- prop23.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop23.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop23.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop23.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop23.shape(thimblecolorp)
- elif trd2 == 19:
- gr2 = 1
- if p1cc.lower() == "cat":
- prop24.shape(catp)
- elif p1cc.lower() == "stickman":
- prop24.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop24.shape(carp)
- elif p1cc.lower() == "thimble":
- prop24.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop24.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop24.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop24.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop24.shape(thimblecolorp)
- elif trd2 == 20:
- gr3 = 1
- if p1cc.lower() == "cat":
- prop25.shape(catp)
- elif p1cc.lower() == "stickman":
- prop25.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop25.shape(carp)
- elif p1cc.lower() == "thimble":
- prop25.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop25.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop25.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop25.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop25.shape(thimblecolorp)
- elif trd2 == 21:
- bl1 = 1
- if p1cc.lower() == "cat":
- prop27.shape(catp)
- elif p1cc.lower() == "stickman":
- prop27.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop27.shape(carp)
- elif p1cc.lower() == "thimble":
- prop27.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop27.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop27.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop27.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop27.shape(thimblecolorp)
- elif trd2 == 22:
- bl2 = 1
- if p1cc.lower() == "cat":
- prop28.shape(catp)
- elif p1cc.lower() == "stickman":
- prop28.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop28.shape(carp)
- elif p1cc.lower() == "thimble":
- prop28.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop28.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop28.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop28.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop28.shape(thimblecolorp)
- elif trd2 == 23:
- rrr = 1
- p1rr = p1rr + 1
- p2rr = p2rr - 1
- if p1cc.lower() == "cat":
- prop3.shape(catp)
- elif p1cc.lower() == "stickman":
- prop3.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop3.shape(carp)
- elif p1cc.lower() == "thimble":
- prop3.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop3.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop3.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop3.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop3.shape(thimblecolorp)
- elif trd2 == 24:
- prr = 1
- p1rr = p1rr + 1
- p2rr = p2rr - 1
- if p1cc.lower() == "cat":
- prop11.shape(catp)
- elif p1cc.lower() == "stickman":
- prop11.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop11.shape(carp)
- elif p1cc.lower() == "thimble":
- prop11.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop11.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop11.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop11.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop11.shape(thimblecolorp)
- elif trd2 == 25:
- brr = 1
- p1rr = p1rr + 1
- p2rr = p2rr - 1
- if p1cc.lower() == "cat":
- prop18.shape(catp)
- elif p1cc.lower() == "stickman":
- prop18.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop18.shape(carp)
- elif p1cc.lower() == "thimble":
- prop18.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop18.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop18.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop18.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop18.shape(thimblecolorp)
- elif trd2 == 26:
- srr = 1
- p1rr = p1rr + 1
- p2rr = p2rr - 1
- if p1cc.lower() == "cat":
- prop26.shape(catp)
- elif p1cc.lower() == "stickman":
- prop26.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop26.shape(carp)
- elif p1cc.lower() == "thimble":
- prop26.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop26.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop26.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop26.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop26.shape(thimblecolorp)
- elif trd2 == 27:
- ec = 1
- p1u = p1u + 1
- p2u = p2u - 1
- if p1cc.lower() == "cat":
- prop8.shape(catp)
- elif p1cc.lower() == "stickman":
- prop8.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop8.shape(carp)
- elif p1cc.lower() == "thimble":
- prop8.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop8.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop8.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop8.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop8.shape(thimblecolorp)
- elif trd2 == 28:
- ww = 1
- p1u = p1u + 1
- p2u = p2u - 1
- if p1cc.lower() == "cat":
- prop21.shape(catp)
- elif p1cc.lower() == "stickman":
- prop21.shape(stickmanp)
- elif p1cc.lower() == "car":
- prop21.shape(carp)
- elif p1cc.lower() == "thimble":
- prop21.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop21.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop21.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop21.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop21.shape(thimblecolorp)
- p1m = p1m - trd1m
- p1m = p1m + trd2m
- p2m = p2m - trd2m
- p2m = p2m + trd1m
- print("\nYou now have $" + str(p1m) + ".", end='')
- input()
- elif trade.lower() == "n":
- print(p2, "declined your offer.")
- else:
- print("Invalid response.")
- p1c = "x"
- print()
- #If player chooses to go bankrupt...
- elif p1c.lower() == "d" or p1c.lower() == "vii" or p1c.lower() == "vii.":
- p1lose = "x"
- while p1lose.lower() != "y" and p1lose.lower() != "n":
- print("Do you really want to declare bankruptcy?")
- p1lose = input("You will lose the game! (y/n): ")
- print()
- if p1lose.lower() == "y":
- print("Congratulations", p2 + ", you are a Monopoly tycoon!")
- game = 0
- wn.exitonclick()
- elif p1lose.lower() == "n":
- print("Now then...\n")
- p1c = "x"
- else:
- print("Invalid response.\n")
- #If player gives an invalid response...
- else:
- print("\nInvalid response.")
- ########Sets dice value
- if p1j == 0 and game == 1:
- die1 = random.randint(1, 6)
- die2 = random.randint(1, 6)
- print(p1, "rolled a", str(die1), "and a", str(die2) + "!\n")
- ############Checks to make sure player space is below 40
- for i in range(die1 + die2):
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 0
- ############Tells what space player lands on
- if p1s != 30:
- print("Landed on", space[p1s] + ".", end='')
- elif p1s == 30:
- print("Landed in", space[p1s] + ".", end='')
- input()
- ############If player lands on Chance...
- if p1s == 7 or p1s == 22 or p1s == 36:
- chance = random.randint(1, 16)
- #Go...
- if chance == 1:
- card.shape(chance1)
- card.st()
- card.setpos(0, 0)
- input("Advance to Go, collect $200!")
- while p1s != 0:
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 0
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #Boardwalk...
- if chance == 2:
- card.shape(chance2)
- card.st()
- card.setpos(0, 0)
- input("Advance to Boardwalk.")
- while p1s != 39:
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 0
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #Illinois Avenue...
- if chance == 3:
- card.shape(chance3)
- card.st()
- card.setpos(0, 0)
- input("Advance to Illinois Avenue. If you pass Go, collect $200.")
- while p1s != 24:
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 0
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #St. Charles Place...
- if chance == 4:
- card.shape(chance4)
- card.st()
- card.setpos(0, 0)
- input("Advance to St. Charles Place. If you pass Go, collect $200.")
- while p1s != 11:
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 0
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #Random space...
- if chance == 5:
- card.shape(chance5)
- card.st()
- card.setpos(0, 0)
- input("Advance to a random space. If you pass Go, collect $200.")
- while p1s != random.randint(0, 39):
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 0
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #Nearest Railroad...
- if chance == 6:
- card.shape(chance6)
- card.st()
- card.setpos(0, 0)
- input("Advance to the nearest Railroad. If you pass Go, collect $200.")
- while p1s != 5 and p1s != 15 and p1s != 25 and p1s != 35:
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 0
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #Back 2 spaces...
- if chance == 7:
- card.shape(chance7)
- card.st()
- card.setpos(0, 0)
- input("Go back 2 spaces.")
- for i in range(2):
- if p1s > -1:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s - 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == -1:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 39
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #$50 dividend...
- if chance == 8:
- card.shape(chance8)
- card.st()
- card.setpos(0, 0)
- input("The bank pays you a dividend of $50.")
- p1m = p1m + 50
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- print("\nYou now have $" + str(p1m) + ".")
- input()
- #Get Out of Jail Free Card...
- if chance == 9:
- card.shape(chance9)
- card.st()
- card.setpos(0, 0)
- input("Get out of Jail free.")
- p1free = p1free + 1
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #Go to Jail...
- if chance == 10:
- card.shape(chance10)
- card.st()
- card.setpos(0, 0)
- input("Go to Jail. Do not collect $200.")
- while p1s != 30:
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- p1s = 0
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #Property repairs...
- if chance == 11:
- card.shape(chance11)
- card.st()
- card.setpos(0, 0)
- input("Property repairs--for each house, pay $25. For each hotel, pay $100.\n")
- if br1 == 1 and br2 == 1:
- if br1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - br1h * 25
- if br2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - br2h * 25
- if cy1 == 1 and cy2 == 1 and cy3 == 1:
- if cy1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - cy1h * 25
- if cy2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - cy2h * 25
- if cy3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - cy3h * 25
- if vi1 == 1 and vi2 == 1 and vi3 == 1:
- if vi1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - vi1h * 25
- if vi2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - vi2h * 25
- if vi3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - vi3h * 25
- if or1 == 1 and or2 == 1 and or3 == 1:
- if or1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - or1h * 25
- if or2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - or2h * 25
- if or3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - or3h * 25
- if red1 == 1 and red2 == 1 and red3 == 1:
- if red1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - red1h * 25
- if red2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - red2h * 25
- if red3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - red3h * 25
- if ye1 == 1 and ye2 == 1 and ye3 == 1:
- if ye1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - ye1h * 25
- if ye2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - ye2h * 25
- if ye3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - ye3h * 25
- if gr1 == 1 and gr2 == 1 and gr3 == 1:
- if gr1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - gr1h * 25
- if gr2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - gr2h * 25
- if gr3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - gr3h * 25
- if bl1 == 1 and bl2 == 1:
- if bl1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - bl1h * 25
- if bl2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - bl2h * 25
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Speeding ticket...
- if chance == 12:
- card.shape(chance12)
- card.st()
- card.setpos(0, 0)
- input("Pay speeding ticket of $15.\n")
- p1m = p1m - 15
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Reading Railroad...
- if chance == 13:
- card.shape(chance13)
- card.st()
- card.setpos(0, 0)
- input("Take a trip to Reading Railroad! If you pass Go, collect $200.")
- while p1s != 5:
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 0
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- #Lose a bet...
- if chance == 14:
- card.shape(chance14)
- card.st()
- card.setpos(0, 0)
- print("Lose a bet to", p2 + ", pay $50.")
- input()
- p1m = p1m - 50
- p2m = p2m + 50
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Stock investment...
- if chance == 15:
- card.shape(chance15)
- card.st()
- card.setpos(0, 0)
- input("A stock investment you made just paid off! Collect $150.\n")
- p1m = p1m + 150
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Tournament winner...
- if chance == 16:
- card.shape(chance16)
- card.st()
- card.setpos(0, 0)
- input("You took 1st place in a local gaming tournament! Collect $100.\n")
- p1m = p1m + 100
- card.setpos(800, 0)
- card.ht()
- card.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- ############If player lands on Community Chest...
- if p1s == 2 or p1s == 17 or p1s == 33:
- comm = random.randint(1, 16)
- #Go...
- if comm == 1:
- ccard.shape(comm1)
- ccard.st()
- ccard.setpos(0, 0)
- input("Advance to Go, collect $200!")
- while p1s != 0:
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- print(p1, "collects $200 for crossing Go!")
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
- p1m = p1m + 200
- p1s = 0
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- #Finding wallet...
- if comm == 2:
- ccard.shape(comm2)
- ccard.st()
- ccard.setpos(0, 0)
- input("Find a wallet! Collect whatever money is inside!\n")
- wallet = random.randint(0, 1000)
- p1m = p1m + wallet
- print(p1, "found $" + str(wallet), "inside the wallet!")
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Painting...
- if comm == 3:
- ccard.shape(comm3)
- ccard.st()
- ccard.setpos(0, 0)
- input("A painting you made sells for $20!\n")
- p1m = p1m + 20
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Doctor's fees...
- if comm == 4:
- ccard.shape(comm4)
- ccard.st()
- ccard.setpos(0, 0)
- input("Doctor's fees, pay $50.\n")
- p1m = p1m - 50
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Bank error...
- if comm == 5:
- ccard.shape(comm5)
- ccard.st()
- ccard.setpos(0, 0)
- input("Bank error in your favor! Collect $200.\n")
- p1m = p1m + 200
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Get Out of Jail Free Card...
- if comm == 6:
- ccard.shape(comm6)
- ccard.st()
- ccard.setpos(0, 0)
- input("Get out of Jail free.")
- p1free = p1free + 1
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- #Go to Jail...
- if comm == 7:
- ccard.shape(comm7)
- ccard.st()
- ccard.setpos(0, 0)
- input("Go to Jail. Do not collect $200.")
- while p1s != 30:
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- p1s = 0
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- #20% for 30%...
- if comm == 8:
- ccard.shape(comm8)
- ccard.st()
- ccard.setpos(0, 0)
- input("Collect 20% of your rival's money, but give them 30% of yours.\n")
- p1m = p1m - p1m * 0.3
- p1m = p1m + p2m * 0.2
- p2m = p2m - p2m * 0.2
- p2m = p2m + p1m * 0.3
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Street repairs...
- if comm == 9:
- ccard.shape(comm9)
- ccard.st()
- ccard.setpos(0, 0)
- input("Street repairs! For each house, pay $40. For each hotel, pay $110.\n")
- if br1 == 1 and br2 == 1:
- if br1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - br1h * 40
- if br2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - br2h * 40
- if cy1 == 1 and cy2 == 1 and cy3 == 1:
- if cy1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - cy1h * 40
- if cy2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - cy2h * 40
- if cy3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - cy3h * 40
- if vi1 == 1 and vi2 == 1 and vi3 == 1:
- if vi1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - vi1h * 40
- if vi2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - vi2h * 40
- if vi3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - vi3h * 40
- if or1 == 1 and or2 == 1 and or3 == 1:
- if or1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - or1h * 40
- if or2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - or2h * 40
- if or3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - or3h * 40
- if red1 == 1 and red2 == 1 and red3 == 1:
- if red1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - red1h * 40
- if red2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - red2h * 40
- if red3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - red3h * 40
- if ye1 == 1 and ye2 == 1 and ye3 == 1:
- if ye1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - ye1h * 40
- if ye2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - ye2h * 40
- if ye3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - ye3h * 40
- if gr1 == 1 and gr2 == 1 and gr3 == 1:
- if gr1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - gr1h * 40
- if gr2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - gr2h * 40
- if gr3h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - gr3h * 40
- if bl1 == 1 and bl2 == 1:
- if bl1h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - bl1h * 40
- if bl2h == 5:
- p1m = p1m - 100
- else:
- p1m = p1m - bl2h * 40
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Win the lottery...
- if comm == 10:
- ccard.shape(comm10)
- ccard.st()
- ccard.setpos(0, 0)
- input("Win the lottery! You profit 20% of your current money.\n")
- p1m = p1m + p1m * 0.2
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Dare...
- if comm == 11:
- ccard.shape(comm11)
- ccard.st()
- ccard.setpos(0, 0)
- print("Complete a dare", p2, "made! Collect $100 from them.")
- input()
- p1m = p1m + 100
- p2m = p2m - 100
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Phone...
- if comm == 12:
- ccard.shape(comm12)
- ccard.st()
- ccard.setpos(0, 0)
- input("Sell your old phone and collect $50.\n")
- p1m = p1m + 50
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Lose wallet...
- if comm == 13:
- ccard.shape(comm13)
- ccard.st()
- ccard.setpos(0, 0)
- input("Lose your wallet, and 10% of your total money.\n")
- p1m = p1m - p1m * 0.1
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Hospital fees...
- if comm == 14:
- ccard.shape(comm14)
- ccard.st()
- ccard.setpos(0, 0)
- input("Pay hospital fees of $100.\n")
- p1m = p1m - 100
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Christmas...
- if comm == 15:
- ccard.shape(comm15)
- ccard.st()
- ccard.setpos(0, 0)
- input("It's Christmas! Collect $100.\n")
- p1m = p1m + 100
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- print("You now have $" + str(p1m) + ".")
- input()
- #Opponent finds $100 bill...
- if comm == 16:
- ccard.shape(comm16)
- ccard.st()
- ccard.setpos(0, 0)
- input("Your opponent finds a $100 bill! Lucky!\n")
- p2m = p2m + 100
- ccard.setpos(800, 0)
- ccard.ht()
- ccard.setpos(-800, 0)
- ############If player lands on Mediterranean Avenue...
- if p1s == 1:
- print()
- #If property is unowned...
- if br1 == 0:
- price = 60
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Mediterranean Avenue for $60? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 60:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- br1 = 1
- if p1cc.lower() == "cat":
- prop1.shape(catp)
- elif p1cc.lower() == "car":
- prop1.shape(carp)
- elif p1cc.lower() == "stickman":
- prop1.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop1.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop1.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop1.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop1.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop1.shape(thimblecolorp)
- prop1.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif br1 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif br1 == 2:
- #If property is not mortgaged...
- if br1m == 0:
- br1r = 2
- #If player owns a Monopoly over all colors of the property...
- if br2 == 2:
- br1r = 4
- #If player has 1 house on property...
- if br1h == 1:
- br1r = 10
- #If player has 2 houses on property...
- elif br1h == 2:
- br1r = 30
- #If player has 3 houses on property...
- elif br1h == 3:
- br1r = 90
- #If player has 4 houses on property...
- elif br1h == 4:
- br1r = 160
- #If player has a hotel on property...
- elif br1h == 5:
- br1r = 250
- #If player does not own a Monopoly over all colors of the property...
- elif br2 != 2:
- br1r = 2
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(br1r) + "!")
- p1m = p1m - br1r
- p2m = p2m + br1r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif br1m == 1:
- print("Mediterranean Avenue is currently mortgaged.\n")
- ############If player lands on Baltic Avenue...
- if p1s == 3:
- print()
- #If property is unowned...
- if br2 == 0:
- price = 60
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Baltic Avenue for $60? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 60:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- br2 = 1
- if p1cc.lower() == "cat":
- prop2.shape(catp)
- elif p1cc.lower() == "car":
- prop2.shape(carp)
- elif p1cc.lower() == "stickman":
- prop2.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop2.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop2.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop2.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop2.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop2.shape(thimblecolorp)
- prop2.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif br2 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif br2 == 2:
- #If property is not mortgaged...
- if br2m == 0:
- br2r = 4
- #If player owns a Monopoly over all colors of the property...
- if br1 == 2:
- br2r = 8
- #If player has 1 house on property...
- if br2h == 1:
- br2r = 20
- #If player has 2 houses on property...
- elif br2h == 2:
- br2r = 60
- #If player has 3 houses on property...
- elif br2h == 3:
- br2r = 180
- #If player has 4 houses on property...
- elif br2h == 4:
- br2r = 320
- #If player has a hotel on property...
- elif br2h == 5:
- br2r = 450
- #If player does not own a Monopoly over all colors of the property...
- elif br1 != 2:
- br2r = 4
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(br2r) + "!")
- p1m = p1m - br2r
- p2m = p2m + br2r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif br2m == 1:
- print("Baltic Avenue is currently mortgaged.\n")
- ############If player lands on Oriental Avenue...
- if p1s == 6:
- print()
- #If property is unowned...
- if cy1 == 0:
- price = 100
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Oriental Avenue for $100? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 100:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- cy1 = 1
- if p1cc.lower() == "cat":
- prop4.shape(catp)
- elif p1cc.lower() == "car":
- prop4.shape(carp)
- elif p1cc.lower() == "stickman":
- prop4.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop4.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop4.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop4.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop4.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop4.shape(thimblecolorp)
- prop4.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif cy1 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif cy1 == 2:
- #If property is not mortgaged...
- if cy1m == 0:
- cy1r = 6
- #If player owns a Monopoly over all colors of the property...
- if cy2 == 2 and cy3 == 2:
- cy1r = 12
- #If player has 1 house on property...
- if cy1h == 1:
- cy1r = 30
- #If player has 2 houses on property...
- elif cy1h == 2:
- cy1r = 90
- #If player has 3 houses on property...
- elif cy1h == 3:
- cy1r = 270
- #If player has 4 houses on property...
- elif cy1h == 4:
- cy1r = 400
- #If player has a hotel on property...
- elif cy1h == 5:
- cy1r = 550
- #If player does not own a Monopoly over all colors of the property...
- elif cy2 != 2 or cy3 != 2:
- cy1r = 6
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(cy1r) + "!")
- p1m = p1m - cy1r
- p2m = p2m + cy1r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif cy1m == 1:
- print("Oriental Avenue is currently mortgaged.\n")
- ############If player lands on Vermont Avenue...
- if p1s == 8:
- print()
- #If property is unowned...
- if cy2 == 0:
- price = 100
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Vermont Avenue for $100? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 100:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- cy2 = 1
- if p1cc.lower() == "cat":
- prop5.shape(catp)
- elif p1cc.lower() == "car":
- prop5.shape(carp)
- elif p1cc.lower() == "stickman":
- prop5.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop5.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop5.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop5.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop5.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop5.shape(thimblecolorp)
- prop5.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif cy2 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif cy2 == 2:
- #If property is not mortgaged...
- if cy2m == 0:
- cy2r = 6
- #If player owns a Monopoly over all colors of the property...
- if cy1 == 2 and cy3 == 2:
- cy2r = 12
- #If player has 1 house on property...
- if cy2h == 1:
- cy2r = 30
- #If player has 2 houses on property...
- elif cy2h == 2:
- cy2r = 90
- #If player has 3 houses on property...
- elif cy2h == 3:
- cy2r = 270
- #If player has 4 houses on property...
- elif cy2h == 4:
- cy2r = 400
- #If player has a hotel on property...
- elif cy2h == 5:
- cy2r = 550
- #If player does not own a Monopoly over all colors of the property...
- elif cy1 != 2 or cy3 != 2:
- cy2r = 6
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(cy2r) + "!")
- p1m = p1m - cy2r
- p2m = p2m + cy2r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif cy2m == 1:
- print("Vermont Avenue is currently mortgaged.\n")
- ############If player lands on Connecticut Avenue...
- if p1s == 9:
- print()
- #If property is unowned...
- if cy3 == 0:
- price = 120
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Connecticut Avenue for $120? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 120:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- cy3 = 1
- if p1cc.lower() == "cat":
- prop6.shape(catp)
- elif p1cc.lower() == "car":
- prop6.shape(carp)
- elif p1cc.lower() == "stickman":
- prop6.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop6.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop6.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop6.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop6.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop6.shape(thimblecolorp)
- prop6.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif cy3 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif cy3 == 2:
- #If property is not mortgaged...
- if cy3m == 0:
- cy3r = 8
- #If player owns a Monopoly over all colors of the property...
- if cy1 == 2 and cy2 == 2:
- cy3r = 16
- #If player has 1 house on property...
- if cy3h == 1:
- cy3r = 40
- #If player has 2 houses on property...
- elif cy3h == 2:
- cy3r = 100
- #If player has 3 houses on property...
- elif cy3h == 3:
- cy3r = 300
- #If player has 4 houses on property...
- elif cy3h == 4:
- cy3r = 450
- #If player has a hotel on property...
- elif cy3h == 5:
- cy3r = 600
- #If player does not own a Monopoly over all colors of the property...
- elif cy1 != 2 or cy2 != 2:
- cy3r = 8
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(cy3r) + "!")
- p1m = p1m - cy3r
- p2m = p2m + cy3r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif cy3m == 1:
- print("Connecticut Avenue is currently mortgaged.\n")
- ############If player lands on St. Charles Place...
- if p1s == 11:
- print()
- #If property is unowned...
- if vi1 == 0:
- price = 140
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy St. Charles Place for $140? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 140:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- vi1 = 1
- if p1cc.lower() == "cat":
- prop7.shape(catp)
- elif p1cc.lower() == "car":
- prop7.shape(carp)
- elif p1cc.lower() == "stickman":
- prop7.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop7.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop7.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop7.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop7.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop7.shape(thimblecolorp)
- prop7.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif vi1 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif vi1 == 2:
- #If property is not mortgaged...
- if vi1m == 0:
- vi1r = 10
- #If player owns a Monopoly over all colors of the property...
- if vi2 == 2 and vi3 == 2:
- vi1r = 20
- #If player has 1 house on property...
- if vi1h == 1:
- vi1r = 50
- #If player has 2 houses on property...
- elif vi1h == 2:
- vi1r = 150
- #If player has 3 houses on property...
- elif vi1h == 3:
- vi1r = 450
- #If player has 4 houses on property...
- elif vi1h == 4:
- vi1r = 625
- #If player has a hotel on property...
- elif vi1h == 5:
- vi1r = 750
- #If player does not own a Monopoly over all colors of the property...
- elif vi2 != 2 or vi3 != 2:
- vi1r = 10
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(vi1r) + "!")
- p1m = p1m - vi1r
- p2m = p2m + vi1r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif vi1m == 1:
- print("St. Charles Place is currently mortgaged.\n")
- ############If player lands on States Avenue...
- if p1s == 13:
- print()
- #If property is unowned...
- if vi2 == 0:
- price = 140
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy States Avenue for $140? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 140:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- vi2 = 1
- if p1cc.lower() == "cat":
- prop9.shape(catp)
- elif p1cc.lower() == "car":
- prop9.shape(carp)
- elif p1cc.lower() == "stickman":
- prop9.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop9.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop9.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop9.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop9.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop9.shape(thimblecolorp)
- prop9.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif vi2 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif vi2 == 2:
- #If property is not mortgaged...
- if vi2m == 0:
- vi2r = 10
- #If player owns a Monopoly over all colors of the property...
- if vi1 == 2 and vi3 == 2:
- vi2r = 20
- #If player has 1 house on property...
- if vi2h == 1:
- vi2r = 50
- #If player has 2 houses on property...
- elif vi2h == 2:
- vi2r = 150
- #If player has 3 houses on property...
- elif vi2h == 3:
- vi2r = 450
- #If player has 4 houses on property...
- elif vi2h == 4:
- vi2r = 625
- #If player has a hotel on property...
- elif vi2h == 5:
- vi2r = 750
- #If player does not own a Monopoly over all colors of the property...
- elif vi1 != 2 or vi3 != 2:
- vi2r = 10
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(vi2r) + "!")
- p1m = p1m - vi2r
- p2m = p2m + vi2r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif vi2m == 1:
- print("States Avenue is currently mortgaged.\n")
- ############If player lands on Virginia Avenue...
- if p1s == 14:
- print()
- #If property is unowned...
- if vi3 == 0:
- price = 160
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Virginia Avenue for $160? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 160:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- vi3 = 1
- if p1cc.lower() == "cat":
- prop10.shape(catp)
- elif p1cc.lower() == "car":
- prop10.shape(carp)
- elif p1cc.lower() == "stickman":
- prop10.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop10.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop10.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop10.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop10.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop10.shape(thimblecolorp)
- prop10.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif vi3 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif vi3 == 2:
- #If property is not mortgaged...
- if vi3m == 0:
- vi3r = 12
- #If player owns a Monopoly over all colors of the property...
- if vi1 == 2 and vi2 == 2:
- vi3r = 24
- #If player has 1 house on property...
- if vi3h == 1:
- vi3r = 60
- #If player has 2 houses on property...
- elif vi3h == 2:
- vi3r = 180
- #If player has 3 houses on property...
- elif vi3h == 3:
- vi3r = 500
- #If player has 4 houses on property...
- elif vi3h == 4:
- vi3r = 700
- #If player has a hotel on property...
- elif vi3h == 5:
- vi3r = 900
- #If player does not own a Monopoly over all colors of the property...
- elif vi1 != 2 or vi2 != 2:
- vi3r = 12
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(vi3r) + "!")
- p1m = p1m - vi3r
- p2m = p2m + vi3r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif vi3m == 1:
- print("Virginia Avenue is currently mortgaged.\n")
- ############If player lands on St. James Place...
- if p1s == 16:
- print()
- #If property is unowned...
- if or1 == 0:
- price = 180
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy St. James Place for $180? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 180:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- or1 = 1
- if p1cc.lower() == "cat":
- prop12.shape(catp)
- elif p1cc.lower() == "car":
- prop12.shape(carp)
- elif p1cc.lower() == "stickman":
- prop12.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop12.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop12.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop12.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop12.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop12.shape(thimblecolorp)
- prop12.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif or1 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif or1 == 2:
- #If property is not mortgaged...
- if or1m == 0:
- or1r = 14
- #If player owns a Monopoly over all colors of the property...
- if or2 == 2 and or3 == 2:
- or1r = 28
- #If player has 1 house on property...
- if or1h == 1:
- or1r = 70
- #If player has 2 houses on property...
- elif or1h == 2:
- or1r = 200
- #If player has 3 houses on property...
- elif or1h == 3:
- or1r = 550
- #If player has 4 houses on property...
- elif or1h == 4:
- or1r = 750
- #If player has a hotel on property...
- elif or1h == 5:
- or1r = 950
- #If player does not own a Monopoly over all colors of the property...
- elif or2 != 2 or or3 != 2:
- or1r = 14
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(or1r) + "!")
- p1m = p1m - or1r
- p2m = p2m + or1r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif or1m == 1:
- print("St. James Place is currently mortgaged.\n")
- ############If player lands on Tennessee Avenue...
- if p1s == 18:
- print()
- #If property is unowned...
- if or2 == 0:
- price = 180
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Tennessee Avenue for $180? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 180:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- or2 = 1
- if p1cc.lower() == "cat":
- prop13.shape(catp)
- elif p1cc.lower() == "car":
- prop13.shape(carp)
- elif p1cc.lower() == "stickman":
- prop13.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop13.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop13.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop13.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop13.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop13.shape(thimblecolorp)
- prop13.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif or2 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif or2 == 2:
- #If property is not mortgaged...
- if or2m == 0:
- or2r = 14
- #If player owns a Monopoly over all colors of the property...
- if or1 == 2 and or3 == 2:
- or2r = 28
- #If player has 1 house on property...
- if or2h == 1:
- or2r = 70
- #If player has 2 houses on property...
- elif or2h == 2:
- or2r = 200
- #If player has 3 houses on property...
- elif or2h == 3:
- or2r = 550
- #If player has 4 houses on property...
- elif or2h == 4:
- or2r = 750
- #If player has a hotel on property...
- elif or2h == 5:
- or2r = 950
- #If player does not own a Monopoly over all colors of the property...
- elif or1 != 2 or or3 != 2:
- or2r = 14
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(or2r) + "!")
- p1m = p1m - or2r
- p2m = p2m + or2r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif or2m == 1:
- print("Tennessee Avenue is currently mortgaged.\n")
- ############If player lands on New York Avenue...
- if p1s == 19:
- print()
- #If property is unowned...
- if or3 == 0:
- price = 200
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy New York Avenue for $200? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 200:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- or3 = 1
- if p1cc.lower() == "cat":
- prop14.shape(catp)
- elif p1cc.lower() == "car":
- prop14.shape(carp)
- elif p1cc.lower() == "stickman":
- prop14.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop14.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop14.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop14.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop14.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop14.shape(thimblecolorp)
- prop14.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif or3 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif or3 == 2:
- #If property is not mortgaged...
- if or3m == 0:
- or3r = 16
- #If player owns a Monopoly over all colors of the property...
- if or1 == 2 and or2 == 2:
- or3r = 32
- #If player has 1 house on property...
- if or3h == 1:
- or3r = 80
- #If player has 2 houses on property...
- elif or3h == 2:
- or3r = 220
- #If player has 3 houses on property...
- elif or3h == 3:
- or3r = 600
- #If player has 4 houses on property...
- elif or3h == 4:
- or3r = 800
- #If player has a hotel on property...
- elif or3h == 5:
- or3r = 1000
- #If player does not own a Monopoly over all colors of the property...
- elif or1 != 2 or or2 != 2:
- or3r = 16
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(or3r) + "!")
- p1m = p1m - or3r
- p2m = p2m + or3r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif or3m == 1:
- print("New York Avenue is currently mortgaged.\n")
- ############If player lands on Kentucky Avenue...
- if p1s == 21:
- print()
- #If property is unowned...
- if red1 == 0:
- price = 220
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Kentucky Avenue for $220? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 220:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- red1 = 1
- if p1cc.lower() == "cat":
- prop15.shape(catp)
- elif p1cc.lower() == "car":
- prop15.shape(carp)
- elif p1cc.lower() == "stickman":
- prop15.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop15.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop15.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop15.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop15.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop15.shape(thimblecolorp)
- prop15.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif red1 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif red1 == 2:
- #If property is not mortgaged...
- if red1m == 0:
- red1r = 18
- #If player owns a Monopoly over all colors of the property...
- if red2 == 2 and red3 == 2:
- red1r = 36
- #If player has 1 house on property...
- if red1h == 1:
- red1r = 90
- #If player has 2 houses on property...
- elif red1h == 2:
- red1r = 250
- #If player has 3 houses on property...
- elif red1h == 3:
- red1r = 700
- #If player has 4 houses on property...
- elif red1h == 4:
- red1r = 875
- #If player has a hotel on property...
- elif red1h == 5:
- red1r = 1050
- #If player does not own a Monopoly over all colors of the property...
- elif red2 != 2 or red3 != 2:
- red1r = 18
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(red1r) + "!")
- p1m = p1m - red1r
- p2m = p2m + red1r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif red1m == 1:
- print("Kentucky Avenue is currently mortgaged.\n")
- ############If player lands on Indiana Avenue...
- if p1s == 23:
- print()
- #If property is unowned...
- if red2 == 0:
- price = 220
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Indiana Avenue for $220? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 220:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- red2 = 1
- if p1cc.lower() == "cat":
- prop16.shape(catp)
- elif p1cc.lower() == "car":
- prop16.shape(carp)
- elif p1cc.lower() == "stickman":
- prop16.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop16.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop16.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop16.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop16.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop16.shape(thimblecolorp)
- prop16.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif red2 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif red2 == 2:
- #If property is not mortgaged...
- if red2m == 0:
- red2r = 18
- #If player owns a Monopoly over all colors of the property...
- if red1 == 2 and red3 == 2:
- red2r = 36
- #If player has 1 house on property...
- if red2h == 1:
- red2r = 90
- #If player has 2 houses on property...
- elif red2h == 2:
- red2r = 250
- #If player has 3 houses on property...
- elif red2h == 3:
- red2r = 700
- #If player has 4 houses on property...
- elif red2h == 4:
- red2r = 875
- #If player has a hotel on property...
- elif red2h == 5:
- red2r = 1050
- #If player does not own a Monopoly over all colors of the property...
- elif red1 != 2 or red3 != 2:
- red2r = 18
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(red2r) + "!")
- p1m = p1m - red2r
- p2m = p2m + red2r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif red2m == 1:
- print("Indiana Avenue is currently mortgaged.\n")
- ############If player lands on Illinois Avenue...
- if p1s == 24:
- print()
- #If property is unowned...
- if red3 == 0:
- price = 240
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Illinois Avenue for $240? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 240:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- red3 = 1
- if p1cc.lower() == "cat":
- prop17.shape(catp)
- elif p1cc.lower() == "car":
- prop17.shape(carp)
- elif p1cc.lower() == "stickman":
- prop17.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop17.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop17.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop17.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop17.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop17.shape(thimblecolorp)
- prop17.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif red3 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif red3 == 2:
- #If property is not mortgaged...
- if red3m == 0:
- red3r = 20
- #If player owns a Monopoly over all colors of the property...
- if red1 == 2 and red2 == 2:
- red3r = 40
- #If player has 1 house on property...
- if red3h == 1:
- red3r = 100
- #If player has 2 houses on property...
- elif red3h == 2:
- red3r = 300
- #If player has 3 houses on property...
- elif red3h == 3:
- red3r = 750
- #If player has 4 houses on property...
- elif red3h == 4:
- red3r = 925
- #If player has a hotel on property...
- elif red3h == 5:
- red3r = 1100
- #If player does not own a Monopoly over all colors of the property...
- elif red1 != 2 or red2 != 2:
- red3r = 20
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(red3r) + "!")
- p1m = p1m - red3r
- p2m = p2m + red3r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif red3m == 1:
- print("Illinois Avenue is currently mortgaged.\n")
- ############If player lands on Atlantic Avenue...
- if p1s == 26:
- print()
- #If property is unowned...
- if ye1 == 0:
- price = 260
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Atlantic Avenue for $260? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 260:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- ye1 = 1
- if p1cc.lower() == "cat":
- prop19.shape(catp)
- elif p1cc.lower() == "car":
- prop19.shape(carp)
- elif p1cc.lower() == "stickman":
- prop19.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop19.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop19.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop19.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop19.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop19.shape(thimblecolorp)
- prop19.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif ye1 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif ye1 == 2:
- #If property is not mortgaged...
- if ye1m == 0:
- ye1r = 22
- #If player owns a Monopoly over all colors of the property...
- if ye2 == 2 and ye3 == 2:
- ye1r = 44
- #If player has 1 house on property...
- if ye1h == 1:
- ye1r = 110
- #If player has 2 houses on property...
- elif ye1h == 2:
- ye1r = 330
- #If player has 3 houses on property...
- elif ye1h == 3:
- ye1r = 800
- #If player has 4 houses on property...
- elif ye1h == 4:
- ye1r = 975
- #If player has a hotel on property...
- elif ye1h == 5:
- ye1r = 1150
- #If player does not own a Monopoly over all colors of the property...
- elif ye2 != 2 or ye3 != 2:
- ye1r = 22
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(ye1r) + "!")
- p1m = p1m - ye1r
- p2m = p2m + ye1r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif ye1m == 1:
- print("Atlantic Avenue is currently mortgaged.\n")
- ############If player lands on Ventnor Avenue...
- if p1s == 27:
- print()
- #If property is unowned...
- if ye2 == 0:
- price = 260
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Ventnor Avenue for $260? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 260:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- ye2 = 1
- if p1cc.lower() == "cat":
- prop20.shape(catp)
- elif p1cc.lower() == "car":
- prop20.shape(carp)
- elif p1cc.lower() == "stickman":
- prop20.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop20.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop20.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop20.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop20.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop20.shape(thimblecolorp)
- prop20.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif ye2 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif ye2 == 2:
- #If property is not mortgaged...
- if ye2m == 0:
- ye2r = 22
- #If player owns a Monopoly over all colors of the property...
- if ye1 == 2 and ye3 == 2:
- ye2r = 44
- #If player has 1 house on property...
- if ye2h == 1:
- ye2r = 110
- #If player has 2 houses on property...
- elif ye2h == 2:
- ye2r = 330
- #If player has 3 houses on property...
- elif ye2h == 3:
- ye2r = 800
- #If player has 4 houses on property...
- elif ye2h == 4:
- ye2r = 975
- #If player has a hotel on property...
- elif ye2h == 5:
- ye2r = 1150
- #If player does not own a Monopoly over all colors of the property...
- elif ye1 != 2 or ye3 != 2:
- ye2r = 22
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(ye2r) + "!")
- p1m = p1m - ye2r
- p2m = p2m + ye2r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif ye2m == 1:
- print("Ventnor Avenue is currently mortgaged.\n")
- ############If player lands on Marvin Gardens...
- if p1s == 29:
- print()
- #If property is unowned...
- if ye3 == 0:
- price = 280
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Marvin Gardens for $280? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 280:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- ye3 = 1
- if p1cc.lower() == "cat":
- prop22.shape(catp)
- elif p1cc.lower() == "car":
- prop22.shape(carp)
- elif p1cc.lower() == "stickman":
- prop22.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop22.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop22.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop22.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop22.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop22.shape(thimblecolorp)
- prop22.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif ye3 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif ye3 == 2:
- #If property is not mortgaged...
- if ye3m == 0:
- ye3r = 24
- #If player owns a Monopoly over all colors of the property...
- if ye1 == 2 and ye2 == 2:
- ye3r = 48
- #If player has 1 house on property...
- if ye3h == 1:
- ye3r = 120
- #If player has 2 houses on property...
- elif ye3h == 2:
- ye3r = 360
- #If player has 3 houses on property...
- elif ye3h == 3:
- ye3r = 850
- #If player has 4 houses on property...
- elif ye3h == 4:
- ye3r = 1025
- #If player has a hotel on property...
- elif ye3h == 5:
- ye3r = 1200
- #If player does not own a Monopoly over all colors of the property...
- elif ye1 != 2 or ye2 != 2:
- ye3r = 24
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(ye3r) + "!")
- p1m = p1m - ye3r
- p2m = p2m + ye3r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif ye3m == 1:
- print("Marvin Gardens is currently mortgaged.\n")
- ############If player lands on Pacific Avenue...
- if p1s == 31:
- print()
- #If property is unowned...
- if gr1 == 0:
- price = 300
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Pacific Avenue for $300? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 300:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- gr1 = 1
- if p1cc.lower() == "cat":
- prop23.shape(catp)
- elif p1cc.lower() == "car":
- prop23.shape(carp)
- elif p1cc.lower() == "stickman":
- prop23.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop23.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop23.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop23.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop23.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop23.shape(thimblecolorp)
- prop23.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif gr1 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif gr1 == 2:
- #If property is not mortgaged...
- if gr1m == 0:
- gr1r = 26
- #If player owns a Monopoly over all colors of the property...
- if gr2 == 2 and gr3 == 2:
- gr1r = 52
- #If player has 1 house on property...
- if gr1h == 1:
- gr1r = 130
- #If player has 2 houses on property...
- elif gr1h == 2:
- gr1r = 390
- #If player has 3 houses on property...
- elif gr1h == 3:
- gr1r = 900
- #If player has 4 houses on property...
- elif gr1h == 4:
- gr1r = 1100
- #If player has a hotel on property...
- elif gr1h == 5:
- gr1r = 1275
- #If player does not own a Monopoly over all colors of the property...
- elif gr2 != 2 or gr3 != 2:
- gr1r = 26
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(gr1r) + "!")
- p1m = p1m - gr1r
- p2m = p2m + gr1r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif gr1m == 1:
- print("Pacific Avenue is currently mortgaged.\n")
- ############If player lands on North Carolina Avenue...
- if p1s == 32:
- print()
- #If property is unowned...
- if gr2 == 0:
- price = 300
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy North Carolina Avenue for $300? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 300:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- gr2 = 1
- if p1cc.lower() == "cat":
- prop24.shape(catp)
- elif p1cc.lower() == "car":
- prop24.shape(carp)
- elif p1cc.lower() == "stickman":
- prop24.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop24.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop24.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop24.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop24.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop24.shape(thimblecolorp)
- prop24.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif gr2 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif gr2 == 2:
- #If property is not mortgaged...
- if gr2m == 0:
- gr2r = 26
- #If player owns a Monopoly over all colors of the property...
- if gr1 == 2 and gr3 == 2:
- gr2r = 52
- #If player has 1 house on property...
- if gr2h == 1:
- gr2r = 130
- #If player has 2 houses on property...
- elif gr2h == 2:
- gr2r = 390
- #If player has 3 houses on property...
- elif gr2h == 3:
- gr2r = 900
- #If player has 4 houses on property...
- elif gr2h == 4:
- gr2r = 1100
- #If player has a hotel on property...
- elif gr2h == 5:
- gr2r = 1275
- #If player does not own a Monopoly over all colors of the property...
- elif gr1 != 2 or gr3 != 2:
- gr2r = 26
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(gr2r) + "!")
- p1m = p1m - gr2r
- p2m = p2m + gr2r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif gr2m == 1:
- print("North Carolina Avenue is currently mortgaged.\n")
- ############If player lands on Pennsylvania Avenue...
- if p1s == 34:
- print()
- #If property is unowned...
- if gr3 == 0:
- price = 320
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Pennsylvania Avenue for $320? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 320:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- gr3 = 1
- if p1cc.lower() == "cat":
- prop25.shape(catp)
- elif p1cc.lower() == "car":
- prop25.shape(carp)
- elif p1cc.lower() == "stickman":
- prop25.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop25.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop25.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop25.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop25.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop25.shape(thimblecolorp)
- prop25.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif gr3 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif gr3 == 2:
- #If property is not mortgaged...
- if gr3m == 0:
- gr3r = 28
- #If player owns a Monopoly over all colors of the property...
- if gr1 == 2 and gr2 == 2:
- gr3r = 56
- #If player has 1 house on property...
- if gr3h == 1:
- gr3r = 150
- #If player has 2 houses on property...
- elif gr3h == 2:
- gr3r = 450
- #If player has 3 houses on property...
- elif gr3h == 3:
- gr3r = 1000
- #If player has 4 houses on property...
- elif gr3h == 4:
- gr3r = 1200
- #If player has a hotel on property...
- elif gr3h == 5:
- gr3r = 1400
- #If player does not own a Monopoly over all colors of the property...
- elif gr1 != 2 or gr2 != 2:
- gr3r = 28
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(gr3r) + "!")
- p1m = p1m - gr3r
- p2m = p2m + gr3r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif gr3m == 1:
- print("Pennsylvania Avenue is currently mortgaged.\n")
- ############If player lands on Park Place...
- if p1s == 37:
- print()
- #If property is unowned...
- if bl1 == 0:
- price = 350
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Park Place for $350? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 350:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- bl1 = 1
- if p1cc.lower() == "cat":
- prop27.shape(catp)
- elif p1cc.lower() == "car":
- prop27.shape(carp)
- elif p1cc.lower() == "stickman":
- prop27.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop27.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop27.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop27.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop27.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop27.shape(thimblecolorp)
- prop27.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif bl1 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif bl1 == 2:
- #If property is not mortgaged...
- if bl1m == 0:
- bl1r = 35
- #If player owns a Monopoly over all colors of the property...
- if bl2 == 2:
- bl1r = 70
- #If player has 1 house on property...
- if bl1h == 1:
- bl1r = 175
- #If player has 2 houses on property...
- elif bl1h == 2:
- bl1r = 500
- #If player has 3 houses on property...
- elif bl1h == 3:
- bl1r = 1100
- #If player has 4 houses on property...
- elif bl1h == 4:
- bl1r = 1300
- #If player has a hotel on property...
- elif bl1h == 5:
- bl1r = 1500
- #If player does not own a Monopoly over all colors of the property...
- elif bl2 != 2:
- bl1r = 35
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(bl1r) + "!")
- p1m = p1m - bl1r
- p2m = p2m + bl1r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif bl1m == 1:
- print("Park Place is currently mortgaged.\n")
- ############If player lands on Boardwalk...
- if p1s == 39:
- print()
- #If property is unowned...
- if bl2 == 0:
- price = 400
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Boardwalk for $400? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 400:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- bl2 = 1
- if p1cc.lower() == "cat":
- prop28.shape(catp)
- elif p1cc.lower() == "car":
- prop28.shape(carp)
- elif p1cc.lower() == "stickman":
- prop28.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop28.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop28.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop28.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop28.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop28.shape(thimblecolorp)
- prop28.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the property.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif bl2 == 1:
- print(p1, "stays a free night in their own property.\n")
- #If Player Two owns the property...
- elif bl2 == 2:
- #If property is not mortgaged...
- if bl2m == 0:
- bl2r = 50
- #If player owns a Monopoly over all colors of the property...
- if bl1 == 2:
- bl2r = 100
- #If player has 1 house on property...
- if bl2h == 1:
- bl2r = 200
- #If player has 2 houses on property...
- elif bl2h == 2:
- bl2r = 600
- #If player has 3 houses on property...
- elif bl2h == 3:
- bl2r = 1400
- #If player has 4 houses on property...
- elif bl2h == 4:
- bl2r = 1700
- #If player has a hotel on property...
- elif bl2h == 5:
- bl2r = 2000
- #If player does not own a Monopoly over all colors of the property...
- elif bl1 != 2:
- bl2r = 50
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(bl2r) + "!")
- p1m = p1m - bl2r
- p2m = p2m + bl2r
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif bl2m == 1:
- print("Boardwalk is currently mortgaged.\n")
- ############If player lands on Reading Railroad...
- if p1s == 5:
- print()
- #If property is unowned...
- if rrr == 0:
- price = 200
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Reading Railroad for $200? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 200:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- rrr = 1
- p1rr = p1rr + 1
- if p1cc.lower() == "cat":
- prop3.shape(catp)
- elif p1cc.lower() == "car":
- prop3.shape(carp)
- elif p1cc.lower() == "stickman":
- prop3.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop3.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop3.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop3.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop3.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop3.shape(thimblecolorp)
- prop3.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the railroad.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif rrr == 1:
- print(p1, "admires their railroad.\n")
- #If Player Two owns the property...
- elif rrr == 2:
- #If property is not mortgaged...
- if rrrm == 0:
- rrrr = 25
- #If player owns a Monopoly over all colors of the property...
- if p2rr == 2:
- rrrr = 50
- elif p2rr == 3:
- rrrr = 100
- elif p2rr == 4:
- rrrr = 200
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(rrrr) + "!")
- p1m = p1m - rrrr
- p2m = p2m + rrrr
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif rrrm == 1:
- print("Reading Railroad is currently mortgaged.\n")
- ############If player lands on Pennsylvania Railroad...
- if p1s == 15:
- print()
- #If property is unowned...
- if prr == 0:
- price = 200
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Pennsylvania Railroad for $200? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 200:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- prr = 1
- p1rr = p1rr + 1
- if p1cc.lower() == "cat":
- prop11.shape(catp)
- elif p1cc.lower() == "car":
- prop11.shape(carp)
- elif p1cc.lower() == "stickman":
- prop11.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop11.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop11.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop11.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop11.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop11.shape(thimblecolorp)
- prop11.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the railroad.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif prr == 1:
- print(p1, "admires their railroad.\n")
- #If Player Two owns the property...
- elif prr == 2:
- #If property is not mortgaged...
- if prrm == 0:
- prrr = 25
- #If player owns a Monopoly over all colors of the property...
- if p2rr == 2:
- prrr = 50
- elif p2rr == 3:
- prrr = 100
- elif p2rr == 4:
- prrr = 200
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(prrr) + "!")
- p1m = p1m - prrr
- p2m = p2m + prrr
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif prrm == 1:
- print("Pennsylvania Railroad is currently mortgaged.\n")
- ############If player lands on B. & O. Railroad...
- if p1s == 25:
- print()
- #If property is unowned...
- if brr == 0:
- price = 200
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy B. & O. Railroad for $200? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 200:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- brr = 1
- p1rr = p1rr + 1
- if p1cc.lower() == "cat":
- prop18.shape(catp)
- elif p1cc.lower() == "car":
- prop18.shape(carp)
- elif p1cc.lower() == "stickman":
- prop18.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop18.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop18.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop18.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop18.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop18.shape(thimblecolorp)
- prop18.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the railroad.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif brr == 1:
- print(p1, "admires their railroad.\n")
- #If Player Two owns the property...
- elif brr == 2:
- #If property is not mortgaged...
- if brrm == 0:
- brrr = 25
- #If player owns a Monopoly over all colors of the property...
- if p2rr == 2:
- brrr = 50
- elif p2rr == 3:
- brrr = 100
- elif p2rr == 4:
- brrr = 200
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(brrr) + "!")
- p1m = p1m - brrr
- p2m = p2m + brrr
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif brrm == 1:
- print("B. & O. Railroad is currently mortgaged.\n")
- ############If player lands on Short Line...
- if p1s == 35:
- print()
- #If property is unowned...
- if srr == 0:
- price = 200
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Short Line for $200? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 200:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- srr = 1
- p1rr = p1rr + 1
- if p1cc.lower() == "cat":
- prop26.shape(catp)
- elif p1cc.lower() == "car":
- prop26.shape(carp)
- elif p1cc.lower() == "stickman":
- prop26.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop26.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop26.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop26.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop26.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop26.shape(thimblecolorp)
- prop26.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the railroad.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif srr == 1:
- print(p1, "admires their railroad.\n")
- #If Player Two owns the property...
- elif srr == 2:
- #If property is not mortgaged...
- if srrm == 0:
- srrr = 25
- #If player owns a Monopoly over all colors of the property...
- if p2rr == 2:
- srrr = 50
- elif p2rr == 3:
- srrr = 100
- elif p2rr == 4:
- srrr = 200
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(srrr) + "!")
- p1m = p1m - srrr
- p2m = p2m + srrr
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif srrm == 1:
- print("Short Line is currently mortgaged.\n")
- ############If player lands on Electric Company...
- if p1s == 12:
- print()
- #If property is unowned...
- if ec == 0:
- price = 150
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Electric Company for $150? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 150:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- ec = 1
- p1u = p1u + 1
- if p1cc.lower() == "cat":
- prop8.shape(catp)
- elif p1cc.lower() == "car":
- prop8.shape(carp)
- elif p1cc.lower() == "stickman":
- prop8.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop8.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop8.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop8.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop8.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop8.shape(thimblecolorp)
- prop8.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the utility.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif ec == 1:
- print(p1, "admires their utility.\n")
- #If Player Two owns the property...
- elif ec == 2:
- #If property is not mortgaged...
- if ecm == 0:
- ecr = ((die1 + die2) * 4)
- #If both utilities are owned...
- if p2u == 2:
- ecr = ((die1 + die2) * 10)
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(ecr) + "!")
- p1m = p1m - ecr
- p2m = p2m + ecr
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif ecm == 1:
- print("Electric Company is currently mortgaged.\n")
- ############If player lands on Water Works...
- if p1s == 28:
- print()
- #If property is unowned...
- if ww == 0:
- price = 150
- #Checks to ensure y/n answer is given
- while buy.lower() != "y" and buy.lower() != "n":
- buy = input("Do you want to buy Water Works for $150? (y/n): ")
- #If player wants to buy the property...
- if buy.lower() == "y":
- #Success!
- if p1m >= 150:
- print(p1, "bought", space[p1s], "for $" + str(price) + "!")
- p1m = p1m - price
- ww = 1
- p1u = p1u + 1
- if p1cc.lower() == "cat":
- prop21.shape(catp)
- elif p1cc.lower() == "car":
- prop21.shape(carp)
- elif p1cc.lower() == "stickman":
- prop21.shape(stickmanp)
- elif p1cc.lower() == "thimble":
- prop21.shape(thimblep)
- elif p1cc.lower() == "catcolor":
- prop21.shape(catcolorp)
- elif p1cc.lower() == "stickmancolor":
- prop21.shape(stickmancolorp)
- elif p1cc.lower() == "carcolor":
- prop21.shape(carcolorp)
- elif p1cc.lower() == "thimblecolor":
- prop21.shape(thimblecolorp)
- prop21.st()
- print("You now have $" + str(p1m) + ".")
- input()
- #Not enough money!
- else:
- print("Insufficient funds.\n")
- #If player doesn't want to buy the property...
- elif buy.lower() == "n":
- print(p1, "chose to ignore the utility.\n")
- #If player gives a response that is not "y" or "n"...
- else:
- print("Invalid response.")
- #If Player One owns the property...
- elif ww == 1:
- print(p1, "admires their utility.\n")
- #If Player Two owns the property...
- elif ww == 2:
- #If property is not mortgaged...
- if wwm == 0:
- wwr = ((die1 + die2) * 4)
- #If both utilities are owned...
- if p2u == 2:
- wwr = ((die1 + die2) * 10)
- #Player One pays Player Two rent
- print(p1, "pays", p2, "$" + str(wwr) + "!")
- p1m = p1m - wwr
- p2m = p2m + wwr
- print("You now have $" + str(p1m) + ".\n")
- #If property is mortgaged...
- elif wwm == 1:
- print("Water Works is currently mortgaged.\n")
- ############If player lands on Free Parking...
- if p1s == 20:
- print()
- print(p1, "landed on Free Parking! You receive $" + str(fp) + "!")
- p1m = p1m + fp
- fp = 200
- print("You now have $" + str(p1m) + ".\n")
- print("Free Parking has been reset to $200.")
- input()
- ############If player lands on Income Tax...
- if p1s == 4:
- print()
- if p1m >= 200:
- p1m = p1m - 200
- fp = fp + 200
- print(p1, "paid off a $200 income tax.")
- elif p1m < 200:
- print(p1, "could only afford to pay off $" + str(p1m), "of their income tax. Yikes.")
- fp = fp + p1m
- p1m = p1m - p1m
- print("You now have $" + str(p1m) + ".\n")
- print("Free Parking how holds $" + str(fp) + ".")
- input()
- ############If player lands on Luxury Tax...
- if p1s == 38:
- print()
- if p1m >= 100:
- p1m = p1m - 100
- fp = fp + 100
- print(p1, "paid off a $100 luxury tax.")
- elif p1m < 100:
- print(p1, "could only afford to pay off $" + str(p1m), "of their luxury tax. Yikes.")
- fp = fp + p1m
- p1m = p1m - p1m
- print("You now have $" + str(p1m) + ".\n")
- print("Free Parking now holds $" + str(fp) + ".")
- input()
- ############If player lands on Jail...
- if p1s == 30:
- print()
- print("Uh oh... Looks like you got framed.\n")
- p1j = 1
- for i in range(20):
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player space count to 0 when passing 39
- if p1s == 40:
- p1s = 0
- #Resets the "buy" variable
- buy = "x"
- #Displays player stats
- print("*********************")
- print("*", p1 + ":", end='')
- if len(p1) <= 11:
- for i in range(11 - len(p1)):
- print(" ", end='')
- print("$" + str(p1m), end='')
- if len(str((p1m))) <= 5:
- for i in range(5 - len(str((p1m)))):
- print(" ", end='')
- print("*\n*", p2 + ":", end='')
- if len(p2) <= 11:
- for i in range(11 - len(p2)):
- print(" ", end='')
- print("$" + str(p2m), end='')
- if len(str((p2m))) <= 5:
- for i in range(5 - len(str((p2m)))):
- print(" ", end='')
- print("*\n*********************")
- #Checks for doubles
- if die1 == die2:
- if p1dubs < 2:
- p1dubs = p1dubs + 1
- print("\nDoubles! You get another turn,", p1 + "!")
- turn = 1
- #If doubles are rolled 3 times in a row...
- elif p1dubs == 2:
- print(p1 + ", you're convicted of speeding dangerously fast")
- print("down a small 1000x1000 pixelated game board. Go to Jail.")
- p1dubs = 0
- while p1s != 10:
- p1j = 1
- if p1s < 40:
- if p1x > -333 and p1y == -335:
- if p1s == 0 or p1s == 9:
- p1x = p1x - 82
- else:
- p1x = p1x - 63
- elif p1x == -333 and p1y < 333:
- if p1s == 10 or p1s == 19:
- p1y = p1y + 82
- else:
- p1y = p1y + 63
- elif p1x < 335 and p1y == 333:
- if p1s == 20 or p1s == 29:
- p1x = p1x + 82
- else:
- p1x = p1x + 63
- elif p1x == 335 and p1y > -335:
- if p1s == 30 or p1s == 39:
- p1y = p1y - 82
- else:
- p1y = p1y - 63
- #Sets player position on board
- player1.setpos(p1x, p1y)
- #Increases space player resides on
- p1s = p1s + 1
- #Resets player 1 space count to 0 when passing 39
- if p1s == 40:
- p1s = 0
- elif die1 != die2:
- p1dubs = 0
- turn = 2
- ############Signifies end of Player One's turn
- input("---------------------------------------------------------")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement