Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 417.76 KB | None | 0 0
  1. #Name: Joseph Miller
  2. #Date: 11/14/2017
  3. #Class: CSCI I
  4. #Assignment: Semester Final Project
  5. #Algorithm: Program plays Monopoly
  6. ############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
  7.  
  8. #Imports RNG, Turtle Class, and Winsound
  9. import turtle
  10. import random
  11. import winsound
  12.  
  13. #Defines variables
  14. 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"]
  15. game = 1
  16. turn = random.randint(1, 2)
  17. p1s = 0
  18. p2s = 0
  19. p1m = 2000
  20. p2m = 2000
  21. p1rr = 0
  22. p2rr = 0
  23. p1u = 0
  24. p2u = 0
  25. p1dubs = 0
  26. p2dubs = 0
  27. p1free = 0
  28. p2free = 0
  29. buy = "x"
  30.  
  31. #Mediterranean Avenue variables
  32. br1 = 0
  33. br1m = 0
  34. br1h = 0
  35.  
  36. #Baltic Avenue variables
  37. br2 = 0
  38. br2m = 0
  39. br2h = 0
  40.  
  41. #Oriental Avenue variables
  42. cy1 = 0
  43. cy1m = 0
  44. cy1h = 0
  45.  
  46. #Vermont Avenue variables
  47. cy2 = 0
  48. cy2m = 0
  49. cy2h = 0
  50.  
  51. #Connecticut Avenue variables
  52. cy3 = 0
  53. cy3m = 0
  54. cy3h = 0
  55.  
  56. #St. Charles Place variables
  57. vi1 = 0
  58. vi1m = 0
  59. vi1h = 0
  60.  
  61. #States Avenue variables
  62. vi2 = 0
  63. vi2m = 0
  64. vi2h = 0
  65.  
  66. #Virginia Avenue variables
  67. vi3 = 0
  68. vi3m = 0
  69. vi3h = 0
  70.  
  71. #St. James Place variables
  72. or1 = 0
  73. or1m = 0
  74. or1h = 0
  75.  
  76. #Tennessee Avenue variables
  77. or2 = 0
  78. or2m = 0
  79. or2h = 0
  80.  
  81. #New York variables
  82. or3 = 0
  83. or3m = 0
  84. or3h = 0
  85.  
  86. #Kentucky Avenue variables
  87. red1 = 0
  88. red1m = 0
  89. red1h = 0
  90.  
  91. #Indiana Avenue variables
  92. red2 = 0
  93. red2m = 0
  94. red2h = 0
  95.  
  96. #Illinois Avenue variables
  97. red3 = 0
  98. red3m = 0
  99. red3h = 0
  100.  
  101. #Atlantic Avenue variables
  102. ye1 = 0
  103. ye1m = 0
  104. ye1h = 0
  105.  
  106. #Ventnor Avenue variables
  107. ye2 = 0
  108. ye2m = 0
  109. ye2h = 0
  110.  
  111. #Marvin Gardens variables
  112. ye3 = 0
  113. ye3m = 0
  114. ye3h = 0
  115.  
  116. #Pacific Avenue variables
  117. gr1 = 0
  118. gr1m = 0
  119. gr1h = 0
  120.  
  121. #North Carolina Avenue variables
  122. gr2 = 0
  123. gr2m = 0
  124. gr2h = 0
  125.  
  126. #Pennsylvania Avenue variables
  127. gr3 = 0
  128. gr3m = 0
  129. gr3h = 0
  130.  
  131. #Park Place variables
  132. bl1 = 0
  133. bl1m = 0
  134. bl1h = 0
  135.  
  136. #Boardwalk variables
  137. bl2 = 0
  138. bl2m = 0
  139. bl2h = 0
  140.  
  141. #Reading Railroad variables
  142. rrr = 0
  143. rrrm = 0
  144.  
  145. #Pennsylvania Railroad variables
  146. prr = 0
  147. prrm = 0
  148.  
  149. #B. & O. Railroad variables
  150. brr = 0
  151. brrm = 0
  152.  
  153. #Short Line Railroad variables
  154. srr = 0
  155. srrm = 0
  156.  
  157. #Electric Company variables
  158. ec = 0
  159. ecm = 0
  160.  
  161. #Water Works variables
  162. ww = 0
  163. wwm = 0
  164.  
  165. #Free Parking variables
  166. fp = 200
  167.  
  168. #Jail variables
  169. p1j = 0
  170. p1jt = 0
  171. p2j = 0
  172. p1jt = 0
  173.  
  174. #Plays background music
  175. song = random.randint(1, 4)
  176. if song == 1:
  177. winsound.PlaySound('night.wav', winsound.SND_LOOP + winsound.SND_ASYNC)
  178. elif song == 2:
  179. winsound.PlaySound('day.wav', winsound.SND_LOOP + winsound.SND_ASYNC)
  180. elif song == 3:
  181. winsound.PlaySound('day2.wav', winsound.SND_LOOP + winsound.SND_ASYNC)
  182. elif song == 4:
  183. winsound.PlaySound('day3.wav', winsound.SND_LOOP + winsound.SND_ASYNC)
  184.  
  185. #Sets up game board
  186. wn = turtle.Screen()
  187. wn.title("Monopoly")
  188. wn.setup(1000, 740)
  189. wn.bgpic("monopoly.png")
  190. wn.bgcolor("firebrick")
  191.  
  192. #Sets up Chance cards
  193. chance1 = "chance1.gif"
  194. chance2 = "chance2.gif"
  195. chance3 = "chance3.gif"
  196. chance4 = "chance4.gif"
  197. chance5 = "chance5.gif"
  198. chance6 = "chance6.gif"
  199. chance7 = "chance7.gif"
  200. chance8 = "chance8.gif"
  201. chance9 = "chance9.gif"
  202. chance10 = "chance10.gif"
  203. chance11 = "chance11.gif"
  204. chance12 = "chance12.gif"
  205. chance13 = "chance13.gif"
  206. chance14 = "chance14.gif"
  207. chance15 = "chance15.gif"
  208. chance16 = "chance16.gif"
  209. wn.addshape(chance1)
  210. wn.addshape(chance2)
  211. wn.addshape(chance3)
  212. wn.addshape(chance4)
  213. wn.addshape(chance5)
  214. wn.addshape(chance6)
  215. wn.addshape(chance7)
  216. wn.addshape(chance8)
  217. wn.addshape(chance9)
  218. wn.addshape(chance10)
  219. wn.addshape(chance11)
  220. wn.addshape(chance12)
  221. wn.addshape(chance13)
  222. wn.addshape(chance14)
  223. wn.addshape(chance15)
  224. wn.addshape(chance16)
  225. card = turtle.Turtle()
  226. card.ht()
  227. card.shape(chance1)
  228. card.pu()
  229. card.speed(3)
  230. card.setpos(-800, 0)
  231.  
  232. #Sets up Community Chest cards
  233. comm1 = "comm1.gif"
  234. comm2 = "comm2.gif"
  235. comm3 = "comm3.gif"
  236. comm4 = "comm4.gif"
  237. comm5 = "comm5.gif"
  238. comm6 = "comm6.gif"
  239. comm7 = "comm7.gif"
  240. comm8 = "comm8.gif"
  241. comm9 = "comm9.gif"
  242. comm10 = "comm10.gif"
  243. comm11 = "comm11.gif"
  244. comm12 = "comm12.gif"
  245. comm13 = "comm13.gif"
  246. comm14 = "comm14.gif"
  247. comm15 = "comm15.gif"
  248. comm16 = "comm16.gif"
  249. wn.addshape(comm1)
  250. wn.addshape(comm2)
  251. wn.addshape(comm3)
  252. wn.addshape(comm4)
  253. wn.addshape(comm5)
  254. wn.addshape(comm6)
  255. wn.addshape(comm7)
  256. wn.addshape(comm8)
  257. wn.addshape(comm9)
  258. wn.addshape(comm10)
  259. wn.addshape(comm11)
  260. wn.addshape(comm12)
  261. wn.addshape(comm13)
  262. wn.addshape(comm14)
  263. wn.addshape(comm15)
  264. wn.addshape(comm16)
  265. ccard = turtle.Turtle()
  266. ccard.ht()
  267. ccard.shape(comm1)
  268. ccard.pu()
  269. ccard.speed(3)
  270. ccard.setpos(-800, 0)
  271.  
  272. #Sets up property ownership symbols
  273. catp = "cath.gif"
  274. stickmanp = "stickmanh.gif"
  275. carp = "carh.gif"
  276. thimblep = "thimbleh.gif"
  277. catcolorp = "catcolorh.gif"
  278. stickmancolorp = "stickmancolorh.gif"
  279. carcolorp = "carcolorh.gif"
  280. thimblecolorp = "thimblecolorh.gif"
  281. wn.addshape(thimblep)
  282. wn.addshape(stickmanp)
  283. wn.addshape(carp)
  284. wn.addshape(catp)
  285. wn.addshape(thimblecolorp)
  286. wn.addshape(stickmancolorp)
  287. wn.addshape(carcolorp)
  288. wn.addshape(catcolorp)
  289. prop1 = turtle.Turtle()
  290. prop1.ht()
  291. prop1.speed(0)
  292. prop1.pu()
  293. prop2 = prop1.clone()
  294. prop3 = prop1.clone()
  295. prop4 = prop1.clone()
  296. prop5 = prop1.clone()
  297. prop6 = prop1.clone()
  298. prop7 = prop1.clone()
  299. prop8 = prop1.clone()
  300. prop9 = prop1.clone()
  301. prop10 = prop1.clone()
  302. prop11 = prop1.clone()
  303. prop12 = prop1.clone()
  304. prop13 = prop1.clone()
  305. prop14 = prop1.clone()
  306. prop15 = prop1.clone()
  307. prop16 = prop1.clone()
  308. prop17 = prop1.clone()
  309. prop18 = prop1.clone()
  310. prop19 = prop1.clone()
  311. prop20 = prop1.clone()
  312. prop21 = prop1.clone()
  313. prop22 = prop1.clone()
  314. prop23 = prop1.clone()
  315. prop24 = prop1.clone()
  316. prop25 = prop1.clone()
  317. prop26 = prop1.clone()
  318. prop27 = prop1.clone()
  319. prop28 = prop1.clone()
  320. prop1.setpos(335 - 82 - 63 * 0, -335 - 70) #Mediterranean Avenue
  321. prop2.setpos(335 - 82 - 63 * 2, -335 - 70) #Baltic Avenue
  322. prop3.setpos(335 - 82 - 63 * 4, -335 - 70) #Reading Railroad
  323. prop4.setpos(335 - 82 - 63 * 5, -335 - 70) #Oriental Avenue
  324. prop5.setpos(335 - 82 - 63 * 7, -335 - 70) #Vermont Avenue
  325. prop6.setpos(335 - 82 - 63 * 8, -335 - 70) #Connecticut Avenue
  326. prop7.setpos(-335 - 70, -335 + 82 + 63 * 0) #St. Charles Place
  327. prop8.setpos(-335 - 70, -335 + 82 + 63 * 1) #Electric Company
  328. prop9.setpos(-335 - 70, -335 + 82 + 63 * 2) #States Avenue
  329. prop10.setpos(-335 - 70, -335 + 82 + 63 * 3) #Virginia Avenue
  330. prop11.setpos(-335 - 70, -335 + 82 + 63 * 4) #Pennsylvania Railroad
  331. prop12.setpos(-335 - 70, -335 + 82 + 63 * 5) #St. James Avenue
  332. prop13.setpos(-335 - 70, -335 + 82 + 63 * 7) #Tennessee Avenue
  333. prop14.setpos(-335 - 70, -335 + 82 + 63 * 8) #New York Avenue
  334. prop15.setpos(-335 + 82 + 63 * 0, 335 + 70) #Kentucky Avenue
  335. prop16.setpos(-335 + 82 + 63 * 2, 335 + 70) #Indiana Avenue
  336. prop17.setpos(-335 + 82 + 63 * 3, 335 + 70) #Illinois Avenue
  337. prop18.setpos(-335 + 82 + 63 * 4, 335 + 70) #B. & O. Railroad
  338. prop19.setpos(-335 + 82 + 63 * 5, 335 + 70) #Atlantic Avenue
  339. prop20.setpos(-335 + 82 + 63 * 6, 335 + 70) #Ventnor Avenue
  340. prop21.setpos(-335 + 82 + 63 * 7, 335 + 70) #Water Works
  341. prop22.setpos(-335 + 82 + 63 * 8, 335 + 70) #Marvin Gardens
  342. prop23.setpos(335 + 70, 335 - 82 - 63 * 0) #Pacific Avenue
  343. prop24.setpos(335 + 70, 335 - 82 - 63 * 1) #North Carolina Avenue
  344. prop25.setpos(335 + 70, 335 - 82 - 63 * 3) #Pennsylvania Avenue
  345. prop26.setpos(335 + 70, 335 - 82 - 63 * 4) #Short Line
  346. prop27.setpos(335 + 70, 335 - 82 - 63 * 6) #Park Place
  347. prop28.setpos(335 + 70, 335 - 82 - 63 * 8) #Boardwalk
  348.  
  349. #Sets up mortgage symbols
  350. mortgage = "mortgaged.gif"
  351. wn.addshape(mortgage)
  352. m1 = turtle.Turtle()
  353. m1.shape(mortgage)
  354. m1.pu()
  355. m1.speed(0)
  356. m1.ht()
  357. m2 = m1.clone()
  358. m3 = m1.clone()
  359. m4 = m1.clone()
  360. m5 = m1.clone()
  361. m6 = m1.clone()
  362. m7 = m1.clone()
  363. m8 = m1.clone()
  364. m9 = m1.clone()
  365. m10 = m1.clone()
  366. m11 = m1.clone()
  367. m12 = m1.clone()
  368. m13 = m1.clone()
  369. m14 = m1.clone()
  370. m15 = m1.clone()
  371. m16 = m1.clone()
  372. m17 = m1.clone()
  373. m18 = m1.clone()
  374. m19 = m1.clone()
  375. m20 = m1.clone()
  376. m21 = m1.clone()
  377. m22 = m1.clone()
  378. m23 = m1.clone()
  379. m24 = m1.clone()
  380. m25 = m1.clone()
  381. m26 = m1.clone()
  382. m27 = m1.clone()
  383. m28 = m1.clone()
  384. m1.setpos(335 - 82 - 63 * 0, -335) #Mediterranean Avenue
  385. m2.setpos(335 - 82 - 63 * 2, -335) #Baltic Avenue
  386. m3.setpos(335 - 82 - 63 * 4, -335) #Reading Railroad
  387. m4.setpos(335 - 82 - 63 * 5, -335) #Oriental Avenue
  388. m5.setpos(335 - 82 - 63 * 7, -335) #Vermont Avenue
  389. m6.setpos(335 - 82 - 63 * 8, -335) #Connecticut Avenue
  390. m7.setpos(-333, -335 + 82 + 63 * 0) #St. Charles Place
  391. m8.setpos(-333, -335 + 82 + 63 * 1) #Electric Company
  392. m9.setpos(-333, -335 + 82 + 63 * 2) #States Avenue
  393. m10.setpos(-333, -335 + 82 + 63 * 3) #Virginia Avenue
  394. m11.setpos(-333, -335 + 82 + 63 * 4) #Pennsylvania Railroad
  395. m12.setpos(-333, -335 + 82 + 63 * 5) #St. James Place
  396. m13.setpos(-333, -335 + 82 + 63 * 7) #Tennessee Avenue
  397. m14.setpos(-333, -335 + 82 + 63 * 8) #New York Avenue
  398. m15.setpos(-333 + 82 + 63 * 0, 333) #Kentucky Avenue
  399. m16.setpos(-333 + 82 + 63 * 2, 333) #Indiana Avenue
  400. m17.setpos(-333 + 82 + 63 * 3, 333) #Illinois Avenue
  401. m18.setpos(-333 + 82 + 63 * 4, 333) #B. & O. Railroad
  402. m19.setpos(-333 + 82 + 63 * 5, 333) #Atlantic Avenue
  403. m20.setpos(-333 + 82 + 63 * 6, 333) #Ventnor Avenue
  404. m21.setpos(-333 + 82 + 63 * 7, 333) #Water Works
  405. m22.setpos(-333 + 82 + 63 * 8, 333) #Marvin Gardens
  406. m23.setpos(335, 333 - 82 - 63 * 0) #Pacific Avenue
  407. m24.setpos(335, 333 - 82 - 63 * 1) #North Carolina Avenue
  408. m25.setpos(335, 333 - 82 - 63 * 3) #Pennsylvania Avenue
  409. m26.setpos(335, 333 - 82 - 63 * 4) #Short Line
  410. m27.setpos(335, 333 - 82 - 63 * 6) #Park Place
  411. m28.setpos(335, 333 - 82 - 63 * 8) #Boardwalk
  412.  
  413. #Sets up houses and hotels
  414. house = "house.gif"
  415. house2 = "house2.gif"
  416. house3 = "house3.gif"
  417. house4 = "house4.gif"
  418. hotel = "hotel.gif"
  419. wn.addshape(house)
  420. wn.addshape(house2)
  421. wn.addshape(house3)
  422. wn.addshape(house4)
  423. wn.addshape(hotel)
  424. h1 = turtle.Turtle()
  425. h1.shape(house)
  426. h1.pu()
  427. h1.speed(0)
  428. h1.ht()
  429. h2 = h1.clone()
  430. h3 = h1.clone()
  431. h4 = h1.clone()
  432. h5 = h1.clone()
  433. h6 = h1.clone()
  434. h7 = h1.clone()
  435. h8 = h1.clone()
  436. h9 = h1.clone()
  437. h10 = h1.clone()
  438. h11 = h1.clone()
  439. h12 = h1.clone()
  440. h13 = h1.clone()
  441. h14 = h1.clone()
  442. h15 = h1.clone()
  443. h16 = h1.clone()
  444. h17 = h1.clone()
  445. h18 = h1.clone()
  446. h19 = h1.clone()
  447. h20 = h1.clone()
  448. h21 = h1.clone()
  449. h22 = h1.clone()
  450. h1.setpos(335 - 82 - 63 * 0, -295) #Mediterranean Avenue
  451. h2.setpos(335 - 82 - 63 * 2, -295) #Baltic Avenue
  452. h3.setpos(335 - 82 - 63 * 5, -295) #Oriental Avenue
  453. h4.setpos(335 - 82 - 63 * 7, -295) #Vermont Avenue
  454. h5.setpos(335 - 82 - 63 * 8, -295) #Connecticut Avenue
  455. h6.setpos(-295, -335 + 82 + 63 * 0) #St. Charles Place
  456. h7.setpos(-295, -335 + 82 + 63 * 2) #States Avenue
  457. h8.setpos(-295, -335 + 82 + 63 * 3) #Virginia Avenue
  458. h9.setpos(-295, -335 + 82 + 63 * 5) #St. James Place
  459. h10.setpos(-295, -335 + 82 + 63 * 7) #Tennessee Avenue
  460. h11.setpos(-295, -335 + 82 + 63 * 8) #New York Avenue
  461. h12.setpos(-335 + 82 + 63 * 0, 295) #Kentucky Avenue
  462. h13.setpos(-335 + 82 + 63 * 2, 295) #Indiana Avenue
  463. h14.setpos(-335 + 82 + 63 * 3, 295) #Illinois Avenue
  464. h15.setpos(-335 + 82 + 63 * 5, 295) #Atlantic Avenue
  465. h16.setpos(-335 + 82 + 63 * 6, 295) #Ventnor Avenue
  466. h17.setpos(-335 + 82 + 63 * 8, 295) #Marvin Gardens
  467. h18.setpos(295, 335 - 82 - 63 * 0) #Pacific Avenue
  468. h19.setpos(295, 335 - 82 - 63 * 1) #North Carolina Avenue
  469. h20.setpos(295, 335 - 82 - 63 * 3) #Pennsylvania Avenue
  470. h21.setpos(295, 335 - 82 - 63 * 6) #Park Place
  471. h22.setpos(295, 335 - 82 - 63 * 8) #Boardwalk
  472.  
  473. #Sets up characters
  474. char1 = "cat.gif"
  475. char2 = "stickman.gif"
  476. char3 = "car.gif"
  477. char4 = "thimble.gif"
  478. char5 = "catcolor.gif"
  479. char6 = "stickmancolor.gif"
  480. char7 = "carcolor.gif"
  481. char8 = "thimblecolor.gif"
  482. chari1 = "cati.gif"
  483. chari2 = "stickmani.gif"
  484. chari3 = "cari.gif"
  485. chari4 = "thimblei.gif"
  486. wn.addshape(char1)
  487. wn.addshape(char2)
  488. wn.addshape(char3)
  489. wn.addshape(char4)
  490. wn.addshape(char5)
  491. wn.addshape(char6)
  492. wn.addshape(char7)
  493. wn.addshape(char8)
  494. wn.addshape(chari1)
  495. wn.addshape(chari2)
  496. wn.addshape(chari3)
  497. wn.addshape(chari4)
  498. player1 = turtle.Turtle()
  499. player1.ht()
  500. player1.pu()
  501. player1.speed(0)
  502. p1x = 335
  503. p1y = -335
  504. player1.setpos(p1x, p1y)
  505. player1.speed(2)
  506. player2 = turtle.Turtle()
  507. player2.ht()
  508. player2.pu()
  509. player2.speed(0)
  510. p2x = 335
  511. p2y = -335
  512. player2.setpos(p2x, p2y)
  513. player2.speed(2)
  514. #Intro text
  515. print("---------------------------------------------------------")
  516. print("Welcome to Monopoly!")
  517. input()
  518.  
  519. #Defines names
  520. p1 = input("Give us your name, Player One! ")
  521. print()
  522. p2 = input("Don't be shy, introduce yourself, Player Two! ")
  523. print()
  524.  
  525. #Allows players to select characters
  526. print("Select your character,", p1 + "!")
  527. i1 = turtle.Turtle()
  528. i1.shape(chari1)
  529. i1.pu()
  530. i1.speed(0)
  531. i1.setpos(-125, 100)
  532. i2 = turtle.Turtle()
  533. i2.shape(chari2)
  534. i2.pu()
  535. i2.speed(0)
  536. i2.setpos(125, 97)
  537. i3 = turtle.Turtle()
  538. i3.shape(chari3)
  539. i3.pu()
  540. i3.speed(0)
  541. i3.setpos(-110, -200)
  542. i4 = turtle.Turtle()
  543. i4.shape(chari4)
  544. i4.pu()
  545. i4.speed(0)
  546. i4.setpos(125, -167)
  547. p1cc = "x"
  548. 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":
  549. p1cc = input("Type the name of the character you'd like to be: ")
  550. if p1cc.upper() == "CAT":
  551. front = 1
  552. i1.ht()
  553. elif p1cc.upper() == "STICKMAN":
  554. front = 2
  555. i2.ht()
  556. elif p1cc.upper() == "CAR":
  557. front = 3
  558. i3.ht()
  559. elif p1cc.upper() == "THIMBLE":
  560. front = 4
  561. i4.ht()
  562. elif p1cc.upper() == "CATCOLOR":
  563. print("Chose secret Cat character!")
  564. front = 5
  565. elif p1cc.upper() == "STICKMANCOLOR":
  566. print("Chose secret Stickman character!")
  567. front = 6
  568. elif p1cc.upper() == "CARCOLOR":
  569. print("Chose secret Car character!")
  570. front = 7
  571. elif p1cc.upper() == "THIMBLECOLOR":
  572. print("Chose secret Thimble character!")
  573. front = 8
  574. else:
  575. print("\nInvalid response.")
  576.  
  577. print("\nNow, select your character,", p2 + "!")
  578. p2cc = "x"
  579. 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":
  580. p2cc = input("Type the name of the character you'd like to be: ")
  581. if p2cc.upper() == "CAT":
  582. if p2cc.upper() != p1cc.upper():
  583. player2.shape(char1)
  584. i1.ht()
  585. else:
  586. print("\nCat is taken, please select a different character.")
  587. p2cc = "x"
  588. elif p2cc.upper() == "STICKMAN":
  589. if p2cc.upper() != p1cc.upper():
  590. player2.shape(char2)
  591. i2.ht()
  592. else:
  593. print("\nStickman is taken, please select a different character.")
  594. p2cc = "x"
  595. elif p2cc.upper() == "CAR":
  596. if p2cc.upper() != p1cc.upper():
  597. player2.shape(char3)
  598. i3.ht()
  599. else:
  600. print("\nCar is taken, please select a different character.")
  601. p2cc = "x"
  602. elif p2cc.upper() == "THIMBLE":
  603. if p2cc.upper() != p1cc.upper():
  604. player2.shape(char4)
  605. i4.ht()
  606. else:
  607. print("\nThimble is taken, please select a different character.")
  608. elif p2cc.upper() == "CATCOLOR":
  609. if p2cc.upper() != p1cc.upper():
  610. player2.shape(char5)
  611. print("Chose secret Cat character!")
  612. else:
  613. print("\nThis secret character is taken.")
  614. elif p2cc.upper() == "STICKMANCOLOR":
  615. if p2cc.upper() != p1cc.upper():
  616. player2.shape(char6)
  617. print("Chose secret Stickman character!")
  618. else:
  619. print("\nThis secret character is taken.")
  620. elif p2cc.upper() == "CARCOLOR":
  621. if p2cc.upper() != p1cc.upper():
  622. player2.shape(char7)
  623. print("Chose secret Car character!")
  624. else:
  625. print("\nThis secret character is taken.")
  626. elif p2cc.upper() == "THIMBLECOLOR":
  627. if p2cc.upper() != p1cc.upper():
  628. player2.shape(char8)
  629. print("Chose secret Thimble character!")
  630. else:
  631. print("\nThis secret character is taken.")
  632. else:
  633. print("\nInvalid response.")
  634. if front == 1:
  635. player1.shape(char1)
  636. elif front == 2:
  637. player1.shape(char2)
  638. elif front == 3:
  639. player1.shape(char3)
  640. elif front == 4:
  641. player1.shape(char4)
  642. elif front == 5:
  643. player1.shape(char5)
  644. elif front == 6:
  645. player1.shape(char6)
  646. elif front == 7:
  647. player1.shape(char7)
  648. elif front == 8:
  649. player1.shape(char8)
  650. print("---------------------------------------------------------")
  651. player2.st()
  652. player1.st()
  653. i1.ht()
  654. i2.ht()
  655. i3.ht()
  656. i4.ht()
  657.  
  658. #Determines who goes first
  659. if turn == 1:
  660. print(p1, "goes first!")
  661. input()
  662. if turn == 2:
  663. print(p2, "goes first!")
  664. input()
  665.  
  666. #While game is on...
  667. while game == 1:
  668. ####While it is Player One's turn...
  669. while turn == 1 and game == 1:
  670. #Displays player stats
  671. print(p1 + "'s turn!")
  672. print("*********************")
  673. print("*", p1 + ":", end='')
  674. if len(p1) <= 11:
  675. for i in range(11 - len(p1)):
  676. print(" ", end='')
  677. print("$" + str(p1m), end='')
  678. if len(str((p1m))) <= 5:
  679. for i in range(5 - len(str((p1m)))):
  680. print(" ", end='')
  681. print("*\n*", p2 + ":", end='')
  682. if len(p2) <= 11:
  683. for i in range(11 - len(p2)):
  684. print(" ", end='')
  685. print("$" + str(p2m), end='')
  686. if len(str((p2m))) <= 5:
  687. for i in range(5 - len(str((p2m)))):
  688. print(" ", end='')
  689. print("*\n*********************\n")
  690.  
  691. #If player is in Jail...
  692. if p1j == 1:
  693. p1jc = "x"
  694. p1jt = p1jt + 1
  695. #Player has these Jail options...
  696. 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.":
  697. if p1jt < 4:
  698. print("You are in Jail.")
  699. print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
  700. print("X I.\tPay $50 to be released (p) X")
  701. print("X II.\tAttempt to roll doubles (r) X")
  702. print("X III.\tUse a Get Out of Jail Free Card (g) X")
  703. print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
  704. p1jc = input()
  705. #If player pays to leave Jail...
  706. if p1jc.lower() == "p" or p1jc.lower() == "i" or p1jc.lower() == "i.":
  707. if p1m >= 50:
  708. print()
  709. print(p1, "paid and left Jail.")
  710. p1j = 0
  711. p1jt = 0
  712. p1m = p1m - 50
  713. print("You now have $" + str(p1m) + ".\n")
  714. else:
  715. print("Insufficient funds. Too bad.\n")
  716. p1jc = "x"
  717. #If player rolls to leave Jail...
  718. elif p1jc == "r" or p1jc.lower() == "ii" or p1jc.lower() == "ii.":
  719. die1 = random.randint(1, 6)
  720. die2 = random.randint(1, 6)
  721. input("Here's hoping for some good luck...\n")
  722. print(p1, "rolled a", str(die1), "and a", str(die2) + "!\n")
  723.  
  724. if die1 == die2:
  725. print("Success! You walked free.")
  726. p1j = 0
  727. p1jt = 0
  728. else:
  729. print("Ah, you tried.")
  730. turn = 2
  731. elif p1jc.lower() == "g" or p1jc.lower() == "iii" or p1jc.lower() == "iii.":
  732. if p1free == 1:
  733. print()
  734. print(p1, "used a Get Out of Jail Free Card!")
  735. p1j = 0
  736. p1jt = 0
  737. p1free = p1free - 1
  738. else:
  739. print("You don't have a Get Out of Jail Free Card.\n")
  740. p1jc = "x"
  741. else:
  742. print("\nInvalid response.")
  743. else:
  744. print("You served your time,", p1 + ".")
  745. input()
  746. p1j = 0
  747. p1jt = 0
  748. p1jc = "r"
  749. if turn == 1:
  750. p1c = "x"
  751. #Player menu
  752. 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":
  753. print("What will you do,", p1 + "?")
  754. print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
  755. print("X I.\tRoll the dice (r) X")
  756. print("X II.\tMortgage properties (m) X")
  757. print("X III.\tUnmortgage properties (u) X")
  758. print("X IV.\tBuild houses (b) X")
  759. print("X V.\tSell houses (s) X")
  760. print("X VI.\tMake a trade (t) X")
  761. print("X VII.\tDeclare bankruptcy (d) X")
  762. print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
  763. p1c = input()
  764. #If player chooses to roll...
  765. if p1c.lower() == "r" or p1c.lower() == "i" or p1c.lower() == "i.":
  766. if p1m >= 0:
  767. print("Roll the dice,", p1 + "!")
  768. input()
  769. else:
  770. print("You can't roll while your balance is negative.")
  771. input()
  772. p1c = "x"
  773. #If player chooses to mortgage...
  774. elif p1c.lower() == "m" or p1c.lower() == "ii" or p1c.lower() == "ii.":
  775. p1mc = "x"
  776. #Huge friggin' mortgaging while loop
  777. 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":
  778. print("Mortgage which properties?")
  779. print("``````````````````````````")
  780. if br1 == 1 and br1m == 0 and br1h == 0 and br2h == 0:
  781. print("Mediterranean Avenue ($30)")
  782. if br2 == 1 and br2m == 0 and br1h == 0 and br2h == 0:
  783. print("Baltic Avenue ($30)")
  784. if cy1 == 1 and cy1m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  785. print("Oriental Avenue ($50)")
  786. if cy2 == 1 and cy2m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  787. print("Vermont Avenue ($50)")
  788. if cy3 == 1 and cy3m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  789. print("Connecticut Avenue ($60)")
  790. if vi1 == 1 and vi1m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  791. print("St. Charles Place ($70)")
  792. if vi2 == 1 and vi2m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  793. print("States Avenue ($70)")
  794. if vi3 == 1 and vi3m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  795. print("Virginia Avenue ($80)")
  796. if or1 == 1 and or1m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
  797. print("St. James Place ($90)")
  798. if or2 == 1 and or2m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
  799. print("Tennessee Avenue ($90)")
  800. if or3 == 1 and or3m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
  801. print("New York Avenue ($100)")
  802. if red1 == 1 and red1m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
  803. print("Kentucky Avenue ($110)")
  804. if red2 == 1 and red2m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
  805. print("Indiana Avenue ($110)")
  806. if red3 == 1 and red3m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
  807. print("Illinois Avenue ($120)")
  808. if ye1 == 1 and ye1m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  809. print("Atlantic Avenue ($130)")
  810. if ye2 == 1 and ye2m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  811. print("Ventnor Avenue ($130)")
  812. if ye3 == 1 and ye3m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  813. print("Marvin Gardens ($140)")
  814. if gr1 == 1 and gr1m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  815. print("Pacific Avenue ($150)")
  816. if gr2 == 1 and gr2m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  817. print("North Carolina Avenue ($150)")
  818. if gr3 == 1 and gr3m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  819. print("Pennsylvania Avenue ($160)")
  820. if bl1 == 1 and bl1m == 0 and bl1h == 0 and bl2h == 0:
  821. print("Park Place ($175)")
  822. if bl2 == 1 and bl2m == 0 and bl1h == 0 and bl2h == 0:
  823. print("Boardwalk ($200)")
  824. if rrr == 1 and rrrm == 0:
  825. print("Reading Railroad ($100)")
  826. if prr == 1 and prrm == 0:
  827. print("Pennsylvania Railroad ($100)")
  828. if brr == 1 and brrm == 0:
  829. print("B. & O. Railroad ($100)")
  830. if srr == 1 and srrm == 0:
  831. print("Short Line ($100)")
  832. if ec == 1 and ecm == 0:
  833. print("Electric Company ($75)")
  834. if ww == 1 and wwm == 0:
  835. print("Water Works ($75)")
  836. print("``````````````````````````")
  837. print("(Type 'Done' to finish)")
  838. p1mc = input()
  839. print()
  840. #If player tries to mortgage Mediterranean Avenue...
  841. if p1mc.lower() == "mediterranean avenue":
  842. if br1 == 1 and br1m == 0 and br1h == 0 and br2h == 0:
  843. print(p1, "mortgaged Mediterranean Avenue for $30.")
  844. br1m = 1
  845. p1m = p1m + 30
  846. m1.st()
  847. print("You now have $" + str(p1m) + ".\n")
  848. p1mc = "x"
  849. else:
  850. print("Unable to mortgage that property.")
  851. p1mc = "x"
  852. #If player tries to mortgage Baltic Avenue...
  853. elif p1mc.lower() == "baltic avenue":
  854. if br2 == 1 and br2m == 0 and br1h == 0 and br2h == 0:
  855. print(p1, "mortgaged Baltic Avenue for $30.")
  856. br2m = 1
  857. p1m = p1m + 30
  858. m2.st()
  859. print("You now have $" + str(p1m) + ".\n")
  860. p1mc = "x"
  861. else:
  862. print("Unable to mortgage that property.")
  863. p1mc = "x"
  864. #If player tries to mortgage Oriental Avenue...
  865. elif p1mc.lower() == "oriental avenue":
  866. if cy1 == 1 and cy1m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  867. print(p1, "mortgaged Oriental Avenue for $50.")
  868. cy1m = 1
  869. p1m = p1m + 50
  870. m4.st()
  871. print("You now have $" + str(p1m) + ".\n")
  872. p1mc = "x"
  873. else:
  874. print("Unable to mortgage that property.")
  875. p1mc = "x"
  876. #If player tries to mortgage Vermont Avenue...
  877. elif p1mc.lower() == "vermont avenue":
  878. if cy2 == 1 and cy2m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  879. print(p1, "mortgaged Vermont Avenue for $50.")
  880. cy2m = 1
  881. p1m = p1m + 50
  882. m5.st()
  883. print("You now have $" + str(p1m) + ".\n")
  884. p1mc = "x"
  885. else:
  886. print("Unable to mortgage that property.")
  887. p1mc = "x"
  888. #If player tries to mortgage Connecticut Avenue...
  889. elif p1mc.lower() == "connecticut avenue":
  890. if cy3 == 1 and cy3m == 0 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  891. print(p1, "mortgaged Connecticut Avenue for $60.")
  892. cy3m = 1
  893. p1m = p1m + 60
  894. m6.st()
  895. print("You now have $" + str(p1m) + ".\n")
  896. p1mc = "x"
  897. else:
  898. print("Unable to mortgage that property.")
  899. p1mc = "x"
  900. #If player tries to mortgage St. Charles Place...
  901. elif p1mc.lower() == "st. charles place":
  902. if vi1 == 1 and vi1m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  903. print(p1, "mortgaged St. Charles Place for $70.")
  904. vi1m = 1
  905. p1m = p1m + 70
  906. m7.st()
  907. print("You now have $" + str(p1m) + ".\n")
  908. p1mc = "x"
  909. else:
  910. print("Unable to mortgage that property.")
  911. p1mc = "x"
  912. #If player tries to mortgage States Avenue...
  913. elif p1mc.lower() == "states avenue":
  914. if vi2 == 1 and vi2m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  915. print(p1, "mortgaged States Avenue for $70.")
  916. vi2m = 1
  917. p1m = p1m + 70
  918. m9.st()
  919. print("You now have $" + str(p1m) + ".\n")
  920. p1mc = "x"
  921. else:
  922. print("Unable to mortgage that property.")
  923. p1mc = "x"
  924. #If player tries to mortgage Virginia Avenue...
  925. elif p1mc.lower() == "virginia avenue":
  926. if vi3 == 1 and vi3m == 0 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  927. print(p1, "mortgaged Virginia Avenue for $80.")
  928. vi3m = 1
  929. p1m = p1m + 80
  930. m10.st()
  931. print("You now have $" + str(p1m) + ".\n")
  932. p1mc = "x"
  933. else:
  934. print("Unable to mortgage that property.")
  935. p1mc = "x"
  936. #If player tries to mortgage St. James Place...
  937. elif p1mc.lower() == "st. james place":
  938. if or1 == 1 and or1m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
  939. print(p1, "mortgaged St. James Place for $90.")
  940. or1m = 1
  941. p1m = p1m + 90
  942. m12.st()
  943. print("You now have $" + str(p1m) + ".\n")
  944. p1mc = "x"
  945. else:
  946. print("Unable to mortgage that property.")
  947. p1mc = "x"
  948. #If player tries to mortgage Tennessee Avenue...
  949. elif p1mc.lower() == "tennessee avenue":
  950. if or2 == 1 and or2m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
  951. print(p1, "mortgaged Tennessee Avenue for $90.")
  952. or2m = 1
  953. p1m = p1m + 90
  954. m13.st()
  955. print("You now have $" + str(p1m) + ".\n")
  956. p1mc = "x"
  957. else:
  958. print("Unable to mortgage that property.")
  959. p1mc = "x"
  960. #If player tries to mortgage New York Avenue...
  961. elif p1mc.lower() == "new york avenue":
  962. if or3 == 1 and or3m == 0 and or1h == 0 and or2h == 0 and or3h == 0:
  963. print(p1, "mortgaged New York Avenue for $100.")
  964. or3m = 1
  965. p1m = p1m + 100
  966. m14.st()
  967. print("You now have $" + str(p1m) + ".\n")
  968. p1mc = "x"
  969. else:
  970. print("Unable to mortgage that property.")
  971. p1mc = "x"
  972. #If player tries to mortgage Kentucky Avenue...
  973. elif p1mc.lower() == "kentucky avenue":
  974. if red1 == 1 and red1m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
  975. print(p1, "mortgaged Kentucky Avenue for $110.")
  976. red1m = 1
  977. p1m = p1m + 110
  978. m15.st()
  979. print("You now have $" + str(p1m) + ".\n")
  980. p1mc = "x"
  981. else:
  982. print("Unable to mortgage that property.")
  983. p1mc = "x"
  984. #If player tries to mortgage Indiana Avenue...
  985. elif p1mc.lower() == "indiana avenue":
  986. if red2 == 1 and red2m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
  987. print(p1, "mortgaged Indiana Avenue for $110.")
  988. red2m = 1
  989. p1m = p1m + 110
  990. m16.st()
  991. print("You now have $" + str(p1m) + ".\n")
  992. p1mc = "x"
  993. else:
  994. print("Unable to mortgage that property.")
  995. p1mc = "x"
  996. #If player tries to mortgage Illinois Avenue...
  997. elif p1mc.lower() == "illinois avenue":
  998. if red3 == 1 and red3m == 0 and red1h == 0 and red2h == 0 and red3h == 0:
  999. print(p1, "mortgaged Illinois Avenue for $120.")
  1000. red3m = 1
  1001. p1m = p1m + 120
  1002. m17.st()
  1003. print("You now have $" + str(p1m) + ".\n")
  1004. p1mc = "x"
  1005. else:
  1006. print("Unable to mortgage that property.")
  1007. p1mc = "x"
  1008. #If player tries to mortgage Atlantic Avenue...
  1009. elif p1mc.lower() == "atlantic avenue":
  1010. if ye1 == 1 and ye1m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  1011. print(p1, "mortgaged Atlantic Avenue for $130.")
  1012. ye1m = 1
  1013. p1m = p1m + 130
  1014. m19.st()
  1015. print("You now have $" + str(p1m) + ".\n")
  1016. p1mc = "x"
  1017. else:
  1018. print("Unable to mortgage that property.")
  1019. p1mc = "x"
  1020. #If player tries to mortgage Ventnor Avenue...
  1021. elif p1mc.lower() == "ventnor avenue":
  1022. if ye2 == 1 and ye2m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  1023. print(p1, "mortgaged Ventnor Avenue for 130.")
  1024. ye2m = 1
  1025. p1m = p1m + 130
  1026. m20.st()
  1027. print("You now have $" + str(p1m) + ".\n")
  1028. p1mc = "x"
  1029. else:
  1030. print("Unable to mortgage that property.")
  1031. p1mc = "x"
  1032. #If player tries to mortgage Marvin Gardens...
  1033. elif p1mc.lower() == "marvin gardens":
  1034. if ye3 == 1 and ye3m == 0 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  1035. print(p1, "mortgaged Marvin Gardens for $140.")
  1036. ye3m = 1
  1037. p1m = p1m + 140
  1038. m22.st()
  1039. print("You now have $" + str(p1m) + ".\n")
  1040. p1mc = "x"
  1041. else:
  1042. print("Unable to mortgage that property.")
  1043. p1mc = "x"
  1044. #If player tries to mortgage Pacific Avenue...
  1045. elif p1mc.lower() == "pacific avenue":
  1046. if gr1 == 1 and gr1m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  1047. print(p1, "mortgaged Pacific Avenue for $150.")
  1048. gr1m = 1
  1049. p1m = p1m + 150
  1050. m23.st()
  1051. print("You now have $" + str(p1m) + ".\n")
  1052. p1mc = "x"
  1053. else:
  1054. print("Unable to mortgage that property.")
  1055. p1mc = "x"
  1056. #If player tries to mortgage North Carolina Avenue...
  1057. elif p1mc.lower() == "north carolina avenue":
  1058. if gr2 == 1 and gr2m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  1059. print(p1, "mortgaged North Carolina Avenue for $150.")
  1060. gr2m = 1
  1061. p1m = p1m + 150
  1062. m24.st()
  1063. print("You now have $" + str(p1m) + ".\n")
  1064. p1mc = "x"
  1065. else:
  1066. print("Unable to mortgage that property.")
  1067. p1mc = "x"
  1068. #If player tries to mortgage Pennsylvania Avenue...
  1069. elif p1mc.lower() == "pennsylvania avenue":
  1070. if gr3 == 1 and gr3m == 0 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  1071. print(p1, "mortgaged Pennsylvania Avenue for $160.")
  1072. gr3m = 1
  1073. p1m = p1m + 160
  1074. m25.st()
  1075. print("You now have $" + str(p1m) + ".\n")
  1076. p1mc = "x"
  1077. else:
  1078. print("Unable to mortgage that property.")
  1079. p1mc = "x"
  1080. #If player tries to mortgage Park Place...
  1081. elif p1mc.lower() == "park place":
  1082. if bl1 == 1 and bl1m == 0 and bl1h == 0 and bl2h == 0:
  1083. print(p1, "mortgaged Park Place for $175.")
  1084. bl1m = 1
  1085. p1m = p1m + 175
  1086. m27.st()
  1087. print("You now have $" + str(p1m) + ".\n")
  1088. p1mc = "x"
  1089. else:
  1090. print("Unable to mortgage that property.")
  1091. p1mc = "x"
  1092. #If player tries to mortgage Boardwalk...
  1093. elif p1mc.lower() == "boardwalk":
  1094. if bl2 == 1 and bl2m == 0 and bl1h == 0 and bl2h == 0:
  1095. print(p1, "mortgaged Boardwalk for $200.")
  1096. bl2m = 1
  1097. p1m = p1m + 200
  1098. m28.st()
  1099. print("You now have $" + str(p1m) + ".\n")
  1100. p1mc = "x"
  1101. else:
  1102. print("Unable to mortgage that property.")
  1103. p1mc = "x"
  1104. #If player tries to mortgage Reading Railroad...
  1105. elif p1mc.lower() == "reading railroad":
  1106. if rrr == 1 and rrrm == 0:
  1107. print(p1, "mortgaged Reading Railroad for $100.")
  1108. rrrm = 1
  1109. p1rr = p1rr - 1
  1110. p1m = p1m + 100
  1111. m3.st()
  1112. print("You now have $" + str(p1m) + ".\n")
  1113. p1mc = "x"
  1114. else:
  1115. print("Unable to mortgage that property.")
  1116. p1mc = "x"
  1117. #If player tries to mortgage Pennsylvania Railroad...
  1118. elif p1mc.lower() == "pennsylvania railroad":
  1119. if prr == 1 and prrm == 0:
  1120. print(p1, "mortgaged Pennsylvania Railroad for $100.")
  1121. prrm = 1
  1122. p1rr = p1rr - 1
  1123. p1m = p1m + 100
  1124. m11.st()
  1125. print("You now have $" + str(p1m) + ".\n")
  1126. p1mc = "x"
  1127. else:
  1128. print("Unable to mortgage that property.")
  1129. p1mc = "x"
  1130. #If player tries to mortgage B. & O. Railroad...
  1131. elif p1mc.lower() == "b. & o. railroad":
  1132. if brr == 1 and brrm == 0:
  1133. print(p1, "mortgaged B. & O. Railroad for $100.")
  1134. brrm = 1
  1135. p1rr = p1rr - 1
  1136. p1m = p1m + 100
  1137. m18.st()
  1138. print("You now have $" + str(p1m) + ".\n")
  1139. p1mc = "x"
  1140. else:
  1141. print("Unable to mortgage that property.")
  1142. p1mc = "x"
  1143. #If player tries to mortgage Short Line...
  1144. elif p1mc.lower() == "short line":
  1145. if srr == 1 and srrm == 0:
  1146. print(p1, "mortgaged Short Line for $100.")
  1147. srrm = 1
  1148. p1rr = p1rr - 1
  1149. p1m = p1m + 100
  1150. m26.st()
  1151. print("You now have $" + str(p1m) + ".\n")
  1152. p1mc = "x"
  1153. else:
  1154. print("Unable to mortgage that property.")
  1155. p1mc = "x"
  1156. #If player tries to mortgage Electric Company...
  1157. elif p1mc.lower() == "electric company":
  1158. if ec == 1 and ecm == 0:
  1159. print(p1, "mortgaged Electric Company for $75.")
  1160. ecm = 1
  1161. p1u = p1u - 1
  1162. p1m = p1m + 75
  1163. m8.st()
  1164. print("You now have $" + str(p1m) + ".\n")
  1165. p1mc = "x"
  1166. else:
  1167. print("Unable to mortgage that property.")
  1168. p1mc = "x"
  1169. #If player tries to mortgage Water Works...
  1170. elif p1mc.lower() == "water works":
  1171. if ww == 1 and wwm == 0:
  1172. print(p1, "mortgaged Water Works for $75.")
  1173. wwm = 1
  1174. p1u = p1u - 1
  1175. p1m = p1m + 75
  1176. m21.st()
  1177. print("You now have $" + str(p1m) + ".\n")
  1178. p1mc = "x"
  1179. else:
  1180. print("Unable to mortgage that property.")
  1181. p1mc = "x"
  1182. #If player is done mortgaging properties...
  1183. elif p1mc.lower() == "done":
  1184. print("Now then...")
  1185. #If player enters an invalid response...
  1186. else:
  1187. print("Invalid response.")
  1188. p1c = "x"
  1189. print()
  1190. #If player chooses to unmortgage...
  1191. elif p1c.lower() == "u" or p1c.lower() == "iii" and p1c.lower() == "iii.":
  1192. p1mc = "x"
  1193. #Huge friggin' unmortgaging while loop
  1194. 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":
  1195. print("Unmortgage which properties?")
  1196. print("``````````````````````````")
  1197. if br1 == 1 and br1m == 1 and p1m >= 33:
  1198. print("Mediterranean Avenue (-$33)")
  1199. if br2 == 1 and br2m == 1 and p1m >= 33:
  1200. print("Baltic Avenue (-$33)")
  1201. if cy1 == 1 and cy1m == 1 and p1m >= 55:
  1202. print("Oriental Avenue (-$55)")
  1203. if cy2 == 1 and cy2m == 1 and p1m >= 55:
  1204. print("Vermont Avenue (-$55)")
  1205. if cy3 == 1 and cy3m == 1 and p1m >= 66:
  1206. print("Connecticut Avenue (-$66)")
  1207. if vi1 == 1 and vi1m == 1 and p1m >= 77:
  1208. print("St. Charles Place (-$77)")
  1209. if vi2 == 1 and vi2m == 1 and p1m >= 77:
  1210. print("States Avenue (-$77)")
  1211. if vi3 == 1 and vi3m == 1 and p1m >= 88:
  1212. print("Virginia Avenue (-$88)")
  1213. if or1 == 1 and or1m == 1 and p1m >= 99:
  1214. print("St. James Place (-$99)")
  1215. if or2 == 1 and or2m == 1 and p1m >= 99:
  1216. print("Tennessee Avenue (-$99)")
  1217. if or3 == 1 and or3m == 1 and p1m >= 110:
  1218. print("New York Avenue (-$110)")
  1219. if red1 == 1 and red1m == 1 and p1m >= 121:
  1220. print("Kentucky Avenue (-$121)")
  1221. if red2 == 1 and red2m == 1 and p1m >= 121:
  1222. print("Indiana Avenue (-$121)")
  1223. if red3 == 1 and red3m == 1 and p1m >= 132:
  1224. print("Illinois Avenue (-$132)")
  1225. if ye1 == 1 and ye1m == 1 and p1m >= 143:
  1226. print("Atlantic Avenue (-$143)")
  1227. if ye2 == 1 and ye2m == 1 and p1m >= 143:
  1228. print("Ventnor Avenue (-$143)")
  1229. if ye3 == 1 and ye3m == 1 and p1m >= 154:
  1230. print("Marvin Gardens (-$154)")
  1231. if gr1 == 1 and gr1m == 1 and p1m >= 165:
  1232. print("Pacific Avenue (-$165)")
  1233. if gr2 == 1 and gr2m == 1 and p1m >= 165:
  1234. print("North Carolina Avenue (-$165)")
  1235. if gr3 == 1 and gr3m == 1 and p1m >= 176:
  1236. print("Pennsylvania Avenue (-$176)")
  1237. if bl1 == 1 and bl1m == 1 and p1m >= 192:
  1238. print("Park Place (-$192)")
  1239. if bl2 == 1 and bl2m == 1 and p1m >= 220:
  1240. print("Boardwalk (-$220)")
  1241. if rrr == 1 and rrrm == 1 and p1m >= 110:
  1242. print("Reading Railroad (-$110)")
  1243. if prr == 1 and prrm == 1 and p1m >= 110:
  1244. print("Pennsylvania Railroad (-$110)")
  1245. if brr == 1 and brrm == 1 and p1m >= 110:
  1246. print("B. & O. Railroad (-$110)")
  1247. if srr == 1 and srrm == 1 and p1m >= 110:
  1248. print("Short Line (-$110)")
  1249. if ec == 1 and ecm == 1 and p1m >= 82:
  1250. print("Electric Company (-$82)")
  1251. if ww == 1 and wwm == 1 and p1m >= 82:
  1252. print("Water Works (-$82)")
  1253. print("``````````````````````````")
  1254. print("(Type 'Done' to finish)")
  1255. p1mc = input()
  1256. print()
  1257. #If player tries to unmortgage Mediterranean Avenue...
  1258. if p1mc.lower() == "mediterranean avenue":
  1259. if br1 == 1 and br1m == 1 and p1m >= 33:
  1260. print(p1, "unmortgaged Mediterranean Avenue for $33.")
  1261. br1m = 0
  1262. p1m = p1m - 33
  1263. m1.ht()
  1264. print("You now have $" + str(p1m) + ".\n")
  1265. p1mc = "x"
  1266. else:
  1267. print("Unable to unmortgage that property.")
  1268. p1mc = "x"
  1269. #If player tries to unmortgage Baltic Avenue...
  1270. elif p1mc.lower() == "baltic avenue":
  1271. if br2 == 1 and br2m == 1 and p1m >= 33:
  1272. print(p1, "unmortgaged Baltic Avenue for $33.")
  1273. br2m = 0
  1274. p1m = p1m - 33
  1275. m2.ht()
  1276. print("You now have $" + str(p1m) + ".\n")
  1277. p1mc = "x"
  1278. else:
  1279. print("Unable to unmortgage that property.")
  1280. p1mc = "x"
  1281. #If player tries to unmortgage Oriental Avenue...
  1282. elif p1mc.lower() == "oriental avenue":
  1283. if cy1 == 1 and cy1m == 1 and p1m >= 55:
  1284. print(p1, "unmortgaged Oriental Avenue for $55.")
  1285. cy1m = 0
  1286. p1m = p1m - 55
  1287. m4.ht()
  1288. print("You now have $" + str(p1m) + ".\n")
  1289. p1mc = "x"
  1290. else:
  1291. print("Unable to unmortgage that property.")
  1292. p1mc = "x"
  1293. #If player tries to unmortgage Vermont Avenue...
  1294. elif p1mc.lower() == "vermont avenue":
  1295. if cy2 == 1 and cy2m == 1 and p1m >= 55:
  1296. print(p1, "unmortgaged Vermont Avenue for $55.")
  1297. cy2m = 0
  1298. p1m = p1m - 55
  1299. m5.ht()
  1300. print("You now have $" + str(p1m) + ".\n")
  1301. p1mc = "x"
  1302. else:
  1303. print("Unable to unmortgage that property.")
  1304. p1mc = "x"
  1305. #If player tries to unmortgage Connecticut Avenue...
  1306. elif p1mc.lower() == "connecticut avenue":
  1307. if cy3 == 1 and cy3m == 1 and p1m >= 66:
  1308. print(p1, "unmortgaged Connecticut Avenue for $66.")
  1309. cy3m = 0
  1310. p1m = p1m - 66
  1311. m6.ht()
  1312. print("You now have $" + str(p1m) + ".\n")
  1313. p1mc = "x"
  1314. else:
  1315. print("Unable to unmortgage that property.")
  1316. p1mc = "x"
  1317. #If player tries to unmortgage St. Charles Place...
  1318. elif p1mc.lower() == "st. charles place":
  1319. if vi1 == 1 and vi1m == 1 and p1m >= 77:
  1320. print(p1, "unmortgaged St. Charles Place for $77.")
  1321. vi1m = 0
  1322. p1m = p1m - 77
  1323. m7.ht()
  1324. print("You now have $" + str(p1m) + ".\n")
  1325. p1mc = "x"
  1326. else:
  1327. print("Unable to unmortgage that property.")
  1328. p1mc = "x"
  1329. #If player tries to unmortgage States Avenue...
  1330. elif p1mc.lower() == "states avenue":
  1331. if vi2 == 1 and vi2m == 1 and p1m >= 77:
  1332. print(p1, "unmortgaged States Avenue for $77.")
  1333. vi2m = 0
  1334. p1m = p1m - 77
  1335. m9.ht()
  1336. print("You now have $" + str(p1m) + ".\n")
  1337. p1mc = "x"
  1338. else:
  1339. print("Unable to unmortgage that property.")
  1340. p1mc = "x"
  1341. #If player tries to unmortgage Virginia Avenue...
  1342. elif p1mc.lower() == "virginia avenue":
  1343. if vi3 == 1 and vi3m == 1 and p1m >= 88:
  1344. print(p1, "unmortgaged Virginia Avenue for $88.")
  1345. vi3m = 0
  1346. p1m = p1m - 88
  1347. m10.ht()
  1348. print("You now have $" + str(p1m) + ".\n")
  1349. p1mc = "x"
  1350. else:
  1351. print("Unable to unmortgage that property.")
  1352. p1mc = "x"
  1353. #If player tries to unmortgage St. James Place...
  1354. elif p1mc.lower() == "st. james place":
  1355. if or1 == 1 and or1m == 1 and p1m >= 99:
  1356. print(p1, "unmortgaged St. James Place for $99.")
  1357. or1m = 0
  1358. p1m = p1m - 99
  1359. m12.ht()
  1360. print("You now have $" + str(p1m) + ".\n")
  1361. p1mc = "x"
  1362. else:
  1363. print("Unable to unmortgage that property.")
  1364. p1mc = "x"
  1365. #If player tries to unmortgage Tennessee Avenue...
  1366. elif p1mc.lower() == "tennessee avenue":
  1367. if or2 == 1 and or2m == 1 and p1m >= 99:
  1368. print(p1, "unmortgaged Tennessee Avenue for $99.")
  1369. or2m = 0
  1370. p1m = p1m - 99
  1371. m13.ht()
  1372. print("You now have $" + str(p1m) + ".\n")
  1373. p1mc = "x"
  1374. else:
  1375. print("Unable to unmortgage that property.")
  1376. p1mc = "x"
  1377. #If player tries to unmortgage New York Avenue...
  1378. elif p1mc.lower() == "new york avenue":
  1379. if or3 == 1 and or3m == 1 and p1m >= 110:
  1380. print(p1, "unmortgaged New York Avenue for $110.")
  1381. or3m = 0
  1382. p1m = p1m - 110
  1383. m14.ht()
  1384. print("You now have $" + str(p1m) + ".\n")
  1385. p1mc = "x"
  1386. else:
  1387. print("Unable to unmortgage that property.")
  1388. p1mc = "x"
  1389. #If player tries to unmortgage Kentucky Avenue...
  1390. elif p1mc.lower() == "kentucky avenue":
  1391. if red1 == 1 and red1m == 1 and p1m >= 121:
  1392. print(p1, "unmortgaged Kentucky Avenue for $121.")
  1393. red1m = 0
  1394. p1m = p1m - 121
  1395. m15.ht()
  1396. print("You now have $" + str(p1m) + ".\n")
  1397. p1mc = "x"
  1398. else:
  1399. print("Unable to unmortgage that property.")
  1400. p1mc = "x"
  1401. #If player tries to unmortgage Indiana Avenue...
  1402. elif p1mc.lower() == "indiana avenue":
  1403. if red2 == 1 and red2m == 1 and p1m >= 121:
  1404. print(p1, "unmortgaged Indiana Avenue for $121.")
  1405. red2m = 0
  1406. p1m = p1m - 121
  1407. m16.ht()
  1408. print("You now have $" + str(p1m) + ".\n")
  1409. p1mc = "x"
  1410. else:
  1411. print("Unable to unmortgage that property.")
  1412. p1mc = "x"
  1413. #If player tries to unmortgage Illinois Avenue...
  1414. elif p1mc.lower() == "illinois avenue":
  1415. if red3 == 1 and red3m == 1 and p1m >= 132:
  1416. print(p1, "unmortgaged Illinois Avenue for $132.")
  1417. red3m = 0
  1418. p1m = p1m - 132
  1419. m17.ht()
  1420. print("You now have $" + str(p1m) + ".\n")
  1421. p1mc = "x"
  1422. else:
  1423. print("Unable to unmortgage that property.")
  1424. p1mc = "x"
  1425. #If player tries to unmortgage Atlantic Avenue...
  1426. elif p1mc.lower() == "atlantic avenue":
  1427. if ye1 == 1 and ye1m == 1 and p1m >= 143:
  1428. print(p1, "unmortgaged Atlantic Avenue for $143.")
  1429. ye1m = 0
  1430. p1m = p1m - 143
  1431. m19.ht()
  1432. print("You now have $" + str(p1m) + ".\n")
  1433. p1mc = "x"
  1434. else:
  1435. print("Unable to unmortgage that property.")
  1436. p1mc = "x"
  1437. #If player tries to unmortgage Ventnor Avenue...
  1438. elif p1mc.lower() == "ventnor avenue":
  1439. if ye2 == 1 and ye2m == 1 and p1m >= 143:
  1440. print(p1, "unmortgaged Ventnor Avenue for 143.")
  1441. ye2m = 0
  1442. p1m = p1m - 143
  1443. m20.ht()
  1444. print("You now have $" + str(p1m) + ".\n")
  1445. p1mc = "x"
  1446. else:
  1447. print("Unable to unmortgage that property.")
  1448. p1mc = "x"
  1449. #If player tries to unmortgage Marvin Gardens...
  1450. elif p1mc.lower() == "marvin gardens":
  1451. if ye3 == 1 and ye3m == 1 and p1m >= 154:
  1452. print(p1, "unmortgaged Marvin Gardens for $154.")
  1453. ye3m = 0
  1454. p1m = p1m - 154
  1455. m22.ht()
  1456. print("You now have $" + str(p1m) + ".\n")
  1457. p1mc = "x"
  1458. else:
  1459. print("Unable to unmortgage that property.")
  1460. p1mc = "x"
  1461. #If player tries to unmortgage Pacific Avenue...
  1462. elif p1mc.lower() == "pacific avenue":
  1463. if gr1 == 1 and gr1m == 1 and p1m >= 165:
  1464. print(p1, "unmortgaged Pacific Avenue for $165.")
  1465. gr1m = 0
  1466. p1m = p1m - 165
  1467. m23.ht()
  1468. print("You now have $" + str(p1m) + ".\n")
  1469. p1mc = "x"
  1470. else:
  1471. print("Unable to unmortgage that property.")
  1472. p1mc = "x"
  1473. #If player tries to unmortgage North Carolina Avenue...
  1474. elif p1mc.lower() == "north carolina avenue":
  1475. if gr2 == 1 and gr2m == 1 and p1m >= 165:
  1476. print(p1, "unmortgaged North Carolina Avenue for $165.")
  1477. gr2m = 0
  1478. p1m = p1m - 165
  1479. m24.ht()
  1480. print("You now have $" + str(p1m) + ".\n")
  1481. p1mc = "x"
  1482. else:
  1483. print("Unable to unmortgage that property.")
  1484. p1mc = "x"
  1485. #If player tries to unmortgage Pennsylvania Avenue...
  1486. elif p1mc.lower() == "pennsylvania avenue":
  1487. if gr3 == 1 and gr3m == 1 and p1m >= 176:
  1488. print(p1, "unmortgaged Pennsylvania Avenue for $176.")
  1489. gr3m = 0
  1490. p1m = p1m - 176
  1491. m25.ht()
  1492. print("You now have $" + str(p1m) + ".\n")
  1493. p1mc = "x"
  1494. else:
  1495. print("Unable to unmortgage that property.")
  1496. p1mc = "x"
  1497. #If player tries to unmortgage Park Place...
  1498. elif p1mc.lower() == "park place":
  1499. if bl1 == 1 and bl1m == 1 and p1m >= 192:
  1500. print(p1, "unmortgaged Park Place for $192.")
  1501. bl1m = 0
  1502. p1m = p1m - 192
  1503. m27.ht()
  1504. print("You now have $" + str(p1m) + ".\n")
  1505. p1mc = "x"
  1506. else:
  1507. print("Unable to unmortgage that property.")
  1508. p1mc = "x"
  1509. #If player tries to unmortgage Boardwalk...
  1510. elif p1mc.lower() == "boardwalk":
  1511. if bl2 == 1 and bl2m == 1 and p1m >= 220:
  1512. print(p1, "unmortgaged Boardwalk for $220.")
  1513. bl2m = 0
  1514. p1m = p1m - 220
  1515. m28.ht()
  1516. print("You now have $" + str(p1m) + ".\n")
  1517. p1mc = "x"
  1518. else:
  1519. print("Unable to unmortgage that property.")
  1520. p1mc = "x"
  1521. #If player tries to unmortgage Reading Railroad...
  1522. elif p1mc.lower() == "reading railroad":
  1523. if rrr == 1 and rrrm == 1 and p1m >= 110:
  1524. print(p1, "unmortgaged Reading Railroad for $110.")
  1525. rrrm = 0
  1526. p1rr = p1rr + 1
  1527. p1m = p1m - 110
  1528. m3.ht()
  1529. print("You now have $" + str(p1m) + ".\n")
  1530. p1mc = "x"
  1531. else:
  1532. print("Unable to unmortgage that property.")
  1533. p1mc = "x"
  1534. #If player tries to unmortgage Pennsylvania Railroad...
  1535. elif p1mc.lower() == "pennsylvania railroad":
  1536. if prr == 1 and prrm == 1 and p1m >= 110:
  1537. print(p1, "unmortgaged Pennsylvania Railroad for $110.")
  1538. prrm = 0
  1539. p1rr = p1rr + 1
  1540. p1m = p1m - 110
  1541. m11.ht()
  1542. print("You now have $" + str(p1m) + ".\n")
  1543. p1mc = "x"
  1544. else:
  1545. print("Unable to unmortgage that property.")
  1546. p1mc = "x"
  1547. #If player tries to unmortgage B. & O. Railroad...
  1548. elif p1mc.lower() == "b. & o. railroad":
  1549. if brr == 1 and brrm == 1 and p1m >= 110:
  1550. print(p1, "unmortgaged B. & O. Railroad for $110.")
  1551. brrm = 0
  1552. p1rr = p1rr + 1
  1553. p1m = p1m - 110
  1554. m18.ht()
  1555. print("You now have $" + str(p1m) + ".\n")
  1556. p1mc = "x"
  1557. else:
  1558. print("Unable to unmortgage that property.")
  1559. p1mc = "x"
  1560. #If player tries to unmortgage Short Line...
  1561. elif p1mc.lower() == "short line":
  1562. if srr == 1 and srrm == 1 and p1m >= 110:
  1563. print(p1, "unmortgaged Short Line for $110.")
  1564. srrm = 0
  1565. p1rr = p1rr + 1
  1566. p1m = p1m - 110
  1567. m26.ht()
  1568. print("You now have $" + str(p1m) + ".\n")
  1569. p1mc = "x"
  1570. else:
  1571. print("Unable to unmortgage that property.")
  1572. p1mc = "x"
  1573. #If player tries to unmortgage Electric Company...
  1574. elif p1mc.lower() == "electric company":
  1575. if ec == 1 and ecm == 1 and p1m >= 82:
  1576. print(p1, "unmortgaged Electric Company for $82.")
  1577. ecm = 0
  1578. p1u = p1u + 1
  1579. p1m = p1m - 82
  1580. m8.ht()
  1581. print("You now have $" + str(p1m) + ".\n")
  1582. p1mc = "x"
  1583. else:
  1584. print("Unable to unmortgage that property.")
  1585. p1mc = "x"
  1586. #If player tries to unmortgage Water Works...
  1587. elif p1mc.lower() == "water works":
  1588. if ww == 1 and wwm == 1 and p1m >= 82:
  1589. print(p1, "unmortgaged Water Works for $82.")
  1590. wwm = 0
  1591. p1u = p1u + 1
  1592. p1m = p1m - 82
  1593. m21.ht()
  1594. print("You now have $" + str(p1m) + ".\n")
  1595. p1mc = "x"
  1596. else:
  1597. print("Unable to unmortgage that property.")
  1598. p1mc = "x"
  1599. #If player is done unmortgaging properties...
  1600. elif p1mc.lower() == "done":
  1601. print("Now then...")
  1602. #If player enters an invalid response...
  1603. else:
  1604. print("Invalid response.")
  1605. p1c = "x"
  1606. print()
  1607. #If player chooses to build houses...
  1608. elif p1c.lower() == "b" or p1c.lower() == "iv" or p1c.lower() == "iv.":
  1609. p1hc = "x"
  1610. #Huge friggin' house-building while loop
  1611. 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":
  1612. print("Build a house on which property?")
  1613. print("``````````````````````````")
  1614. if p1m >= 50:
  1615. if br1 == 1 and br2 == 1 and br1m == 0 and br2m == 0:
  1616. if br1h <= br2h and br1h < 5:
  1617. print("Mediterranean Avenue (-$50)")
  1618. if br2h <= br1h and br2h < 5:
  1619. print("Baltic Avenue (-$50)")
  1620. if cy1 == 1 and cy2 == 1 and cy3 == 1 and cy1m == 0 and cy2m == 0 and cy3m == 0:
  1621. if cy1h <= cy2h and cy1h <= cy3h and cy1h < 5:
  1622. print("Oriental Avenue (-$50)")
  1623. if cy2h <= cy1h and cy2h <= cy3h and cy2h < 5:
  1624. print("Vermont Avenue (-$50)")
  1625. if cy3h <= cy1h and cy3h <= cy2h and cy3h < 5:
  1626. print("Connecticut Avenue (-$50)")
  1627. if p1m >= 100:
  1628. if vi1 == 1 and vi2 == 1 and vi3 == 1 and vi1m == 0 and vi2m == 0 and vi3m == 0:
  1629. if vi1h <= vi2h and vi1h <= vi3h and vi1h < 5:
  1630. print("St. Charles Place (-$100)")
  1631. if vi2h <= vi1h and vi2h <= vi3h and vi2h < 5:
  1632. print("States Avenue (-$100)")
  1633. if vi3h <= vi1h and vi3h <= vi2h and vi3h < 5:
  1634. print("Virginia Avenue (-$100)")
  1635. if or1 == 1 and or2 == 1 and or3 == 1 and or1m == 0 and or2m == 0 and or3m == 0:
  1636. if or1h <= or2h and or1h <= or3h and or1h < 5:
  1637. print("St. James Place (-$100)")
  1638. if or2h <= or1h and or2h <= or3h and or2h < 5:
  1639. print("Tennessee Avenue (-$100)")
  1640. if or3h <= or1h and or3h <= or2h and or3h < 5:
  1641. print("New York Avenue (-$100)")
  1642. if p1m >= 150:
  1643. if red1 == 1 and red2 == 1 and red3 == 1 and red1m == 0 and red2m == 0 and red3m == 0:
  1644. if red1h <= red2h and red1h <= red3h and red1h < 5:
  1645. print("Kentucky Avenue (-$150)")
  1646. if red2h <= red1h and red2h <= red3h and red2h < 5:
  1647. print("Indiana Avenue (-$150)")
  1648. if cy3h <= red1h and red3h <= red2h and red3h < 5:
  1649. print("Illinois Avenue (-$150)")
  1650. if ye1 == 1 and ye2 == 1 and ye3 == 1 and ye1m == 0 and ye2m == 0 and ye3m == 0:
  1651. if ye1h <= ye2h and ye1h <= ye3h and ye1h < 5:
  1652. print("Atlantic Avenue (-$150)")
  1653. if ye2h <= ye1h and ye2h <= ye3h and ye2h < 5:
  1654. print("Ventnor Avenue (-$150)")
  1655. if ye3h <= ye1h and ye3h <= ye2h and ye3h < 5:
  1656. print("Marvin Gardens (-$150)")
  1657. if p1m >= 200:
  1658. if gr1 == 1 and gr2 == 1 and gr3 == 1 and gr1m == 0 and gr2m == 0 and gr3m == 0:
  1659. if gr1h <= gr2h and gr1h <= gr3h and gr1h < 5:
  1660. print("Pacific Avenue (-$200)")
  1661. if gr2h <= gr1h and gr2h <= gr3h and gr2h < 5:
  1662. print("North Carolina Avenue (-$200)")
  1663. if gr3h <= gr1h and gr3h <= gr2h and gr3h < 5:
  1664. print("Pennsylvania Avenue (-$200)")
  1665. if bl1 == 1 and bl2 == 1 and bl1m == 0 and bl2m == 0:
  1666. if bl1h <= bl2h and bl1h < 5:
  1667. print("Park Place (-$200)")
  1668. if bl2h <= bl1h and bl2h < 5:
  1669. print("Boardwalk (-$200)")
  1670. print("``````````````````````````")
  1671. print("(Type 'Done' to finish)")
  1672. p1hc = input()
  1673. print()
  1674. #If player tries to build house on Mediterranean Avenue...
  1675. if p1hc.lower() == "mediterranean avenue":
  1676. if p1m >= 50 and br1 == 1 and br2 == 1 and br1m == 0 and br2m == 0 and br1h <= br2h and br1h < 5:
  1677. if br1h < 4:
  1678. print("Built a house on Mediterranean Avenue!")
  1679. elif br1h == 4:
  1680. print("Built a hotel on Mediterranean Avenue!")
  1681. br1h = br1h + 1
  1682. p1m = p1m - 50
  1683. print("You now have $" + str(p1m) + ".\n")
  1684. #Determines how many houses to display
  1685. if br1h == 1:
  1686. h1.shape(house)
  1687. h1.st()
  1688. if br1h == 2:
  1689. h1.shape(house2)
  1690. if br1h == 3:
  1691. h1.shape(house3)
  1692. if br1h == 4:
  1693. h1.shape(house4)
  1694. if br1h == 5:
  1695. h1.shape(hotel)
  1696. else:
  1697. print("Unable to build on Mediterranean Avenue.")
  1698. p1hc = "x"
  1699. #If player tries to build house on Baltic Avenue...
  1700. elif p1hc.lower() == "baltic avenue":
  1701. if p1m >= 50 and br1 == 1 and br2 == 1 and br1m == 0 and br2m == 0 and br2h <= br1h and br2h < 5:
  1702. if br2h < 4:
  1703. print("Built a house on Baltic Avenue!")
  1704. elif br2h == 4:
  1705. print("Built a hotel on Baltic Avenue!")
  1706. br2h = br2h + 1
  1707. p1m = p1m - 50
  1708. print("You now have $" + str(p1m) + ".\n")
  1709. #Determines how many houses to display
  1710. if br2h == 1:
  1711. h2.shape(house)
  1712. h2.st()
  1713. if br2h == 2:
  1714. h2.shape(house2)
  1715. if br2h == 3:
  1716. h2.shape(house3)
  1717. if br2h == 4:
  1718. h2.shape(house4)
  1719. if br2h == 5:
  1720. h2.shape(hotel)
  1721. else:
  1722. print("Unable to build on Baltic Avenue.")
  1723. p1hc = "x"
  1724. #If player tries to build house on Oriental Avenue...
  1725. elif p1hc.lower() == "oriental avenue":
  1726. 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:
  1727. if cy1h < 4:
  1728. print("Built a house on Oriental Avenue!")
  1729. elif cy1h == 4:
  1730. print("Built a hotel on Oriental Avenue!")
  1731. cy1h = cy1h + 1
  1732. p1m = p1m - 50
  1733. print("You now have $" + str(p1m) + ".\n")
  1734. #Determines how many houses to display
  1735. if cy1h == 1:
  1736. h3.shape(house)
  1737. h3.st()
  1738. if cy1h == 2:
  1739. h3.shape(house2)
  1740. if cy1h == 3:
  1741. h3.shape(house3)
  1742. if cy1h == 4:
  1743. h3.shape(house4)
  1744. if cy1h == 5:
  1745. h3.shape(hotel)
  1746. else:
  1747. print("Unable to build on Oriental Avenue.")
  1748. p1hc = "x"
  1749. #If player tries to build house on Vermont Avenue...
  1750. elif p1hc.lower() == "vermont avenue":
  1751. 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:
  1752. if cy2h < 4:
  1753. print("Built a house on Vermont Avenue!")
  1754. elif cy2h == 4:
  1755. print("Built a hotel on Vermont Avenue!")
  1756. cy2h = cy2h + 1
  1757. p1m = p1m - 50
  1758. print("You now have $" + str(p1m) + ".\n")
  1759. #Determines how many houses to display
  1760. if cy2h == 1:
  1761. h4.shape(house)
  1762. h4.st()
  1763. if cy2h == 2:
  1764. h4.shape(house2)
  1765. if cy2h == 3:
  1766. h4.shape(house3)
  1767. if cy2h == 4:
  1768. h4.shape(house4)
  1769. if cy2h == 5:
  1770. h4.shape(hotel)
  1771. else:
  1772. print("Unable to build on Vermont Avenue.")
  1773. p1hc = "x"
  1774. #If player tries to build house on Connecticut Avenue...
  1775. elif p1hc.lower() == "connecticut avenue":
  1776. 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:
  1777. if cy3h < 4:
  1778. print("Built a house on Connecticut Avenue!")
  1779. elif cy3h == 4:
  1780. print("Built a hotel on Connecticut Avenue!")
  1781. cy3h = cy3h + 1
  1782. p1m = p1m - 50
  1783. print("You now have $" + str(p1m) + ".\n")
  1784. #Determines how many houses to display
  1785. if cy3h == 1:
  1786. h5.shape(house)
  1787. h5.st()
  1788. if cy3h == 2:
  1789. h5.shape(house2)
  1790. if cy3h == 3:
  1791. h5.shape(house3)
  1792. if cy3h == 4:
  1793. h5.shape(house4)
  1794. if cy3h == 5:
  1795. h5.shape(hotel)
  1796. else:
  1797. print("Unable to build on Connecticut Avenue.")
  1798. p1hc = "x"
  1799. #If player tries to build house on St. Charles Place...
  1800. elif p1hc.lower() == "st. charles place":
  1801. 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:
  1802. if vi1h < 4:
  1803. print("Built a house on St. Charles Place!")
  1804. elif vi1h == 4:
  1805. print("Built a hotel on St. Charles Place!")
  1806. vi1h = vi1h + 1
  1807. p1m = p1m - 100
  1808. print("You now have $" + str(p1m) + ".\n")
  1809. #Determines how many houses to display
  1810. if vi1h == 1:
  1811. h6.shape(house)
  1812. h6.st()
  1813. if vi1h == 2:
  1814. h6.shape(house2)
  1815. if vi1h == 3:
  1816. h6.shape(house3)
  1817. if vi1h == 4:
  1818. h6.shape(house4)
  1819. if vi1h == 5:
  1820. h6.shape(hotel)
  1821. else:
  1822. print("Unable to build on St. Charles Place.")
  1823. p1hc = "x"
  1824. #If player tries to build house on States Avenue...
  1825. elif p1hc.lower() == "states avenue":
  1826. 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:
  1827. if vi2h < 4:
  1828. print("Built a house on States Avenue!")
  1829. elif vi2h == 4:
  1830. print("Built a hotel on States Avenue!")
  1831. vi2h = vi2h + 1
  1832. p1m = p1m - 100
  1833. print("You now have $" + str(p1m) + ".\n")
  1834. #Determines how many houses to display
  1835. if vi2h == 1:
  1836. h7.shape(house)
  1837. h7.st()
  1838. if vi2h == 2:
  1839. h7.shape(house2)
  1840. if vi2h == 3:
  1841. h7.shape(house3)
  1842. if vi2h == 4:
  1843. h7.shape(house4)
  1844. if vi2h == 5:
  1845. h7.shape(hotel)
  1846. else:
  1847. print("Unable to build on States Avenue.")
  1848. p1hc = "x"
  1849. #If player tries to build house on Virginia Avenue...
  1850. elif p1hc.lower() == "states avenue":
  1851. 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:
  1852. if vi3h < 4:
  1853. print("Built a house on Virginia Avenue!")
  1854. elif vi3h == 4:
  1855. print("Built a hotel on Virginia Avenue!")
  1856. vi3h = vi3h + 1
  1857. p1m = p1m - 100
  1858. print("You now have $" + str(p1m) + ".\n")
  1859. #Determines how many houses to display
  1860. if vi3h == 1:
  1861. h8.shape(house)
  1862. h8.st()
  1863. if vi3h == 2:
  1864. h8.shape(house2)
  1865. if vi3h == 3:
  1866. h8.shape(house3)
  1867. if vi3h == 4:
  1868. h8.shape(house4)
  1869. if vi3h == 5:
  1870. h8.shape(hotel)
  1871. else:
  1872. print("Unable to build on Virginia Avenue.")
  1873. p1hc = "x"
  1874. #If player tries to build house on St. James Place...
  1875. elif p1hc.lower() == "st. james place":
  1876. 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:
  1877. if or1h < 4:
  1878. print("Built a house on St. James Place!")
  1879. elif or1h == 4:
  1880. print("Built a hotel on St. James Place!")
  1881. or1h = or1h + 1
  1882. p1m = p1m - 100
  1883. print("You now have $" + str(p1m) + ".\n")
  1884. #Determines how many houses to display
  1885. if or1h == 1:
  1886. h9.shape(house)
  1887. h9.st()
  1888. if or1h == 2:
  1889. h9.shape(house2)
  1890. if or1h == 3:
  1891. h9.shape(house3)
  1892. if or1h == 4:
  1893. h9.shape(house4)
  1894. if or1h == 5:
  1895. h9.shape(hotel)
  1896. else:
  1897. print("Unable to build on St. James Place.")
  1898. p1hc = "x"
  1899. #If player tries to build house on Tennessee Avenue...
  1900. elif p1hc.lower() == "tennessee avenue":
  1901. 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:
  1902. if or2h < 4:
  1903. print("Built a house on Tennessee Avenue!")
  1904. elif or2h == 4:
  1905. print("Built a hotel on Tennessee Avenue!")
  1906. or2h = or2h + 1
  1907. p1m = p1m - 100
  1908. print("You now have $" + str(p1m) + ".\n")
  1909. #Determines how many houses to display
  1910. if or2h == 1:
  1911. h10.shape(house)
  1912. h10.st()
  1913. if or2h == 2:
  1914. h10.shape(house2)
  1915. if or2h == 3:
  1916. h10.shape(house3)
  1917. if or2h == 4:
  1918. h10.shape(house4)
  1919. if or2h == 5:
  1920. h10.shape(hotel)
  1921. else:
  1922. print("Unable to build on Tennessee Avenue.")
  1923. p1hc = "x"
  1924. #If player tries to build house on New York Avenue...
  1925. elif p1hc.lower() == "new york avenue":
  1926. 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:
  1927. if or3h < 4:
  1928. print("Built a house on New York Avenue!")
  1929. elif or3h == 4:
  1930. print("Built a hotel on New York Avenue!")
  1931. or3h = or3h + 1
  1932. p1m = p1m - 100
  1933. print("You now have $" + str(p1m) + ".\n")
  1934. #Determines how many houses to display
  1935. if or3h == 1:
  1936. h11.shape(house)
  1937. h11.st()
  1938. if or3h == 2:
  1939. h11.shape(house2)
  1940. if or3h == 3:
  1941. h11.shape(house3)
  1942. if or3h == 4:
  1943. h11.shape(house4)
  1944. if or3h == 5:
  1945. h11.shape(hotel)
  1946. else:
  1947. print("Unable to build on New York Avenue.")
  1948. p1hc = "x"
  1949. #If player tries to build house on Kentucky Avenue...
  1950. elif p1hc.lower() == "kentucky avenue":
  1951. 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:
  1952. if red1h < 4:
  1953. print("Built a house on Kentucky Avenue!")
  1954. elif red1h == 4:
  1955. print("Built a hotel on Kentucky Avenue!")
  1956. red1h = red1h + 1
  1957. p1m = p1m - 150
  1958. print("You now have $" + str(p1m) + ".\n")
  1959. #Determines how many houses to display
  1960. if red1h == 1:
  1961. h12.shape(house)
  1962. h12.st()
  1963. if red1h == 2:
  1964. h12.shape(house2)
  1965. if red1h == 3:
  1966. h12.shape(house3)
  1967. if red1h == 4:
  1968. h12.shape(house4)
  1969. if red1h == 5:
  1970. h12.shape(hotel)
  1971. else:
  1972. print("Unable to build on Kentucky Avenue.")
  1973. p1hc = "x"
  1974. #If player tries to build house on Indiana Avenue...
  1975. elif p1hc.lower() == "indiana avenue":
  1976. 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:
  1977. if red2h < 4:
  1978. print("Built a house on Indiana Avenue!")
  1979. elif red2h == 4:
  1980. print("Built a hotel on Indiana Avenue!")
  1981. red2h = red2h + 1
  1982. p1m = p1m - 150
  1983. print("You now have $" + str(p1m) + ".\n")
  1984. #Determines how many houses to display
  1985. if red2h == 1:
  1986. h13.shape(house)
  1987. h13.st()
  1988. if red2h == 2:
  1989. h13.shape(house2)
  1990. if red2h == 3:
  1991. h13.shape(house3)
  1992. if red2h == 4:
  1993. h13.shape(house4)
  1994. if red2h == 5:
  1995. h13.shape(hotel)
  1996. else:
  1997. print("Unable to build on Indiana Avenue.")
  1998. p1hc = "x"
  1999. #If player tries to build house on Illinois Avenue...
  2000. elif p1hc.lower() == "illinois avenue":
  2001. 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:
  2002. if red3h < 4:
  2003. print("Built a house on Illinois Avenue!")
  2004. elif red3h == 4:
  2005. print("Built a hotel on Illinois Avenue!")
  2006. red3h = red3h + 1
  2007. p1m = p1m - 150
  2008. print("You now have $" + str(p1m) + ".\n")
  2009. #Determines how many houses to display
  2010. if red3h == 1:
  2011. h14.shape(house)
  2012. h14.st()
  2013. if red3h == 2:
  2014. h14.shape(house2)
  2015. if red3h == 3:
  2016. h14.shape(house3)
  2017. if red3h == 4:
  2018. h14.shape(house4)
  2019. if red3h == 5:
  2020. h14.shape(hotel)
  2021. else:
  2022. print("Unable to build on Illinois Avenue.")
  2023. p1hc = "x"
  2024. #If player tries to build house on Atlantic Avenue...
  2025. elif p1hc.lower() == "atlantic avenue":
  2026. 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:
  2027. if ye1h < 4:
  2028. print("Built a house on Atlantic Avenue!")
  2029. elif ye1h == 4:
  2030. print("Built a hotel on Atlantic Avenue!")
  2031. ye1h = ye1h + 1
  2032. p1m = p1m - 150
  2033. print("You now have $" + str(p1m) + ".\n")
  2034. #Determines how many houses to display
  2035. if ye1h == 1:
  2036. h15.shape(house)
  2037. h15.st()
  2038. if ye1h == 2:
  2039. h15.shape(house2)
  2040. if ye1h == 3:
  2041. h15.shape(house3)
  2042. if ye1h == 4:
  2043. h15.shape(house4)
  2044. if ye1h == 5:
  2045. h15.shape(hotel)
  2046. else:
  2047. print("Unable to build on Atlantic Avenue.")
  2048. p1hc = "x"
  2049. #If player tries to build house on Ventnor Avenue...
  2050. elif p1hc.lower() == "ventnor avenue":
  2051. 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:
  2052. if ye2h < 4:
  2053. print("Built a house on Ventnor Avenue!")
  2054. elif ye2h == 4:
  2055. print("Built a hotel on Ventnor Avenue!")
  2056. ye2h = ye2h + 1
  2057. p1m = p1m - 150
  2058. print("You now have $" + str(p1m) + ".\n")
  2059. #Determines how many houses to display
  2060. if ye2h == 1:
  2061. h16.shape(house)
  2062. h16.st()
  2063. if ye2h == 2:
  2064. h16.shape(house2)
  2065. if ye2h == 3:
  2066. h16.shape(house3)
  2067. if ye2h == 4:
  2068. h16.shape(house4)
  2069. if ye2h == 5:
  2070. h16.shape(hotel)
  2071. else:
  2072. print("Unable to build on Ventnor Avenue.")
  2073. p1hc = "x"
  2074. #If player tries to build house on Marvin Gardens...
  2075. elif p1hc.lower() == "marvin gardens":
  2076. 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:
  2077. if ye3h < 4:
  2078. print("Built a house on Marvin Gardens!")
  2079. elif ye3h == 4:
  2080. print("Built a hotel on Marvin Gardens!")
  2081. ye3h = ye3h + 1
  2082. p1m = p1m - 150
  2083. print("You now have $" + str(p1m) + ".\n")
  2084. #Determines how many houses to display
  2085. if ye3h == 1:
  2086. h17.shape(house)
  2087. h17.st()
  2088. if ye3h == 2:
  2089. h17.shape(house2)
  2090. if ye3h == 3:
  2091. h17.shape(house3)
  2092. if ye3h == 4:
  2093. h17.shape(house4)
  2094. if ye3h == 5:
  2095. h17.shape(hotel)
  2096. else:
  2097. print("Unable to build on Marvin Gardens.")
  2098. p1hc = "x"
  2099. #If player tries to build house on Pacific Avenue...
  2100. elif p1hc.lower() == "pacific avenue":
  2101. 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:
  2102. if gr1h < 4:
  2103. print("Built a house on Pacific Avenue!")
  2104. elif gr1h == 4:
  2105. print("Built a hotel on Pacific Avenue!")
  2106. gr1h = gr1h + 1
  2107. p1m = p1m - 200
  2108. print("You now have $" + str(p1m) + ".\n")
  2109. #Determines how many houses to display
  2110. if gr1h == 1:
  2111. h18.shape(house)
  2112. h18.st()
  2113. if gr1h == 2:
  2114. h18.shape(house2)
  2115. if gr1h == 3:
  2116. h18.shape(house3)
  2117. if gr1h == 4:
  2118. h18.shape(house4)
  2119. if gr1h == 5:
  2120. h18.shape(hotel)
  2121. else:
  2122. print("Unable to build on Pacific Avenue.")
  2123. p1hc = "x"
  2124. #If player tries to build house on North Carolina Avenue...
  2125. elif p1hc.lower() == "north carolina avenue":
  2126. 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:
  2127. if gr2h < 4:
  2128. print("Built a house on North Carolina Avenue!")
  2129. elif gr2h == 4:
  2130. print("Built a hotel on North Carolina Avenue!")
  2131. gr2h = gr2h + 1
  2132. p1m = p1m - 200
  2133. print("You now have $" + str(p1m) + ".\n")
  2134. #Determines how many houses to display
  2135. if gr2h == 1:
  2136. h19.shape(house)
  2137. h19.st()
  2138. if gr2h == 2:
  2139. h19.shape(house2)
  2140. if gr2h == 3:
  2141. h19.shape(house3)
  2142. if gr2h == 4:
  2143. h19.shape(house4)
  2144. if gr2h == 5:
  2145. h19.shape(hotel)
  2146. else:
  2147. print("Unable to build on North Carolina Avenue.")
  2148. p1hc = "x"
  2149. #If player tries to build house on Pennsylvania Avenue...
  2150. elif p1hc.lower() == "pennsylvania avenue":
  2151. 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:
  2152. if gr3h < 4:
  2153. print("Built a house on Pennsylvania Avenue!")
  2154. elif gr3h == 4:
  2155. print("Built a hotel on Pennsylvania Avenue!")
  2156. gr3h = gr3h + 1
  2157. p1m = p1m - 200
  2158. print("You now have $" + str(p1m) + ".\n")
  2159. #Determines how many houses to display
  2160. if gr3h == 1:
  2161. h20.shape(house)
  2162. h20.st()
  2163. if gr3h == 2:
  2164. h20.shape(house2)
  2165. if gr3h == 3:
  2166. h20.shape(house3)
  2167. if gr3h == 4:
  2168. h20.shape(house4)
  2169. if gr3h == 5:
  2170. h20.shape(hotel)
  2171. else:
  2172. print("Unable to build on Pennsylvania Avenue.")
  2173. p1hc = "x"
  2174. #If player tries to build house on Park Place...
  2175. elif p1hc.lower() == "park place":
  2176. if p1m >= 200 and bl1 == 1 and bl2 == 1 and bl1m == 0 and bl2m == 0 and bl1h <= bl2h and bl1h < 5:
  2177. if bl1h < 4:
  2178. print("Built a house on Park Place!")
  2179. elif bl1h == 4:
  2180. print("Built a hotel on Park Place!")
  2181. bl1h = bl1h + 1
  2182. p1m = p1m - 200
  2183. print("You now have $" + str(p1m) + ".\n")
  2184. #Determines how many houses to display
  2185. if bl1h == 1:
  2186. h21.shape(house)
  2187. h21.st()
  2188. if bl1h == 2:
  2189. h21.shape(house2)
  2190. if bl1h == 3:
  2191. h21.shape(house3)
  2192. if bl1h == 4:
  2193. h21.shape(house4)
  2194. if bl1h == 5:
  2195. h21.shape(hotel)
  2196. else:
  2197. print("Unable to build on Park Place.")
  2198. p1hc = "x"
  2199. #If player tries to build house on Boardwalk...
  2200. elif p1hc.lower() == "boardwalk":
  2201. if p1m >= 200 and bl1 == 1 and bl2 == 1 and bl1m == 0 and bl2m == 0 and bl2h <= bl1h and bl2h < 5:
  2202. if bl2h < 4:
  2203. print("Built a house on Boardwalk!")
  2204. elif bl2h == 4:
  2205. print("Built a hotel on Boardwalk!")
  2206. bl2h = bl2h + 1
  2207. p1m = p1m - 200
  2208. print("You now have $" + str(p1m) + ".\n")
  2209. #Determines how many houses to display
  2210. if bl2h == 1:
  2211. h22.shape(house)
  2212. h22.st()
  2213. if bl2h == 2:
  2214. h22.shape(house2)
  2215. if bl2h == 3:
  2216. h22.shape(house3)
  2217. if bl2h == 4:
  2218. h22.shape(house4)
  2219. if bl2h == 5:
  2220. h22.shape(hotel)
  2221. else:
  2222. print("Unable to build on Boardwalk.")
  2223. p1hc = "x"
  2224. #If player is done building houses
  2225. elif p1hc.lower() == "done":
  2226. print("Now then...")
  2227. #If player enters an invalid response...
  2228. else:
  2229. print("Invalid response.")
  2230. p1c = "x"
  2231. print()
  2232. #If player chooses to sell houses...
  2233. elif p1c.lower() == "s" or p1c.lower() == "v" or p1c.lower() == "v.":
  2234. p1hc = "x"
  2235. #Huge friggin' house-selling while loop
  2236. 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":
  2237. print("Sell a house on which property?")
  2238. print("``````````````````````````")
  2239. if br1 == 1 and br1h >= br2h and br1h > 0:
  2240. print("Mediterranean Avenue ($25)")
  2241. if br2 == 1 and br2h >= br1h and br2h > 0:
  2242. print("Baltic Avenue ($25)")
  2243. if cy1 == 1 and cy1h >= cy2h and cy1h >= cy3h and cy1h > 0:
  2244. print("Oriental Avenue ($25)")
  2245. if cy2 == 1 and cy2h >= cy1h and cy2h >= cy3h and cy2h > 0:
  2246. print("Vermont Avenue ($25)")
  2247. if cy3 == 1 and cy3h >= cy1h and cy3h >= cy2h and cy3h > 0:
  2248. print("Connecticut Avenue ($25)")
  2249. if vi1 == 1 and vi1h >= vi2h and vi1h >= vi3h and vi1h > 0:
  2250. print("St. Charles Place ($50)")
  2251. if vi2 == 1 and vi2h >= vi1h and vi2h >= vi3h and vi2h > 0:
  2252. print("States Avenue ($50)")
  2253. if vi3 == 1 and vi3h >= vi1h and vi3h >= vi2h and vi3h > 0:
  2254. print("Virginia Avenue ($50)")
  2255. if or1 == 1 and or1h >= or2h and or1h >= or3h and or1h > 0:
  2256. print("St. James Place ($50)")
  2257. if or2 == 1 and or2h >= or1h and or2h >= or3h and or2h > 0:
  2258. print("Tennessee Avenue ($50)")
  2259. if or3 == 1 and or3h >= or1h and or3h >= or2h and or3h > 0:
  2260. print("New York Avenue ($50)")
  2261. if red1 == 1 and red1h >= red2h and red1h >= red3h and red1h > 0:
  2262. print("Kentucky Avenue ($75)")
  2263. if red2 == 1 and red2h >= red1h and red2h >= red3h and red2h > 0:
  2264. print("Indiana Avenue ($75)")
  2265. if red3 == 1 and red3h >= red1h and red3h >= red2h and red3h > 0:
  2266. print("Illinois Avenue ($75)")
  2267. if ye1 == 1 and ye1h >= ye2h and ye1h >= ye3h and ye1h > 0:
  2268. print("Atlantic Avenue ($75)")
  2269. if ye2 == 1 and ye2h >= ye1h and ye2h >= ye3h and ye2h > 0:
  2270. print("Ventnor Avenue ($75)")
  2271. if ye3 == 1 and ye3h >= ye1h and ye3h >= ye2h and ye3h > 0:
  2272. print("Marvin Gardens ($75)")
  2273. if gr1 == 1 and gr1h >= gr2h and gr1h >= gr3h and gr1h > 0:
  2274. print("Pacific Avenue ($100)")
  2275. if gr2 == 1 and gr2h >= gr1h and gr2h >= gr3h and gr2h > 0:
  2276. print("North Carolina Avenue ($100)")
  2277. if gr3 == 1 and gr3h >= gr1h and gr3h >= gr2h and gr3h > 0:
  2278. print("Pennsylvania Avenue ($100)")
  2279. if bl1 == 1 and bl1h >= bl2h and bl1h > 0:
  2280. print("Park Place ($100)")
  2281. if bl2 == 1 and bl2h >= bl1h and bl2h > 0:
  2282. print("Boardwalk ($100)")
  2283. print("``````````````````````````")
  2284. print("(Type 'Done' to finish)")
  2285. p1hc = input()
  2286. print()
  2287. #If player tries to sell house on Mediterranean Avenue...
  2288. if p1hc.lower() == "mediterranean avenue":
  2289. if br1 == 1 and br1h >= br2h and br1h > 0:
  2290. print("Sold house on Mediterranean Avenue!")
  2291. if br1h == 5:
  2292. h1.shape(house4)
  2293. if br1h == 4:
  2294. h1.shape(house3)
  2295. if br1h == 3:
  2296. h1.shape(house2)
  2297. if br1h == 2:
  2298. h1.shape(house)
  2299. if br1h == 1:
  2300. h1.ht()
  2301. br1h = br1h - 1
  2302. p1m = p1m + 25
  2303. print("You now have $" + str(p1m) + ".\n")
  2304. else:
  2305. print("Couldn't sell house on Mediterranean Avenue.")
  2306. p1hc = "x"
  2307. #If player tries to sell house on Baltic Avenue...
  2308. elif p1hc.lower() == "baltic avenue":
  2309. if br2 == 1 and br2h >= br1h and br2h > 0:
  2310. print("Sold house on Baltic Avenue!")
  2311. if br2h == 5:
  2312. h2.shape(house4)
  2313. if br2h == 4:
  2314. h2.shape(house3)
  2315. if br2h == 3:
  2316. h2.shape(house2)
  2317. if br2h == 2:
  2318. h2.shape(house)
  2319. if br2h == 1:
  2320. h2.ht()
  2321. br2h = br2h - 1
  2322. p1m = p1m + 25
  2323. print("You now have $" + str(p1m) + ".\n")
  2324. else:
  2325. print("Couldn't sell house on Baltic Avenue.")
  2326. p1hc = "x"
  2327. #If player tries to sell house on Oriental Avenue...
  2328. elif p1hc.lower() == "oriental avenue":
  2329. if cy1 == 1 and cy1h >= cy2h and cy1h >= cy3h and cy1h > 0:
  2330. print("Sold house on Oriental Avenue!")
  2331. if cy1h == 5:
  2332. h3.shape(house4)
  2333. if cy1h == 4:
  2334. h3.shape(house3)
  2335. if cy1h == 3:
  2336. h3.shape(house2)
  2337. if cy1h == 2:
  2338. h3.shape(house)
  2339. if cy1h == 1:
  2340. h3.ht()
  2341. cy1h = cy1h - 1
  2342. p1m = p1m + 25
  2343. print("You now have $" + str(p1m) + ".\n")
  2344. else:
  2345. print("Couldn't sell house on Oriental Avenue.")
  2346. p1hc = "x"
  2347. #If player tries to sell house on Vermont Avenue...
  2348. elif p1hc.lower() == "vermont avenue":
  2349. if cy2 == 1 and cy2h >= cy1h and cy2h >= cy3h and cy2h > 0:
  2350. print("Sold house on Vermont Avenue!")
  2351. if cy2h == 5:
  2352. h4.shape(house4)
  2353. if cy2h == 4:
  2354. h4.shape(house3)
  2355. if cy2h == 3:
  2356. h4.shape(house2)
  2357. if cy2h == 2:
  2358. h4.shape(house)
  2359. if cy2h == 1:
  2360. h4.ht()
  2361. cy2h = cy2h - 1
  2362. p1m = p1m + 25
  2363. print("You now have $" + str(p1m) + ".\n")
  2364. else:
  2365. print("Couldn't sell house on Vermont Avenue.")
  2366. p1hc = "x"
  2367. #If player tries to sell house on Connecticut Avenue...
  2368. elif p1hc.lower() == "connecticut avenue":
  2369. if cy3 == 1 and cy3h >= cy1h and cy3h >= cy2h and cy3h > 0:
  2370. print("Sold house on Connecticut Avenue!")
  2371. if cy3h == 5:
  2372. h5.shape(house4)
  2373. if cy3h == 4:
  2374. h5.shape(house3)
  2375. if cy3h == 3:
  2376. h5.shape(house2)
  2377. if cy3h == 2:
  2378. h5.shape(house)
  2379. if cy3h == 1:
  2380. h5.ht()
  2381. cy3h = cy3h - 1
  2382. p1m = p1m + 25
  2383. print("You now have $" + str(p1m) + ".\n")
  2384. else:
  2385. print("Couldn't sell house on Connecticut Avenue.")
  2386. p1hc = "x"
  2387. #If player tries to sell house on St. Charles Place...
  2388. elif p1hc.lower() == "st. charles place":
  2389. if vi1 == 1 and vi1h >= vi2h and vi1h >= vi3h and vi1h > 0:
  2390. print("Sold house on St. Charles Place!")
  2391. if vi1h == 5:
  2392. h6.shape(house4)
  2393. if vi1h == 4:
  2394. h6.shape(house3)
  2395. if vi1h == 3:
  2396. h6.shape(house2)
  2397. if vi1h == 2:
  2398. h6.shape(house)
  2399. if vi1h == 1:
  2400. h6.ht()
  2401. vi1h = vi1h - 1
  2402. p1m = p1m + 50
  2403. print("You now have $" + str(p1m) + ".\n")
  2404. else:
  2405. print("Couldn't sell house on St. Charles Place.")
  2406. p1hc = "x"
  2407. #If player tries to sell house on States Avenue...
  2408. elif p1hc.lower() == "states avenue":
  2409. if vi2 == 1 and vi2h >= vi1h and vi2h >= vi3h and vi2h > 0:
  2410. print("Sold house on States Avenue!")
  2411. if vi2h == 5:
  2412. h7.shape(house4)
  2413. if vi2h == 4:
  2414. h7.shape(house3)
  2415. if vi2h == 3:
  2416. h7.shape(house2)
  2417. if vi2h == 2:
  2418. h7.shape(house)
  2419. if vi2h == 1:
  2420. h7.ht()
  2421. vi2h = vi2h - 1
  2422. p1m = p1m + 50
  2423. print("You now have $" + str(p1m) + ".\n")
  2424. else:
  2425. print("Couldn't sell house on States Avenue.")
  2426. p1hc = "x"
  2427. #If player tries to sell house on Virginia Avenue...
  2428. elif p1hc.lower() == "virginia avenue":
  2429. if vi3 == 1 and vi3h >= vi1h and vi3h >= vi2h and vi3h > 0:
  2430. print("Sold house on Virginia Avenue!")
  2431. if vi3h == 5:
  2432. h8.shape(house4)
  2433. if vi3h == 4:
  2434. h8.shape(house3)
  2435. if vi3h == 3:
  2436. h8.shape(house2)
  2437. if vi3h == 2:
  2438. h8.shape(house)
  2439. if vi3h == 1:
  2440. h8.ht()
  2441. vi3h = vi3h - 1
  2442. p1m = p1m + 50
  2443. print("You now have $" + str(p1m) + ".\n")
  2444. else:
  2445. print("Couldn't sell house on Virginia Avenue.")
  2446. p1hc = "x"
  2447. #If player tries to sell house on St. James Place...
  2448. elif p1hc.lower() == "st. james place":
  2449. if or1 == 1 and or1h >= or2h and or1h >= or3h and or1h > 0:
  2450. print("Sold house on St. James Place!")
  2451. if or1h == 5:
  2452. h9.shape(house4)
  2453. if or1h == 4:
  2454. h9.shape(house3)
  2455. if or1h == 3:
  2456. h9.shape(house2)
  2457. if or1h == 2:
  2458. h9.shape(house)
  2459. if or1h == 1:
  2460. h9.ht()
  2461. or1h = or1h - 1
  2462. p1m = p1m + 50
  2463. print("You now have $" + str(p1m) + ".\n")
  2464. else:
  2465. print("Couldn't sell house on St. James Place.")
  2466. p1hc = "x"
  2467. #If player tries to sell house on Tennessee Avenue...
  2468. elif p1hc.lower() == "tennessee avenue":
  2469. if or2 == 1 and or2h >= or1h and or2h >= or3h and or2h > 0:
  2470. print("Sold house on Tennessee Avenue!")
  2471. if or2h == 5:
  2472. h10.shape(house4)
  2473. if or2h == 4:
  2474. h10.shape(house3)
  2475. if or2h == 3:
  2476. h10.shape(house2)
  2477. if or2h == 2:
  2478. h10.shape(house)
  2479. if or2h == 1:
  2480. h10.ht()
  2481. or2h = or2h - 1
  2482. p1m = p1m + 50
  2483. print("You now have $" + str(p1m) + ".\n")
  2484. else:
  2485. print("Couldn't sell house on Tennessee Avenue.")
  2486. p1hc = "x"
  2487. #If player tries to sell house on New York Avenue...
  2488. elif p1hc.lower() == "new york avenue":
  2489. if or3 == 1 and or3h >= or1h and or3h >= or2h and or3h > 0:
  2490. print("Sold house on New York Avenue!")
  2491. if or3h == 5:
  2492. h11.shape(house4)
  2493. if or3h == 4:
  2494. h11.shape(house3)
  2495. if or3h == 3:
  2496. h11.shape(house2)
  2497. if or3h == 2:
  2498. h11.shape(house)
  2499. if or3h == 1:
  2500. h11.ht()
  2501. or3h = or3h - 1
  2502. p1m = p1m + 50
  2503. print("You now have $" + str(p1m) + ".\n")
  2504. else:
  2505. print("Couldn't sell house on New York Avenue.")
  2506. p1hc = "x"
  2507. #If player tries to sell house on Kentucky Avenue...
  2508. elif p1hc.lower() == "kentucky avenue":
  2509. if red1 == 1 and red1h >= red2h and red1h >= red3h and red1h > 0:
  2510. print("Sold house on Kentucky Avenue!")
  2511. if red1h == 5:
  2512. h12.shape(house4)
  2513. if red1h == 4:
  2514. h12.shape(house3)
  2515. if red1h == 3:
  2516. h12.shape(house2)
  2517. if red1h == 2:
  2518. h12.shape(house)
  2519. if red1h == 1:
  2520. h12.ht()
  2521. red1h = red1h - 1
  2522. p1m = p1m + 75
  2523. print("You now have $" + str(p1m) + ".\n")
  2524. else:
  2525. print("Couldn't sell house on Kentucky Avenue.")
  2526. p1hc = "x"
  2527. #If player tries to sell house on Indiana Avenue...
  2528. elif p1hc.lower() == "indiana avenue":
  2529. if red2 == 1 and red2h >= red1h and red2h >= red3h and red2h > 0:
  2530. print("Sold house on Indiana Avenue!")
  2531. if red2h == 5:
  2532. h13.shape(house4)
  2533. if red2h == 4:
  2534. h13.shape(house3)
  2535. if red2h == 3:
  2536. h13.shape(house2)
  2537. if red2h == 2:
  2538. h13.shape(house)
  2539. if red2h == 1:
  2540. h13.ht()
  2541. red2h = red2h - 1
  2542. p1m = p1m + 75
  2543. print("You now have $" + str(p1m) + ".\n")
  2544. else:
  2545. print("Couldn't sell house on Indiana Avenue.")
  2546. p1hc = "x"
  2547. #If player tries to sell house on Illinois Avenue...
  2548. elif p1hc.lower() == "illinois avenue":
  2549. if red3 == 1 and red3h >= red1h and red3h >= red2h and red3h > 0:
  2550. print("Sold house on Illinois Avenue!")
  2551. if red3h == 5:
  2552. h14.shape(house4)
  2553. if red3h == 4:
  2554. h14.shape(house3)
  2555. if red3h == 3:
  2556. h14.shape(house2)
  2557. if red3h == 2:
  2558. h14.shape(house)
  2559. if red3h == 1:
  2560. h14.ht()
  2561. red3h = red3h - 1
  2562. p1m = p1m + 75
  2563. print("You now have $" + str(p1m) + ".\n")
  2564. else:
  2565. print("Couldn't sell house on Illinois Avenue.")
  2566. p1hc = "x"
  2567. #If player tries to sell house on Atlantic Avenue...
  2568. elif p1hc.lower() == "atlantic avenue":
  2569. if ye1 == 1 and ye1h >= ye2h and ye1h >= ye3h and ye1h > 0:
  2570. print("Sold house on Atlantic Avenue!")
  2571. if ye1h == 5:
  2572. h15.shape(house4)
  2573. if ye1h == 4:
  2574. h15.shape(house3)
  2575. if ye1h == 3:
  2576. h15.shape(house2)
  2577. if ye1h == 2:
  2578. h15.shape(house)
  2579. if ye1h == 1:
  2580. h15.ht()
  2581. ye1h = ye1h - 1
  2582. p1m = p1m + 75
  2583. print("You now have $" + str(p1m) + ".\n")
  2584. else:
  2585. print("Couldn't sell house on Atlantic Avenue.")
  2586. p1hc = "x"
  2587. #If player tries to sell house on Ventnor Avenue...
  2588. elif p1hc.lower() == "ventnor avenue":
  2589. if ye2 == 1 and ye2h >= ye1h and ye2h >= ye3h and ye2h > 0:
  2590. print("Sold house on Ventnor Avenue!")
  2591. if ye2h == 5:
  2592. h16.shape(house4)
  2593. if ye2h == 4:
  2594. h16.shape(house3)
  2595. if ye2h == 3:
  2596. h16.shape(house2)
  2597. if ye2h == 2:
  2598. h16.shape(house)
  2599. if ye2h == 1:
  2600. h16.ht()
  2601. ye2h = ye2h - 1
  2602. p1m = p1m + 75
  2603. print("You now have $" + str(p1m) + ".\n")
  2604. else:
  2605. print("Couldn't sell house on Ventnor Avenue.")
  2606. p1hc = "x"
  2607. #If player tries to sell house on Marvin Gardens...
  2608. elif p1hc.lower() == "marvin gardens":
  2609. if ye3 == 1 and ye3h >= ye1h and ye3h >= ye2h and ye3h > 0:
  2610. print("Sold house on Marvin Gardens!")
  2611. if ye3h == 5:
  2612. h17.shape(house4)
  2613. if ye3h == 4:
  2614. h17.shape(house3)
  2615. if ye3h == 3:
  2616. h17.shape(house2)
  2617. if ye3h == 2:
  2618. h17.shape(house)
  2619. if ye3h == 1:
  2620. h17.ht()
  2621. ye3h = ye3h - 1
  2622. p1m = p1m + 75
  2623. print("You now have $" + str(p1m) + ".\n")
  2624. else:
  2625. print("Couldn't sell house on Marvin Gardens.")
  2626. p1hc = "x"
  2627. #If player tries to sell house on Pacific Avenue...
  2628. elif p1hc.lower() == "pacific avenue":
  2629. if gr1 == 1 and gr1h >= gr2h and gr1h >= gr3h and gr1h > 0:
  2630. print("Sold house on Pacific Avenue!")
  2631. if gr1h == 5:
  2632. h18.shape(house4)
  2633. if gr1h == 4:
  2634. h18.shape(house3)
  2635. if gr1h == 3:
  2636. h18.shape(house2)
  2637. if gr1h == 2:
  2638. h18.shape(house)
  2639. if gr1h == 1:
  2640. h18.ht()
  2641. gr1h = gr1h - 1
  2642. p1m = p1m + 100
  2643. print("You now have $" + str(p1m) + ".\n")
  2644. else:
  2645. print("Couldn't sell house on Pacific Avenue.")
  2646. p1hc = "x"
  2647. #If player tries to sell house on North Carolina Avenue...
  2648. elif p1hc.lower() == "north carolina avenue":
  2649. if gr2 == 1 and gr2h >= gr1h and gr2h >= gr3h and gr2h > 0:
  2650. print("Sold house on North Carolina Avenue!")
  2651. if gr2h == 5:
  2652. h19.shape(house4)
  2653. if gr2h == 4:
  2654. h19.shape(house3)
  2655. if gr2h == 3:
  2656. h19.shape(house2)
  2657. if gr2h == 2:
  2658. h19.shape(house)
  2659. if gr2h == 1:
  2660. h19.ht()
  2661. gr2h = gr2h - 1
  2662. p1m = p1m + 100
  2663. print("You now have $" + str(p1m) + ".\n")
  2664. else:
  2665. print("Couldn't sell house on North Carolina Avenue.")
  2666. p1hc = "x"
  2667. #If player tries to sell house on Pennsylvania Avenue...
  2668. elif p1hc.lower() == "pennsylvania avenue":
  2669. if gr3 == 1 and gr3h >= gr1h and gr3h >= gr2h and gr3h > 0:
  2670. print("Sold house on Pennsylvania Avenue!")
  2671. if gr3h == 5:
  2672. h20.shape(house4)
  2673. if gr3h == 4:
  2674. h20.shape(house3)
  2675. if gr3h == 3:
  2676. h20.shape(house2)
  2677. if gr3h == 2:
  2678. h20.shape(house)
  2679. if gr3h == 1:
  2680. h20.ht()
  2681. gr3h = gr3h - 1
  2682. p1m = p1m + 100
  2683. print("You now have $" + str(p1m) + ".\n")
  2684. else:
  2685. print("Couldn't sell house on Pennsylvania Avenue.")
  2686. p1hc = "x"
  2687. #If player tries to sell house on Park Place...
  2688. elif p1hc.lower() == "park place":
  2689. if bl1 == 1 and bl1h >= bl2h and bl1h > 0:
  2690. print("Sold house on Park Place!")
  2691. if bl1h == 5:
  2692. h21.shape(house4)
  2693. if bl1h == 4:
  2694. h21.shape(house3)
  2695. if bl1h == 3:
  2696. h21.shape(house2)
  2697. if bl1h == 2:
  2698. h21.shape(house)
  2699. if bl1h == 1:
  2700. h21.ht()
  2701. bl1h = bl1h - 1
  2702. p1m = p1m + 100
  2703. print("You now have $" + str(p1m) + ".\n")
  2704. else:
  2705. print("Couldn't sell house on Park Place.")
  2706. p1hc = "x"
  2707. #If player tries to sell house on Boardwalk...
  2708. elif p1hc.lower() == "boardwalk":
  2709. if bl2 == 1 and bl2h >= bl1h and bl2h > 0:
  2710. print("Sold house on Boardwalk!")
  2711. if bl2h == 5:
  2712. h22.shape(house4)
  2713. if bl2h == 4:
  2714. h22.shape(house3)
  2715. if bl2h == 3:
  2716. h22.shape(house2)
  2717. if bl2h == 2:
  2718. h22.shape(house)
  2719. if bl2h == 1:
  2720. h22.ht()
  2721. bl2h = bl2h - 1
  2722. p1m = p1m + 100
  2723. print("You now have $" + str(p1m) + ".\n")
  2724. else:
  2725. print("Couldn't sell house on Boardwalk.")
  2726. p1hc = "x"
  2727. #If player is done selling houses...
  2728. elif p1hc.lower() == "done":
  2729. print("Now then...")
  2730. #If player enters an invalid response...
  2731. else:
  2732. print("Invalid response.")
  2733. p1c = "x"
  2734. print()
  2735. #If player chooses to trade...
  2736. elif p1c.lower() == "t" or p1c.lower() == "vi" or p1c.lower() == "vi.":
  2737. trd1 = 0
  2738. p1tc = "x"
  2739. #Huge friggin' trading while loop
  2740. 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":
  2741. print("Trade which property to", p2 + "?")
  2742. print("````````````````````````````````````````````````````````")
  2743. if br1 == 1 and br1h == 0 and br2h == 0:
  2744. print("Mediterranean Avenue")
  2745. if br2 == 1 and br1h == 0 and br2h == 0:
  2746. print("Baltic Avenue")
  2747. if cy1 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  2748. print("Oriental Avenue")
  2749. if cy2 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  2750. print("Vermont Avenue")
  2751. if cy3 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  2752. print("Connecticut Avenue")
  2753. if vi1 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  2754. print("St. Charles Place")
  2755. if vi2 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  2756. print("States Avenue")
  2757. if vi3 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  2758. print("Virginia Avenue")
  2759. if or1 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
  2760. print("St. James Place")
  2761. if or2 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
  2762. print("Tennessee Avenue")
  2763. if or3 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
  2764. print("New York Avenue")
  2765. if red1 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
  2766. print("Kentucky Avenue")
  2767. if red2 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
  2768. print("Indiana Avenue")
  2769. if red3 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
  2770. print("Illinois Avenue")
  2771. if ye1 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  2772. print("Atlantic Avenue")
  2773. if ye2 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  2774. print("Ventnor Avenue")
  2775. if ye3 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  2776. print("Marvin Gardens")
  2777. if gr1 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  2778. print("Pacific Avenue")
  2779. if gr2 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  2780. print("North Carolina Avenue")
  2781. if gr3 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  2782. print("Pennsylvania Avenue")
  2783. if bl1 == 1 and bl1h == 0 and bl2h == 0:
  2784. print("Park Place")
  2785. if bl2 == 1 and bl1h == 0 and bl2h == 0:
  2786. print("Boardwalk")
  2787. if rrr == 1:
  2788. print("Reading Railroad")
  2789. if prr == 1:
  2790. print("Pennsylvania Railroad")
  2791. if brr == 1:
  2792. print("B. & O. Railroad")
  2793. if srr == 1:
  2794. print("Short Line")
  2795. if ec == 1:
  2796. print("Electric Company")
  2797. if ww == 1:
  2798. print("Water Works")
  2799. print("````````````````````````````````````````````````````````")
  2800. print("(Type 'Done' to cancel, or 'N/A' if trading no property)")
  2801. p1tc = input()
  2802. #If player tries to trade Mediterranean Avenue...
  2803. if p1tc.lower() == "mediterranean avenue":
  2804. if br1 == 1 and br1h == 0 and br2h == 0:
  2805. print("Added", p1 + "'s Mediterranean Avenue to trade.")
  2806. trd1 = 1
  2807. #If player tries to trade Baltic Avenue...
  2808. elif p1tc.lower() == "baltic avenue":
  2809. if br2 == 1 and br1h == 0 and br2h == 0:
  2810. print("Added", p1 + "'s Baltic Avenue to trade.")
  2811. trd1 = 2
  2812. #If player tries to trade Oriental Avenue...
  2813. elif p1tc.lower() == "oriental avenue":
  2814. if cy1 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  2815. print("Added", p1 + "'s Oriental Avenue to trade.")
  2816. trd1 = 3
  2817. #If player tries to trade Vermont Avenue...
  2818. elif p1tc.lower() == "vermont avenue":
  2819. if cy2 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  2820. print("Added", p1 + "'s Vermont Avenue to trade.")
  2821. trd1 = 4
  2822. #If player tries to trade Connecticut Avenue...
  2823. elif p1tc.lower() == "connecticut avenue":
  2824. if cy3 == 1 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  2825. print("Added", p1 + "'s Connecticut Avenue to trade.")
  2826. trd1 = 5
  2827. #If player tries to trade St. Charles Place...
  2828. elif p1tc.lower() == "st. charles place":
  2829. if vi1 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  2830. print("Added", p1 + "'s St. Charles Place to trade.")
  2831. trd1 = 6
  2832. #If player tries to trade States Avenue...
  2833. elif p1tc.lower() == "states avenue":
  2834. if vi2 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  2835. print("Added", p1 + "'s States Avenue to trade.")
  2836. trd1 = 7
  2837. #If player tries to trade Virginia Avenue...
  2838. elif p1tc.lower() == "virginia avenue":
  2839. if vi3 == 1 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  2840. print("Added", p1 + "'s Virginia Avenue to trade.")
  2841. trd1 = 8
  2842. #If player tries to trade St. James Place...
  2843. elif p1tc.lower() == "st. james place":
  2844. if or1 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
  2845. print("Added", p1 + "'s St. James Place to trade.")
  2846. trd1 = 9
  2847. #If player tries to trade Tennessee Avenue...
  2848. elif p1tc.lower() == "tennessee avenue":
  2849. if or2 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
  2850. print("Added", p1 + "'s Tennessee Avenue to trade.")
  2851. trd1 = 10
  2852. #If player tries to trade New York Avenue...
  2853. elif p1tc.lower() == "new york avenue":
  2854. if or3 == 1 and or1h == 0 and or2h == 0 and or3h == 0:
  2855. print("Added", p1 + "'s New York Avenue to trade.")
  2856. trd1 = 11
  2857. #If player tries to trade Kentucky Avenue...
  2858. elif p1tc.lower() == "kentucky avenue":
  2859. if red1 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
  2860. print("Added", p1 + "'s Kentucky Avenue to trade.")
  2861. trd1 = 12
  2862. #If player tries to trade Indiana Avenue...
  2863. elif p1tc.lower() == "indiana avenue":
  2864. if red2 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
  2865. print("Added", p1 + "'s Indiana Avenue to trade.")
  2866. trd1 = 13
  2867. #If player tries to trade Illinois Avenue...
  2868. elif p1tc.lower() == "illinois avenue":
  2869. if red3 == 1 and red1h == 0 and red2h == 0 and red3h == 0:
  2870. print("Added", p1 + "'s Illinois Avenue to trade.")
  2871. trd1 = 14
  2872. #If player tries to trade Atlantic Avenue...
  2873. elif p1tc.lower() == "atlantic avenue":
  2874. if ye1 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  2875. print("Added", p1 + "'s Atlantic Avenue to trade.")
  2876. trd1 = 15
  2877. #If player tries to trade Ventnor Avenue...
  2878. elif p1tc.lower() == "ventnor avenue":
  2879. if ye2 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  2880. print("Added", p1 + "'s Ventnor Avenue to trade.")
  2881. trd1 = 16
  2882. #If player tries to trade Marvin Gardens...
  2883. elif p1tc.lower() == "marvin gardens":
  2884. if ye3 == 1 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  2885. print("Added", p1 + "'s Marvin Gardens to trade.")
  2886. trd1 = 17
  2887. #If player tries to trade Pacific Avenue...
  2888. elif p1tc.lower() == "pacific avenue":
  2889. if gr1 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  2890. print("Added", p1 + "'s Pacific Avenue to trade.")
  2891. trd1 = 18
  2892. #If player tries to trade North Carolina Avenue...
  2893. elif p1tc.lower() == "north carolina avenue":
  2894. if gr2 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  2895. print("Added", p1 + "'s North Carolina Avenue to trade.")
  2896. trd1 = 19
  2897. #If player tries to trade Pennsylvania Avenue...
  2898. elif p1tc.lower() == "pennsylvania avenue":
  2899. if gr3 == 1 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  2900. print("Added", p1 + "'s Pennsylvania Avenue to trade.")
  2901. trd1 = 20
  2902. #If player tries to trade Park Place...
  2903. elif p1tc.lower() == "park place":
  2904. if bl1 == 1 and bl1h == 0 and bl2h == 0:
  2905. print("Added", p1 + "'s Park Place to trade.")
  2906. trd1 = 21
  2907. #If player tries to trade Boardwalk...
  2908. elif p1tc.lower() == "boardwalk":
  2909. if bl2 == 1 and bl1h == 0 and bl2h == 0:
  2910. print("Added", p1 + "'s Boardwalk to trade.")
  2911. trd1 = 22
  2912. #If player tries to trade Reading Railroad...
  2913. elif p1tc.lower() == "reading railroad":
  2914. if rrr == 1:
  2915. print("Added", p1 + "'s Reading Railroad to trade.")
  2916. trd1 = 23
  2917. #If player tries to trade Pennsylvania Railroad...
  2918. elif p1tc.lower() == "pennsylvania railroad":
  2919. if prr == 1:
  2920. print("Added", p1 + "'s Pennsylvania Railroad to trade.")
  2921. trd1 = 24
  2922. #If player tries to trade B. & O. Railroad...
  2923. elif p1tc.lower() == "b. & o. railroad":
  2924. if brr == 1:
  2925. print("Added", p1 + "'s B. & O. Railroad to trade.")
  2926. trd1 = 25
  2927. #If player tries to trade Short Line...
  2928. elif p1tc.lower() == "short line":
  2929. if srr == 1:
  2930. print("Added", p1 + "'s Short Line to trade.")
  2931. trd1 = 26
  2932. #If player tries to trade Electric Company...
  2933. elif p1tc.lower() == "electric company":
  2934. if ec == 1:
  2935. print("Added", p1 + "'s Electric Company to trade.")
  2936. trd1 = 27
  2937. #If player tries to trade Water Works...
  2938. elif p1tc.lower() == "water works":
  2939. if ww == 1:
  2940. print("Added", p1 + "'s Water Works to trade.")
  2941. trd1 = 28
  2942. #If player tries to trade no property...
  2943. elif p1tc.lower() == "n/a":
  2944. print("Added no property to trade.")
  2945. trd1 = -1
  2946. #If player is done trading...
  2947. elif p1tc.lower() == "done":
  2948. print("\nNow then...")
  2949. #If player enters an invalid answer...
  2950. else:
  2951. print("Invalid response.")
  2952. #When player is prompted to trade money to opponent...
  2953. if trd1 != 0:
  2954. trd1m = -1
  2955. while trd1m == -1:
  2956. print("\nTrade how much money to", p2 + "?")
  2957. trd1m = int(input())
  2958. if p1m >= trd1m:
  2959. print("Added $" + str(trd1m), "to trade.")
  2960. else:
  2961. print("Can not add $" + str(trd1m), "to trade; insufficient funds.")
  2962. trd1m = -1
  2963. #When player requests property from opponent...
  2964. p1tcc = "x"
  2965. 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":
  2966. print("\nNow, what property do you want from", p2 + "?")
  2967. print("````````````````````````````````````````````````````````")
  2968. if br1 == 2 and br1h == 0 and br2h == 0:
  2969. print("Mediterranean Avenue")
  2970. if br2 == 2 and br1h == 0 and br2h == 0:
  2971. print("Baltic Avenue")
  2972. if cy1 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  2973. print("Oriental Avenue")
  2974. if cy2 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  2975. print("Vermont Avenue")
  2976. if cy3 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  2977. print("Connecticut Avenue")
  2978. if vi1 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  2979. print("St. Charles Place")
  2980. if vi2 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  2981. print("States Avenue")
  2982. if vi3 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  2983. print("Virginia Avenue")
  2984. if or1 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
  2985. print("St. James Place")
  2986. if or2 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
  2987. print("Tennessee Avenue")
  2988. if or3 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
  2989. print("New York Avenue")
  2990. if red1 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
  2991. print("Kentucky Avenue")
  2992. if red2 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
  2993. print("Indiana Avenue")
  2994. if red3 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
  2995. print("Illinois Avenue")
  2996. if ye1 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  2997. print("Atlantic Avenue")
  2998. if ye2 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  2999. print("Ventnor Avenue")
  3000. if ye3 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  3001. print("Marvin Gardens")
  3002. if gr1 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  3003. print("Pacific Avenue")
  3004. if gr2 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  3005. print("North Carolina Avenue")
  3006. if gr3 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  3007. print("Pennsylvania Avenue")
  3008. if bl1 == 2 and bl1h == 0 and bl2h == 0:
  3009. print("Park Place")
  3010. if bl2 == 2 and bl1h == 0 and bl2h == 0:
  3011. print("Boardwalk")
  3012. if rrr == 2:
  3013. print("Reading Railroad")
  3014. if prr == 2:
  3015. print("Pennsylvania Railroad")
  3016. if brr == 2:
  3017. print("B. & O. Railroad")
  3018. if srr == 2:
  3019. print("Short Line")
  3020. if ec == 2:
  3021. print("Electric Company")
  3022. if ww == 2:
  3023. print("Water Works")
  3024. print("````````````````````````````````````````````````````````")
  3025. print("(Type 'Done' to cancel, or 'N/A' if you desire no property)")
  3026. p1tcc = input()
  3027. #If player requests Mediterranean Avenue...
  3028. if p1tcc.lower() == "mediterranean avenue":
  3029. if br1 == 2 and br1h == 0 and br2h == 0:
  3030. print("Added", p2 + "'s Mediterranean Avenue to trade.")
  3031. trd2 = 1
  3032. #If player requests Baltic Avenue...
  3033. elif p1tcc.lower() == "baltic avenue":
  3034. if br2 == 2 and br1h == 0 and br2h == 0:
  3035. print("Added", p2 + "'s Baltic Avenue to trade.")
  3036. trd2 = 2
  3037. #If player requests Oriental Avenue...
  3038. elif p1tcc.lower() == "oriental avenue":
  3039. if cy1 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  3040. print("Added", p2 + "'s Oriental Avenue to trade.")
  3041. trd2 = 3
  3042. #If player requests Vermont Avenue...
  3043. elif p1tcc.lower() == "vermont avenue":
  3044. if cy2 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  3045. print("Added", p2 + "'s Vermont Avenue to trade.")
  3046. trd2 = 4
  3047. #If player requests Connecticut Avenue...
  3048. elif p1tcc.lower() == "connecticut avenue":
  3049. if cy3 == 2 and cy1h == 0 and cy2h == 0 and cy3h == 0:
  3050. print("Added", p2 + "'s Connecticut Avenue to trade.")
  3051. trd2 = 5
  3052. #If player requests St. Charles Place...
  3053. elif p1tcc.lower() == "st. charles place":
  3054. if vi1 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  3055. print("Added", p2 + "'s St. Charles Place to trade.")
  3056. trd2 = 6
  3057. #If player requests States Avenue...
  3058. elif p1tcc.lower() == "states avenue":
  3059. if vi2 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  3060. print("Added", p2 + "'s States Avenue to trade.")
  3061. trd2 = 7
  3062. #If player requests Virginia Avenue...
  3063. elif p1tcc.lower() == "virginia avenue":
  3064. if vi3 == 2 and vi1h == 0 and vi2h == 0 and vi3h == 0:
  3065. print("Added", p2 + "'s Virginia Avenue to trade.")
  3066. trd2 = 8
  3067. #If player requests St. James Place...
  3068. elif p1tcc.lower() == "st. james place":
  3069. if or1 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
  3070. print("Added", p2 + "'s St. James Place to trade.")
  3071. trd2 = 9
  3072. #If player requests Tennessee Avenue...
  3073. elif p1tcc.lower() == "tennessee avenue":
  3074. if or2 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
  3075. print("Added", p2 + "'s Tennessee Avenue to trade.")
  3076. trd2 = 10
  3077. #If player requests New York Avenue...
  3078. elif p1tcc.lower() == "new york avenue":
  3079. if or3 == 2 and or1h == 0 and or2h == 0 and or3h == 0:
  3080. print("Added", p2 + "'s New York Avenue to trade.")
  3081. trd2 = 11
  3082. #If player requests Kentucky Avenue...
  3083. elif p1tcc.lower() == "kentucky avenue":
  3084. if red1 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
  3085. print("Added", p2 + "'s Kentucky Avenue to trade.")
  3086. trd2 = 12
  3087. #If player requests Indiana Avenue...
  3088. elif p1tcc.lower() == "indiana avenue":
  3089. if red2 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
  3090. print("Added", p2 + "'s Indiana Avenue to trade.")
  3091. trd2 = 13
  3092. #If player requests Illinois Avenue...
  3093. elif p1tcc.lower() == "illinois avenue":
  3094. if red3 == 2 and red1h == 0 and red2h == 0 and red3h == 0:
  3095. print("Added", p2 + "'s Illinois Avenue to trade.")
  3096. trd2 = 14
  3097. #If player requests Atlantic Avenue...
  3098. elif p1tcc.lower() == "atlantic avenue":
  3099. if ye1 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  3100. print("Added", p2 + "'s Atlantic Avenue to trade.")
  3101. trd2 = 15
  3102. #If player requests Ventnor Avenue...
  3103. elif p1tcc.lower() == "ventnor avenue":
  3104. if ye2 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  3105. print("Added", p2 + "'s Ventnor Avenue to trade.")
  3106. trd2 = 16
  3107. #If player requests Marvin Gardens...
  3108. elif p1tcc.lower() == "marvin gardens":
  3109. if ye3 == 2 and ye1h == 0 and ye2h == 0 and ye3h == 0:
  3110. print("Added", p2 + "'s Marvin Gardens to trade.")
  3111. trd2 = 17
  3112. #If player requests Pacific Avenue...
  3113. elif p1tcc.lower() == "pacific avenue":
  3114. if gr1 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  3115. print("Added", p2 + "'s Pacific Avenue to trade.")
  3116. trd2 = 18
  3117. #If player requests North Carolina Avenue...
  3118. elif p1tcc.lower() == "north carolina avenue":
  3119. if gr2 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  3120. print("Added", p2 + "'s North Carolina Avenue to trade.")
  3121. trd2 = 19
  3122. #If player requests Pennsylvania Avenue...
  3123. elif p1tcc.lower() == "pennsylvania avenue":
  3124. if gr3 == 2 and gr1h == 0 and gr2h == 0 and gr3h == 0:
  3125. print("Added", p2 + "'s Pennsylvania Avenue to trade.")
  3126. trd2 = 20
  3127. #If player requests Park Place...
  3128. elif p1tcc.lower() == "park place":
  3129. if bl1 == 2 and bl1h == 0 and bl2h == 0:
  3130. print("Added", p2 + "'s Park Place to trade.")
  3131. trd2 = 21
  3132. #If player requests Boardwalk...
  3133. elif p1tcc.lower() == "boardwalk":
  3134. if bl2 == 2 and bl1h == 0 and bl2h == 0:
  3135. print("Added", p2 + "'s Boardwalk to trade.")
  3136. trd2 = 22
  3137. #If player requests Reading Railroad...
  3138. elif p1tcc.lower() == "reading railroad":
  3139. if rrr == 2:
  3140. print("Added", p2 + "'s Reading Railroad to trade.")
  3141. trd2 = 23
  3142. #If player requests Pennsylvania Railroad...
  3143. elif p1tcc.lower() == "pennsylvania railroad":
  3144. if prr == 2:
  3145. print("Added", p2 + "'s Pennsylvania Railroad to trade.")
  3146. trd2 = 24
  3147. #If player requests B. & O. Railroad...
  3148. elif p1tcc.lower() == "b. & o. railroad":
  3149. if brr == 2:
  3150. print("Added", p2 + "'s B. & O. Railroad to trade.")
  3151. trd2 = 25
  3152. #If player requests Short Line...
  3153. elif p1tcc.lower() == "short line":
  3154. if srr == 2:
  3155. print("Added", p2 + "'s Short Line to trade.")
  3156. trd2 = 26
  3157. #If player requests Electric Company...
  3158. elif p1tcc.lower() == "electric company":
  3159. if ec == 2:
  3160. print("Added", p2 + "'s Electric Company to trade.")
  3161. trd2 = 27
  3162. #If player requests Water Works...
  3163. elif p1tcc.lower() == "water works":
  3164. if ww == 2:
  3165. print("Added", p2 + "'s Water Works to trade.")
  3166. trd2 = 28
  3167. #If player requests no property...
  3168. elif p1tcc.lower() == "n/a":
  3169. print("Added no property to trade.")
  3170. trd2 = -1
  3171. #If player changes their mind...
  3172. elif p1tcc.lower() == "done":
  3173. print("All right then...")
  3174. trd2 = 0
  3175. #If player gives an invalid response...
  3176. else:
  3177. print("Invalid response.")
  3178. #When player is prompted to request money from opponent...
  3179. if trd2 != 0:
  3180. trd2m = -1
  3181. while trd2m == -1:
  3182. print("\nHow much money do you want from", p2 + "?")
  3183. trd2m = int(input())
  3184. if p2m >= trd2m:
  3185. print("Added $" + str(trd2m), "to trade.")
  3186. input()
  3187. else:
  3188. print("Can not add $" + str(trd2m), "to trade; insufficient funds.")
  3189. trd2m = -1
  3190. trade = "x"
  3191. #Trade specification statement
  3192. while trade != "y" and trade != "n":
  3193. print(p2 + ",", p1, "wants to give you ", end='')
  3194. if trd1 == 1:
  3195. print("Mediterranean Avenue", end='')
  3196. elif trd1 == 2:
  3197. print("Baltic Avenue", end='')
  3198. elif trd1 == 3:
  3199. print("Oriental Avenue", end='')
  3200. elif trd1 == 4:
  3201. print("Vermont Avenue", end='')
  3202. elif trd1 == 5:
  3203. print("Connecticut Avenue", end='')
  3204. elif trd1 == 6:
  3205. print("St. Charles Place", end='')
  3206. elif trd1 == 7:
  3207. print("States Avenue", end='')
  3208. elif trd1 == 8:
  3209. print("Virginia Avenue", end='')
  3210. elif trd1 == 9:
  3211. print("St. James Place", end='')
  3212. elif trd1 == 10:
  3213. print("Tennessee Avenue", end='')
  3214. elif trd1 == 11:
  3215. print("New York Avenue", end='')
  3216. elif trd1 == 12:
  3217. print("Kentucky Avenue", end='')
  3218. elif trd1 == 13:
  3219. print("Indiana Avenue", end='')
  3220. elif trd1 == 14:
  3221. print("Illinois Avenue", end='')
  3222. elif trd1 == 15:
  3223. print("Atlantic Avenue", end='')
  3224. elif trd1 == 16:
  3225. print("Ventnor Avenue", end='')
  3226. elif trd1 == 17:
  3227. print("Marvin Gardens", end='')
  3228. elif trd1 == 18:
  3229. print("Pacific Avenue", end='')
  3230. elif trd1 == 19:
  3231. print("North Carolina Avenue", end='')
  3232. elif trd1 == 20:
  3233. print("Pennsylvania Avenue", end='')
  3234. elif trd1 == 21:
  3235. print("Park Place", end='')
  3236. elif trd1 == 22:
  3237. print("Boardwalk", end='')
  3238. elif trd1 == 23:
  3239. print("Reading Railroad", end='')
  3240. elif trd1 == 24:
  3241. print("Pennsylvania Railroad", end='')
  3242. elif trd1 == 25:
  3243. print("B. & O. Railroad", end='')
  3244. elif trd1 == 26:
  3245. print("Short Line", end='')
  3246. elif trd1 == 27:
  3247. print("Electric Company", end='')
  3248. elif trd1 == 28:
  3249. print("Water Works", end='')
  3250. if trd1 != -1:
  3251. print(" and", end='')
  3252. print(" $" + str(trd1m), "in")
  3253. print("exchange for ", end='')
  3254. if trd2 == 1:
  3255. print("Mediterranean Avenue", end='')
  3256. elif trd2 == 2:
  3257. print("Baltic Avenue", end='')
  3258. elif trd2 == 3:
  3259. print("Oriental Avenue", end='')
  3260. elif trd2 == 4:
  3261. print("Vermont Avenue", end='')
  3262. elif trd2 == 5:
  3263. print("Connecticut Avenue", end='')
  3264. elif trd2 == 6:
  3265. print("St. Charles Place", end='')
  3266. elif trd2 == 7:
  3267. print("States Avenue", end='')
  3268. elif trd2 == 8:
  3269. print("Virginia Avenue", end='')
  3270. elif trd2 == 9:
  3271. print("St. James Place", end='')
  3272. elif trd2 == 10:
  3273. print("Tennessee Avenue", end='')
  3274. elif trd2 == 11:
  3275. print("New York Avenue", end='')
  3276. elif trd2 == 12:
  3277. print("Kentucky Avenue", end='')
  3278. elif trd2 == 13:
  3279. print("Indiana Avenue", end='')
  3280. elif trd2 == 14:
  3281. print("Illinois Avenue", end='')
  3282. elif trd2 == 15:
  3283. print("Atlantic Avenue", end='')
  3284. elif trd2 == 16:
  3285. print("Ventnor Avenue", end='')
  3286. elif trd2 == 17:
  3287. print("Marvin Gardens", end='')
  3288. elif trd2 == 18:
  3289. print("Pacific Avenue", end='')
  3290. elif trd2 == 19:
  3291. print("North Carolina Avenue", end='')
  3292. elif trd2 == 20:
  3293. print("Pennsylvania Avenue", end='')
  3294. elif trd2 == 21:
  3295. print("Park Place", end='')
  3296. elif trd2 == 22:
  3297. print("Boardwalk", end='')
  3298. elif trd2 == 23:
  3299. print("Reading Railroad", end='')
  3300. elif trd2 == 24:
  3301. print("Pennsylvania Railroad", end='')
  3302. elif trd2 == 25:
  3303. print("B. & O. Railroad", end='')
  3304. elif trd2 == 26:
  3305. print("Short Line", end='')
  3306. elif trd2 == 27:
  3307. print("Electric Company", end='')
  3308. elif trd2 == 28:
  3309. print("Water Works", end='')
  3310. if trd2 != -1:
  3311. print(" and ", end='')
  3312. print("$" + str(trd2m) + ". Do you accept? (y/n)")
  3313. trade = input()
  3314. #If player accepts the offer...
  3315. if trade.lower() == "y":
  3316. print("\nTrade complete!")
  3317. #Player One's offer gets traded to Player Two
  3318. if trd1 == 1:
  3319. br1 = 2
  3320. if p2cc.lower() == "cat":
  3321. prop1.shape(catp)
  3322. elif p2cc.lower() == "stickman":
  3323. prop1.shape(stickmanp)
  3324. elif p2cc.lower() == "car":
  3325. prop1.shape(carp)
  3326. elif p2cc.lower() == "thimble":
  3327. prop1.shape(thimblep)
  3328. elif p2cc.lower() == "catcolor":
  3329. prop1.shape(catcolorp)
  3330. elif p2cc.lower() == "stickmancolor":
  3331. prop1.shape(stickmancolorp)
  3332. elif p2cc.lower() == "carcolor":
  3333. prop1.shape(carcolorp)
  3334. elif p2cc.lower() == "thimblecolor":
  3335. prop1.shape(thimblecolorp)
  3336. elif trd1 == 2:
  3337. br2 = 2
  3338. if p2cc.lower() == "cat":
  3339. prop2.shape(catp)
  3340. elif p2cc.lower() == "stickman":
  3341. prop2.shape(stickmanp)
  3342. elif p2cc.lower() == "car":
  3343. prop2.shape(carp)
  3344. elif p2cc.lower() == "thimble":
  3345. prop2.shape(thimblep)
  3346. elif p2cc.lower() == "catcolor":
  3347. prop2.shape(catcolorp)
  3348. elif p2cc.lower() == "stickmancolor":
  3349. prop2.shape(stickmancolorp)
  3350. elif p2cc.lower() == "carcolor":
  3351. prop2.shape(carcolorp)
  3352. elif p2cc.lower() == "thimblecolor":
  3353. prop2.shape(thimblecolorp)
  3354. elif trd1 == 3:
  3355. cy1 = 2
  3356. if p2cc.lower() == "cat":
  3357. prop4.shape(catp)
  3358. elif p2cc.lower() == "stickman":
  3359. prop4.shape(stickmanp)
  3360. elif p2cc.lower() == "car":
  3361. prop4.shape(carp)
  3362. elif p2cc.lower() == "thimble":
  3363. prop4.shape(thimblep)
  3364. elif p2cc.lower() == "catcolor":
  3365. prop4.shape(catcolorp)
  3366. elif p2cc.lower() == "stickmancolor":
  3367. prop4.shape(stickmancolorp)
  3368. elif p2cc.lower() == "carcolor":
  3369. prop4.shape(carcolorp)
  3370. elif p2cc.lower() == "thimblecolor":
  3371. prop4.shape(thimblecolorp)
  3372. elif trd1 == 4:
  3373. cy2 = 2
  3374. if p2cc.lower() == "cat":
  3375. prop5.shape(catp)
  3376. elif p2cc.lower() == "stickman":
  3377. prop5.shape(stickmanp)
  3378. elif p2cc.lower() == "car":
  3379. prop5.shape(carp)
  3380. elif p2cc.lower() == "thimble":
  3381. prop5.shape(thimblep)
  3382. elif p2cc.lower() == "catcolor":
  3383. prop5.shape(catcolorp)
  3384. elif p2cc.lower() == "stickmancolor":
  3385. prop5.shape(stickmancolorp)
  3386. elif p2cc.lower() == "carcolor":
  3387. prop5.shape(carcolorp)
  3388. elif p2cc.lower() == "thimblecolor":
  3389. prop5.shape(thimblecolorp)
  3390. elif trd1 == 5:
  3391. cy3 = 2
  3392. if p2cc.lower() == "cat":
  3393. prop6.shape(catp)
  3394. elif p2cc.lower() == "stickman":
  3395. prop6.shape(stickmanp)
  3396. elif p2cc.lower() == "car":
  3397. prop6.shape(carp)
  3398. elif p2cc.lower() == "thimble":
  3399. prop6.shape(thimblep)
  3400. elif p2cc.lower() == "catcolor":
  3401. prop6.shape(catcolorp)
  3402. elif p2cc.lower() == "stickmancolor":
  3403. prop6.shape(stickmancolorp)
  3404. elif p2cc.lower() == "carcolor":
  3405. prop6.shape(carcolorp)
  3406. elif p2cc.lower() == "thimblecolor":
  3407. prop6.shape(thimblecolorp)
  3408. elif trd1 == 6:
  3409. vi1 = 2
  3410. if p2cc.lower() == "cat":
  3411. prop7.shape(catp)
  3412. elif p2cc.lower() == "stickman":
  3413. prop7.shape(stickmanp)
  3414. elif p2cc.lower() == "car":
  3415. prop7.shape(carp)
  3416. elif p2cc.lower() == "thimble":
  3417. prop7.shape(thimblep)
  3418. elif p2cc.lower() == "catcolor":
  3419. prop7.shape(catcolorp)
  3420. elif p2cc.lower() == "stickmancolor":
  3421. prop7.shape(stickmancolorp)
  3422. elif p2cc.lower() == "carcolor":
  3423. prop7.shape(carcolorp)
  3424. elif p2cc.lower() == "thimblecolor":
  3425. prop7.shape(thimblecolorp)
  3426. elif trd1 == 7:
  3427. vi2 = 2
  3428. if p2cc.lower() == "cat":
  3429. prop9.shape(catp)
  3430. elif p2cc.lower() == "stickman":
  3431. prop9.shape(stickmanp)
  3432. elif p2cc.lower() == "car":
  3433. prop9.shape(carp)
  3434. elif p2cc.lower() == "thimble":
  3435. prop9.shape(thimblep)
  3436. elif p2cc.lower() == "catcolor":
  3437. prop9.shape(catcolorp)
  3438. elif p2cc.lower() == "stickmancolor":
  3439. prop9.shape(stickmancolorp)
  3440. elif p2cc.lower() == "carcolor":
  3441. prop9.shape(carcolorp)
  3442. elif p2cc.lower() == "thimblecolor":
  3443. prop9.shape(thimblecolorp)
  3444. elif trd1 == 8:
  3445. vi3 = 2
  3446. if p2cc.lower() == "cat":
  3447. prop10.shape(catp)
  3448. elif p2cc.lower() == "stickman":
  3449. prop10.shape(stickmanp)
  3450. elif p2cc.lower() == "car":
  3451. prop10.shape(carp)
  3452. elif p2cc.lower() == "thimble":
  3453. prop10.shape(thimblep)
  3454. elif p2cc.lower() == "catcolor":
  3455. prop10.shape(catcolorp)
  3456. elif p2cc.lower() == "stickmancolor":
  3457. prop10.shape(stickmancolorp)
  3458. elif p2cc.lower() == "carcolor":
  3459. prop10.shape(carcolorp)
  3460. elif p2cc.lower() == "thimblecolor":
  3461. prop10.shape(thimblecolorp)
  3462. elif trd1 == 9:
  3463. or1 = 2
  3464. if p2cc.lower() == "cat":
  3465. prop12.shape(catp)
  3466. elif p2cc.lower() == "stickman":
  3467. prop12.shape(stickmanp)
  3468. elif p2cc.lower() == "car":
  3469. prop12.shape(carp)
  3470. elif p2cc.lower() == "thimble":
  3471. prop12.shape(thimblep)
  3472. elif p2cc.lower() == "catcolor":
  3473. prop12.shape(catcolorp)
  3474. elif p2cc.lower() == "stickmancolor":
  3475. prop12.shape(stickmancolorp)
  3476. elif p2cc.lower() == "carcolor":
  3477. prop12.shape(carcolorp)
  3478. elif p2cc.lower() == "thimblecolor":
  3479. prop12.shape(thimblecolorp)
  3480. elif trd1 == 10:
  3481. or2 = 2
  3482. if p2cc.lower() == "cat":
  3483. prop13.shape(catp)
  3484. elif p2cc.lower() == "stickman":
  3485. prop13.shape(stickmanp)
  3486. elif p2cc.lower() == "car":
  3487. prop13.shape(carp)
  3488. elif p2cc.lower() == "thimble":
  3489. prop13.shape(thimblep)
  3490. elif p2cc.lower() == "catcolor":
  3491. prop13.shape(catcolorp)
  3492. elif p2cc.lower() == "stickmancolor":
  3493. prop13.shape(stickmancolorp)
  3494. elif p2cc.lower() == "carcolor":
  3495. prop13.shape(carcolorp)
  3496. elif p2cc.lower() == "thimblecolor":
  3497. prop13.shape(thimblecolorp)
  3498. elif trd1 == 11:
  3499. or3 = 2
  3500. if p2cc.lower() == "cat":
  3501. prop14.shape(catp)
  3502. elif p2cc.lower() == "stickman":
  3503. prop14.shape(stickmanp)
  3504. elif p2cc.lower() == "car":
  3505. prop14.shape(carp)
  3506. elif p2cc.lower() == "thimble":
  3507. prop14.shape(thimblep)
  3508. elif p2cc.lower() == "catcolor":
  3509. prop14.shape(catcolorp)
  3510. elif p2cc.lower() == "stickmancolor":
  3511. prop14.shape(stickmancolorp)
  3512. elif p2cc.lower() == "carcolor":
  3513. prop14.shape(carcolorp)
  3514. elif p2cc.lower() == "thimblecolor":
  3515. prop14.shape(thimblecolorp)
  3516. elif trd1 == 12:
  3517. red1 = 2
  3518. if p2cc.lower() == "cat":
  3519. prop15.shape(catp)
  3520. elif p2cc.lower() == "stickman":
  3521. prop15.shape(stickmanp)
  3522. elif p2cc.lower() == "car":
  3523. prop15.shape(carp)
  3524. elif p2cc.lower() == "thimble":
  3525. prop15.shape(thimblep)
  3526. elif p2cc.lower() == "catcolor":
  3527. prop15.shape(catcolorp)
  3528. elif p2cc.lower() == "stickmancolor":
  3529. prop15.shape(stickmancolorp)
  3530. elif p2cc.lower() == "carcolor":
  3531. prop15.shape(carcolorp)
  3532. elif p2cc.lower() == "thimblecolor":
  3533. prop15.shape(thimblecolorp)
  3534. elif trd1 == 13:
  3535. red2 = 2
  3536. if p2cc.lower() == "cat":
  3537. prop16.shape(catp)
  3538. elif p2cc.lower() == "stickman":
  3539. prop16.shape(stickmanp)
  3540. elif p2cc.lower() == "car":
  3541. prop16.shape(carp)
  3542. elif p2cc.lower() == "thimble":
  3543. prop16.shape(thimblep)
  3544. elif p2cc.lower() == "catcolor":
  3545. prop16.shape(catcolorp)
  3546. elif p2cc.lower() == "stickmancolor":
  3547. prop16.shape(stickmancolorp)
  3548. elif p2cc.lower() == "carcolor":
  3549. prop16.shape(carcolorp)
  3550. elif p2cc.lower() == "thimblecolor":
  3551. prop16.shape(thimblecolorp)
  3552. elif trd1 == 14:
  3553. red3 = 2
  3554. if p2cc.lower() == "cat":
  3555. prop17.shape(catp)
  3556. elif p2cc.lower() == "stickman":
  3557. prop17.shape(stickmanp)
  3558. elif p2cc.lower() == "car":
  3559. prop17.shape(carp)
  3560. elif p2cc.lower() == "thimble":
  3561. prop17.shape(thimblep)
  3562. elif p2cc.lower() == "catcolor":
  3563. prop17.shape(catcolorp)
  3564. elif p2cc.lower() == "stickmancolor":
  3565. prop17.shape(stickmancolorp)
  3566. elif p2cc.lower() == "carcolor":
  3567. prop17.shape(carcolorp)
  3568. elif p2cc.lower() == "thimblecolor":
  3569. prop17.shape(thimblecolorp)
  3570. elif trd1 == 15:
  3571. ye1 = 2
  3572. if p2cc.lower() == "cat":
  3573. prop19.shape(catp)
  3574. elif p2cc.lower() == "stickman":
  3575. prop19.shape(stickmanp)
  3576. elif p2cc.lower() == "car":
  3577. prop19.shape(carp)
  3578. elif p2cc.lower() == "thimble":
  3579. prop19.shape(thimblep)
  3580. elif p2cc.lower() == "catcolor":
  3581. prop19.shape(catcolorp)
  3582. elif p2cc.lower() == "stickmancolor":
  3583. prop19.shape(stickmancolorp)
  3584. elif p2cc.lower() == "carcolor":
  3585. prop19.shape(carcolorp)
  3586. elif p2cc.lower() == "thimblecolor":
  3587. prop19.shape(thimblecolorp)
  3588. elif trd1 == 16:
  3589. ye2 = 2
  3590. if p2cc.lower() == "cat":
  3591. prop20.shape(catp)
  3592. elif p2cc.lower() == "stickman":
  3593. prop20.shape(stickmanp)
  3594. elif p2cc.lower() == "car":
  3595. prop20.shape(carp)
  3596. elif p2cc.lower() == "thimble":
  3597. prop20.shape(thimblep)
  3598. elif p2cc.lower() == "catcolor":
  3599. prop20.shape(catcolorp)
  3600. elif p2cc.lower() == "stickmancolor":
  3601. prop20.shape(stickmancolorp)
  3602. elif p2cc.lower() == "carcolor":
  3603. prop20.shape(carcolorp)
  3604. elif p2cc.lower() == "thimblecolor":
  3605. prop20.shape(thimblecolorp)
  3606. elif trd1 == 17:
  3607. ye3 = 2
  3608. if p2cc.lower() == "cat":
  3609. prop22.shape(catp)
  3610. elif p2cc.lower() == "stickman":
  3611. prop22.shape(stickmanp)
  3612. elif p2cc.lower() == "car":
  3613. prop22.shape(carp)
  3614. elif p2cc.lower() == "thimble":
  3615. prop22.shape(thimblep)
  3616. elif p2cc.lower() == "catcolor":
  3617. prop22.shape(catcolorp)
  3618. elif p2cc.lower() == "stickmancolor":
  3619. prop22.shape(stickmancolorp)
  3620. elif p2cc.lower() == "carcolor":
  3621. prop22.shape(carcolorp)
  3622. elif p2cc.lower() == "thimblecolor":
  3623. prop22.shape(thimblecolorp)
  3624. elif trd1 == 18:
  3625. gr1 = 2
  3626. if p2cc.lower() == "cat":
  3627. prop23.shape(catp)
  3628. elif p2cc.lower() == "stickman":
  3629. prop23.shape(stickmanp)
  3630. elif p2cc.lower() == "car":
  3631. prop23.shape(carp)
  3632. elif p2cc.lower() == "thimble":
  3633. prop23.shape(thimblep)
  3634. elif p2cc.lower() == "catcolor":
  3635. prop23.shape(catcolorp)
  3636. elif p2cc.lower() == "stickmancolor":
  3637. prop23.shape(stickmancolorp)
  3638. elif p2cc.lower() == "carcolor":
  3639. prop23.shape(carcolorp)
  3640. elif p2cc.lower() == "thimblecolor":
  3641. prop23.shape(thimblecolorp)
  3642. elif trd1 == 19:
  3643. gr2 = 2
  3644. if p2cc.lower() == "cat":
  3645. prop24.shape(catp)
  3646. elif p2cc.lower() == "stickman":
  3647. prop24.shape(stickmanp)
  3648. elif p2cc.lower() == "car":
  3649. prop24.shape(carp)
  3650. elif p2cc.lower() == "thimble":
  3651. prop24.shape(thimblep)
  3652. elif p2cc.lower() == "catcolor":
  3653. prop24.shape(catcolorp)
  3654. elif p2cc.lower() == "stickmancolor":
  3655. prop24.shape(stickmancolorp)
  3656. elif p2cc.lower() == "carcolor":
  3657. prop24.shape(carcolorp)
  3658. elif p2cc.lower() == "thimblecolor":
  3659. prop24.shape(thimblecolorp)
  3660. elif trd1 == 20:
  3661. gr3 = 2
  3662. if p2cc.lower() == "cat":
  3663. prop25.shape(catp)
  3664. elif p2cc.lower() == "stickman":
  3665. prop25.shape(stickmanp)
  3666. elif p2cc.lower() == "car":
  3667. prop25.shape(carp)
  3668. elif p2cc.lower() == "thimble":
  3669. prop25.shape(thimblep)
  3670. elif p2cc.lower() == "catcolor":
  3671. prop25.shape(catcolorp)
  3672. elif p2cc.lower() == "stickmancolor":
  3673. prop25.shape(stickmancolorp)
  3674. elif p2cc.lower() == "carcolor":
  3675. prop25.shape(carcolorp)
  3676. elif p2cc.lower() == "thimblecolor":
  3677. prop25.shape(thimblecolorp)
  3678. elif trd1 == 21:
  3679. bl1 = 2
  3680. if p2cc.lower() == "cat":
  3681. prop27.shape(catp)
  3682. elif p2cc.lower() == "stickman":
  3683. prop27.shape(stickmanp)
  3684. elif p2cc.lower() == "car":
  3685. prop27.shape(carp)
  3686. elif p2cc.lower() == "thimble":
  3687. prop27.shape(thimblep)
  3688. elif p2cc.lower() == "catcolor":
  3689. prop27.shape(catcolorp)
  3690. elif p2cc.lower() == "stickmancolor":
  3691. prop27.shape(stickmancolorp)
  3692. elif p2cc.lower() == "carcolor":
  3693. prop27.shape(carcolorp)
  3694. elif p2cc.lower() == "thimblecolor":
  3695. prop27.shape(thimblecolorp)
  3696. elif trd1 == 22:
  3697. bl2 = 2
  3698. if p2cc.lower() == "cat":
  3699. prop28.shape(catp)
  3700. elif p2cc.lower() == "stickman":
  3701. prop28.shape(stickmanp)
  3702. elif p2cc.lower() == "car":
  3703. prop28.shape(carp)
  3704. elif p2cc.lower() == "thimble":
  3705. prop28.shape(thimblep)
  3706. elif p2cc.lower() == "catcolor":
  3707. prop28.shape(catcolorp)
  3708. elif p2cc.lower() == "stickmancolor":
  3709. prop28.shape(stickmancolorp)
  3710. elif p2cc.lower() == "carcolor":
  3711. prop28.shape(carcolorp)
  3712. elif p2cc.lower() == "thimblecolor":
  3713. prop28.shape(thimblecolorp)
  3714. elif trd1 == 23:
  3715. rrr = 2
  3716. p1rr = p1rr - 1
  3717. p2rr = p2rr + 1
  3718. if p2cc.lower() == "cat":
  3719. prop3.shape(catp)
  3720. elif p2cc.lower() == "stickman":
  3721. prop3.shape(stickmanp)
  3722. elif p2cc.lower() == "car":
  3723. prop3.shape(carp)
  3724. elif p2cc.lower() == "thimble":
  3725. prop3.shape(thimblep)
  3726. elif p2cc.lower() == "catcolor":
  3727. prop3.shape(catcolorp)
  3728. elif p2cc.lower() == "stickmancolor":
  3729. prop3.shape(stickmancolorp)
  3730. elif p2cc.lower() == "carcolor":
  3731. prop3.shape(carcolorp)
  3732. elif p2cc.lower() == "thimblecolor":
  3733. prop3.shape(thimblecolorp)
  3734. elif trd1 == 24:
  3735. prr = 2
  3736. p1rr = p1rr - 1
  3737. p2rr = p2rr + 1
  3738. if p2cc.lower() == "cat":
  3739. prop11.shape(catp)
  3740. elif p2cc.lower() == "stickman":
  3741. prop11.shape(stickmanp)
  3742. elif p2cc.lower() == "car":
  3743. prop11.shape(carp)
  3744. elif p2cc.lower() == "thimble":
  3745. prop11.shape(thimblep)
  3746. elif p2cc.lower() == "catcolor":
  3747. prop11.shape(catcolorp)
  3748. elif p2cc.lower() == "stickmancolor":
  3749. prop11.shape(stickmancolorp)
  3750. elif p2cc.lower() == "carcolor":
  3751. prop11.shape(carcolorp)
  3752. elif p2cc.lower() == "thimblecolor":
  3753. prop11.shape(thimblecolorp)
  3754. elif trd1 == 25:
  3755. brr = 2
  3756. p1rr = p1rr - 1
  3757. p2rr = p2rr + 1
  3758. if p2cc.lower() == "cat":
  3759. prop18.shape(catp)
  3760. elif p2cc.lower() == "stickman":
  3761. prop18.shape(stickmanp)
  3762. elif p2cc.lower() == "car":
  3763. prop18.shape(carp)
  3764. elif p2cc.lower() == "thimble":
  3765. prop18.shape(thimblep)
  3766. elif p2cc.lower() == "catcolor":
  3767. prop18.shape(catcolorp)
  3768. elif p2cc.lower() == "stickmancolor":
  3769. prop18.shape(stickmancolorp)
  3770. elif p2cc.lower() == "carcolor":
  3771. prop18.shape(carcolorp)
  3772. elif p2cc.lower() == "thimblecolor":
  3773. prop18.shape(thimblecolorp)
  3774. elif trd1 == 26:
  3775. srr = 2
  3776. p1rr = p1rr - 1
  3777. p2rr = p2rr + 1
  3778. if p2cc.lower() == "cat":
  3779. prop26.shape(catp)
  3780. elif p2cc.lower() == "stickman":
  3781. prop26.shape(stickmanp)
  3782. elif p2cc.lower() == "car":
  3783. prop26.shape(carp)
  3784. elif p2cc.lower() == "thimble":
  3785. prop26.shape(thimblep)
  3786. elif p2cc.lower() == "catcolor":
  3787. prop26.shape(catcolorp)
  3788. elif p2cc.lower() == "stickmancolor":
  3789. prop26.shape(stickmancolorp)
  3790. elif p2cc.lower() == "carcolor":
  3791. prop26.shape(carcolorp)
  3792. elif p2cc.lower() == "thimblecolor":
  3793. prop26.shape(thimblecolorp)
  3794. elif trd1 == 27:
  3795. ec = 2
  3796. p1u = p1u - 1
  3797. p2u = p2u + 1
  3798. if p2cc.lower() == "cat":
  3799. prop8.shape(catp)
  3800. elif p2cc.lower() == "stickman":
  3801. prop8.shape(stickmanp)
  3802. elif p2cc.lower() == "car":
  3803. prop8.shape(carp)
  3804. elif p2cc.lower() == "thimble":
  3805. prop8.shape(thimblep)
  3806. elif p2cc.lower() == "catcolor":
  3807. prop8.shape(catcolorp)
  3808. elif p2cc.lower() == "stickmancolor":
  3809. prop8.shape(stickmancolorp)
  3810. elif p2cc.lower() == "carcolor":
  3811. prop8.shape(carcolorp)
  3812. elif p2cc.lower() == "thimblecolor":
  3813. prop8.shape(thimblecolorp)
  3814. elif trd1 == 28:
  3815. ww = 2
  3816. p1u = p1u - 1
  3817. p2u = p2u + 1
  3818. if p2cc.lower() == "cat":
  3819. prop21.shape(catp)
  3820. elif p2cc.lower() == "stickman":
  3821. prop21.shape(stickmanp)
  3822. elif p2cc.lower() == "car":
  3823. prop21.shape(carp)
  3824. elif p2cc.lower() == "thimble":
  3825. prop21.shape(thimblep)
  3826. elif p2cc.lower() == "catcolor":
  3827. prop21.shape(catcolorp)
  3828. elif p2cc.lower() == "stickmancolor":
  3829. prop21.shape(stickmancolorp)
  3830. elif p2cc.lower() == "carcolor":
  3831. prop21.shape(carcolorp)
  3832. elif p2cc.lower() == "thimblecolor":
  3833. prop21.shape(thimblecolorp)
  3834. #Player Two's offer gets traded to Player One
  3835. if trd2 == 1:
  3836. br1 = 1
  3837. if p1cc.lower() == "cat":
  3838. prop1.shape(catp)
  3839. elif p1cc.lower() == "stickman":
  3840. prop1.shape(stickmanp)
  3841. elif p1cc.lower() == "car":
  3842. prop1.shape(carp)
  3843. elif p1cc.lower() == "thimble":
  3844. prop1.shape(thimblep)
  3845. elif p1cc.lower() == "catcolor":
  3846. prop1.shape(catcolorp)
  3847. elif p1cc.lower() == "stickmancolor":
  3848. prop1.shape(stickmancolorp)
  3849. elif p1cc.lower() == "carcolor":
  3850. prop1.shape(carcolorp)
  3851. elif p1cc.lower() == "thimblecolor":
  3852. prop1.shape(thimblecolorp)
  3853. elif trd2 == 2:
  3854. br2 = 1
  3855. if p1cc.lower() == "cat":
  3856. prop2.shape(catp)
  3857. elif p1cc.lower() == "stickman":
  3858. prop2.shape(stickmanp)
  3859. elif p1cc.lower() == "car":
  3860. prop2.shape(carp)
  3861. elif p1cc.lower() == "thimble":
  3862. prop2.shape(thimblep)
  3863. elif p1cc.lower() == "catcolor":
  3864. prop2.shape(catcolorp)
  3865. elif p1cc.lower() == "stickmancolor":
  3866. prop2.shape(stickmancolorp)
  3867. elif p1cc.lower() == "carcolor":
  3868. prop2.shape(carcolorp)
  3869. elif p1cc.lower() == "thimblecolor":
  3870. prop2.shape(thimblecolorp)
  3871. elif trd2 == 3:
  3872. cy1 = 1
  3873. if p1cc.lower() == "cat":
  3874. prop4.shape(catp)
  3875. elif p1cc.lower() == "stickman":
  3876. prop4.shape(stickmanp)
  3877. elif p1cc.lower() == "car":
  3878. prop4.shape(carp)
  3879. elif p1cc.lower() == "thimble":
  3880. prop4.shape(thimblep)
  3881. elif p1cc.lower() == "catcolor":
  3882. prop4.shape(catcolorp)
  3883. elif p1cc.lower() == "stickmancolor":
  3884. prop4.shape(stickmancolorp)
  3885. elif p1cc.lower() == "carcolor":
  3886. prop4.shape(carcolorp)
  3887. elif p1cc.lower() == "thimblecolor":
  3888. prop4.shape(thimblecolorp)
  3889. elif trd2 == 4:
  3890. cy2 = 1
  3891. if p1cc.lower() == "cat":
  3892. prop5.shape(catp)
  3893. elif p1cc.lower() == "stickman":
  3894. prop5.shape(stickmanp)
  3895. elif p1cc.lower() == "car":
  3896. prop5.shape(carp)
  3897. elif p1cc.lower() == "thimble":
  3898. prop5.shape(thimblep)
  3899. elif p1cc.lower() == "catcolor":
  3900. prop5.shape(catcolorp)
  3901. elif p1cc.lower() == "stickmancolor":
  3902. prop5.shape(stickmancolorp)
  3903. elif p1cc.lower() == "carcolor":
  3904. prop5.shape(carcolorp)
  3905. elif p1cc.lower() == "thimblecolor":
  3906. prop5.shape(thimblecolorp)
  3907. elif trd2 == 5:
  3908. cy3 = 1
  3909. if p1cc.lower() == "cat":
  3910. prop6.shape(catp)
  3911. elif p1cc.lower() == "stickman":
  3912. prop6.shape(stickmanp)
  3913. elif p1cc.lower() == "car":
  3914. prop6.shape(carp)
  3915. elif p1cc.lower() == "thimble":
  3916. prop6.shape(thimblep)
  3917. elif p1cc.lower() == "catcolor":
  3918. prop6.shape(catcolorp)
  3919. elif p1cc.lower() == "stickmancolor":
  3920. prop6.shape(stickmancolorp)
  3921. elif p1cc.lower() == "carcolor":
  3922. prop6.shape(carcolorp)
  3923. elif p1cc.lower() == "thimblecolor":
  3924. prop6.shape(thimblecolorp)
  3925. elif trd2 == 6:
  3926. vi1 = 1
  3927. if p1cc.lower() == "cat":
  3928. prop7.shape(catp)
  3929. elif p1cc.lower() == "stickman":
  3930. prop7.shape(stickmanp)
  3931. elif p1cc.lower() == "car":
  3932. prop7.shape(carp)
  3933. elif p1cc.lower() == "thimble":
  3934. prop7.shape(thimblep)
  3935. elif p1cc.lower() == "catcolor":
  3936. prop7.shape(catcolorp)
  3937. elif p1cc.lower() == "stickmancolor":
  3938. prop7.shape(stickmancolorp)
  3939. elif p1cc.lower() == "carcolor":
  3940. prop7.shape(carcolorp)
  3941. elif p1cc.lower() == "thimblecolor":
  3942. prop7.shape(thimblecolorp)
  3943. elif trd2 == 7:
  3944. vi2 = 1
  3945. if p1cc.lower() == "cat":
  3946. prop9.shape(catp)
  3947. elif p1cc.lower() == "stickman":
  3948. prop9.shape(stickmanp)
  3949. elif p1cc.lower() == "car":
  3950. prop9.shape(carp)
  3951. elif p1cc.lower() == "thimble":
  3952. prop9.shape(thimblep)
  3953. elif p1cc.lower() == "catcolor":
  3954. prop9.shape(catcolorp)
  3955. elif p1cc.lower() == "stickmancolor":
  3956. prop9.shape(stickmancolorp)
  3957. elif p1cc.lower() == "carcolor":
  3958. prop9.shape(carcolorp)
  3959. elif p1cc.lower() == "thimblecolor":
  3960. prop9.shape(thimblecolorp)
  3961. elif trd2 == 8:
  3962. vi3 = 1
  3963. if p1cc.lower() == "cat":
  3964. prop10.shape(catp)
  3965. elif p1cc.lower() == "stickman":
  3966. prop10.shape(stickmanp)
  3967. elif p1cc.lower() == "car":
  3968. prop10.shape(carp)
  3969. elif p1cc.lower() == "thimble":
  3970. prop10.shape(thimblep)
  3971. elif p1cc.lower() == "catcolor":
  3972. prop10.shape(catcolorp)
  3973. elif p1cc.lower() == "stickmancolor":
  3974. prop10.shape(stickmancolorp)
  3975. elif p1cc.lower() == "carcolor":
  3976. prop10.shape(carcolorp)
  3977. elif p1cc.lower() == "thimblecolor":
  3978. prop10.shape(thimblecolorp)
  3979. elif trd2 == 9:
  3980. or1 = 1
  3981. if p1cc.lower() == "cat":
  3982. prop12.shape(catp)
  3983. elif p1cc.lower() == "stickman":
  3984. prop12.shape(stickmanp)
  3985. elif p1cc.lower() == "car":
  3986. prop12.shape(carp)
  3987. elif p1cc.lower() == "thimble":
  3988. prop12.shape(thimblep)
  3989. elif p1cc.lower() == "catcolor":
  3990. prop12.shape(catcolorp)
  3991. elif p1cc.lower() == "stickmancolor":
  3992. prop12.shape(stickmancolorp)
  3993. elif p1cc.lower() == "carcolor":
  3994. prop12.shape(carcolorp)
  3995. elif p1cc.lower() == "thimblecolor":
  3996. prop12.shape(thimblecolorp)
  3997. elif trd2 == 10:
  3998. or2 = 1
  3999. if p1cc.lower() == "cat":
  4000. prop13.shape(catp)
  4001. elif p1cc.lower() == "stickman":
  4002. prop13.shape(stickmanp)
  4003. elif p1cc.lower() == "car":
  4004. prop13.shape(carp)
  4005. elif p1cc.lower() == "thimble":
  4006. prop13.shape(thimblep)
  4007. elif p1cc.lower() == "catcolor":
  4008. prop13.shape(catcolorp)
  4009. elif p1cc.lower() == "stickmancolor":
  4010. prop13.shape(stickmancolorp)
  4011. elif p1cc.lower() == "carcolor":
  4012. prop13.shape(carcolorp)
  4013. elif p1cc.lower() == "thimblecolor":
  4014. prop13.shape(thimblecolorp)
  4015. elif trd2 == 11:
  4016. or3 = 1
  4017. if p1cc.lower() == "cat":
  4018. prop14.shape(catp)
  4019. elif p1cc.lower() == "stickman":
  4020. prop14.shape(stickmanp)
  4021. elif p1cc.lower() == "car":
  4022. prop14.shape(carp)
  4023. elif p1cc.lower() == "thimble":
  4024. prop14.shape(thimblep)
  4025. elif p1cc.lower() == "catcolor":
  4026. prop14.shape(catcolorp)
  4027. elif p1cc.lower() == "stickmancolor":
  4028. prop14.shape(stickmancolorp)
  4029. elif p1cc.lower() == "carcolor":
  4030. prop14.shape(carcolorp)
  4031. elif p1cc.lower() == "thimblecolor":
  4032. prop14.shape(thimblecolorp)
  4033. elif trd2 == 12:
  4034. red1 = 1
  4035. if p1cc.lower() == "cat":
  4036. prop15.shape(catp)
  4037. elif p1cc.lower() == "stickman":
  4038. prop15.shape(stickmanp)
  4039. elif p1cc.lower() == "car":
  4040. prop15.shape(carp)
  4041. elif p1cc.lower() == "thimble":
  4042. prop15.shape(thimblep)
  4043. elif p1cc.lower() == "catcolor":
  4044. prop15.shape(catcolorp)
  4045. elif p1cc.lower() == "stickmancolor":
  4046. prop15.shape(stickmancolorp)
  4047. elif p1cc.lower() == "carcolor":
  4048. prop15.shape(carcolorp)
  4049. elif p1cc.lower() == "thimblecolor":
  4050. prop15.shape(thimblecolorp)
  4051. elif trd2 == 13:
  4052. red2 = 1
  4053. if p1cc.lower() == "cat":
  4054. prop16.shape(catp)
  4055. elif p1cc.lower() == "stickman":
  4056. prop16.shape(stickmanp)
  4057. elif p1cc.lower() == "car":
  4058. prop16.shape(carp)
  4059. elif p1cc.lower() == "thimble":
  4060. prop16.shape(thimblep)
  4061. elif p1cc.lower() == "catcolor":
  4062. prop16.shape(catcolorp)
  4063. elif p1cc.lower() == "stickmancolor":
  4064. prop16.shape(stickmancolorp)
  4065. elif p1cc.lower() == "carcolor":
  4066. prop16.shape(carcolorp)
  4067. elif p1cc.lower() == "thimblecolor":
  4068. prop16.shape(thimblecolorp)
  4069. elif trd2 == 14:
  4070. red3 = 1
  4071. if p1cc.lower() == "cat":
  4072. prop17.shape(catp)
  4073. elif p1cc.lower() == "stickman":
  4074. prop17.shape(stickmanp)
  4075. elif p1cc.lower() == "car":
  4076. prop17.shape(carp)
  4077. elif p1cc.lower() == "thimble":
  4078. prop17.shape(thimblep)
  4079. elif p1cc.lower() == "catcolor":
  4080. prop17.shape(catcolorp)
  4081. elif p1cc.lower() == "stickmancolor":
  4082. prop17.shape(stickmancolorp)
  4083. elif p1cc.lower() == "carcolor":
  4084. prop17.shape(carcolorp)
  4085. elif p1cc.lower() == "thimblecolor":
  4086. prop17.shape(thimblecolorp)
  4087. elif trd2 == 15:
  4088. ye1 = 1
  4089. if p1cc.lower() == "cat":
  4090. prop19.shape(catp)
  4091. elif p1cc.lower() == "stickman":
  4092. prop19.shape(stickmanp)
  4093. elif p1cc.lower() == "car":
  4094. prop19.shape(carp)
  4095. elif p1cc.lower() == "thimble":
  4096. prop19.shape(thimblep)
  4097. elif p1cc.lower() == "catcolor":
  4098. prop19.shape(catcolorp)
  4099. elif p1cc.lower() == "stickmancolor":
  4100. prop19.shape(stickmancolorp)
  4101. elif p1cc.lower() == "carcolor":
  4102. prop19.shape(carcolorp)
  4103. elif p1cc.lower() == "thimblecolor":
  4104. prop19.shape(thimblecolorp)
  4105. elif trd2 == 16:
  4106. ye2 = 1
  4107. if p1cc.lower() == "cat":
  4108. prop20.shape(catp)
  4109. elif p1cc.lower() == "stickman":
  4110. prop20.shape(stickmanp)
  4111. elif p1cc.lower() == "car":
  4112. prop20.shape(carp)
  4113. elif p1cc.lower() == "thimble":
  4114. prop20.shape(thimblep)
  4115. elif p1cc.lower() == "catcolor":
  4116. prop20.shape(catcolorp)
  4117. elif p1cc.lower() == "stickmancolor":
  4118. prop20.shape(stickmancolorp)
  4119. elif p1cc.lower() == "carcolor":
  4120. prop20.shape(carcolorp)
  4121. elif p1cc.lower() == "thimblecolor":
  4122. prop20.shape(thimblecolorp)
  4123. elif trd2 == 17:
  4124. ye3 = 1
  4125. if p1cc.lower() == "cat":
  4126. prop22.shape(catp)
  4127. elif p1cc.lower() == "stickman":
  4128. prop22.shape(stickmanp)
  4129. elif p1cc.lower() == "car":
  4130. prop22.shape(carp)
  4131. elif p1cc.lower() == "thimble":
  4132. prop22.shape(thimblep)
  4133. elif p1cc.lower() == "catcolor":
  4134. prop22.shape(catcolorp)
  4135. elif p1cc.lower() == "stickmancolor":
  4136. prop22.shape(stickmancolorp)
  4137. elif p1cc.lower() == "carcolor":
  4138. prop22.shape(carcolorp)
  4139. elif p1cc.lower() == "thimblecolor":
  4140. prop22.shape(thimblecolorp)
  4141. elif trd2 == 18:
  4142. gr1 = 1
  4143. if p1cc.lower() == "cat":
  4144. prop23.shape(catp)
  4145. elif p1cc.lower() == "stickman":
  4146. prop23.shape(stickmanp)
  4147. elif p1cc.lower() == "car":
  4148. prop23.shape(carp)
  4149. elif p1cc.lower() == "thimble":
  4150. prop23.shape(thimblep)
  4151. elif p1cc.lower() == "catcolor":
  4152. prop23.shape(catcolorp)
  4153. elif p1cc.lower() == "stickmancolor":
  4154. prop23.shape(stickmancolorp)
  4155. elif p1cc.lower() == "carcolor":
  4156. prop23.shape(carcolorp)
  4157. elif p1cc.lower() == "thimblecolor":
  4158. prop23.shape(thimblecolorp)
  4159. elif trd2 == 19:
  4160. gr2 = 1
  4161. if p1cc.lower() == "cat":
  4162. prop24.shape(catp)
  4163. elif p1cc.lower() == "stickman":
  4164. prop24.shape(stickmanp)
  4165. elif p1cc.lower() == "car":
  4166. prop24.shape(carp)
  4167. elif p1cc.lower() == "thimble":
  4168. prop24.shape(thimblep)
  4169. elif p1cc.lower() == "catcolor":
  4170. prop24.shape(catcolorp)
  4171. elif p1cc.lower() == "stickmancolor":
  4172. prop24.shape(stickmancolorp)
  4173. elif p1cc.lower() == "carcolor":
  4174. prop24.shape(carcolorp)
  4175. elif p1cc.lower() == "thimblecolor":
  4176. prop24.shape(thimblecolorp)
  4177. elif trd2 == 20:
  4178. gr3 = 1
  4179. if p1cc.lower() == "cat":
  4180. prop25.shape(catp)
  4181. elif p1cc.lower() == "stickman":
  4182. prop25.shape(stickmanp)
  4183. elif p1cc.lower() == "car":
  4184. prop25.shape(carp)
  4185. elif p1cc.lower() == "thimble":
  4186. prop25.shape(thimblep)
  4187. elif p1cc.lower() == "catcolor":
  4188. prop25.shape(catcolorp)
  4189. elif p1cc.lower() == "stickmancolor":
  4190. prop25.shape(stickmancolorp)
  4191. elif p1cc.lower() == "carcolor":
  4192. prop25.shape(carcolorp)
  4193. elif p1cc.lower() == "thimblecolor":
  4194. prop25.shape(thimblecolorp)
  4195. elif trd2 == 21:
  4196. bl1 = 1
  4197. if p1cc.lower() == "cat":
  4198. prop27.shape(catp)
  4199. elif p1cc.lower() == "stickman":
  4200. prop27.shape(stickmanp)
  4201. elif p1cc.lower() == "car":
  4202. prop27.shape(carp)
  4203. elif p1cc.lower() == "thimble":
  4204. prop27.shape(thimblep)
  4205. elif p1cc.lower() == "catcolor":
  4206. prop27.shape(catcolorp)
  4207. elif p1cc.lower() == "stickmancolor":
  4208. prop27.shape(stickmancolorp)
  4209. elif p1cc.lower() == "carcolor":
  4210. prop27.shape(carcolorp)
  4211. elif p1cc.lower() == "thimblecolor":
  4212. prop27.shape(thimblecolorp)
  4213. elif trd2 == 22:
  4214. bl2 = 1
  4215. if p1cc.lower() == "cat":
  4216. prop28.shape(catp)
  4217. elif p1cc.lower() == "stickman":
  4218. prop28.shape(stickmanp)
  4219. elif p1cc.lower() == "car":
  4220. prop28.shape(carp)
  4221. elif p1cc.lower() == "thimble":
  4222. prop28.shape(thimblep)
  4223. elif p1cc.lower() == "catcolor":
  4224. prop28.shape(catcolorp)
  4225. elif p1cc.lower() == "stickmancolor":
  4226. prop28.shape(stickmancolorp)
  4227. elif p1cc.lower() == "carcolor":
  4228. prop28.shape(carcolorp)
  4229. elif p1cc.lower() == "thimblecolor":
  4230. prop28.shape(thimblecolorp)
  4231. elif trd2 == 23:
  4232. rrr = 1
  4233. p1rr = p1rr + 1
  4234. p2rr = p2rr - 1
  4235. if p1cc.lower() == "cat":
  4236. prop3.shape(catp)
  4237. elif p1cc.lower() == "stickman":
  4238. prop3.shape(stickmanp)
  4239. elif p1cc.lower() == "car":
  4240. prop3.shape(carp)
  4241. elif p1cc.lower() == "thimble":
  4242. prop3.shape(thimblep)
  4243. elif p1cc.lower() == "catcolor":
  4244. prop3.shape(catcolorp)
  4245. elif p1cc.lower() == "stickmancolor":
  4246. prop3.shape(stickmancolorp)
  4247. elif p1cc.lower() == "carcolor":
  4248. prop3.shape(carcolorp)
  4249. elif p1cc.lower() == "thimblecolor":
  4250. prop3.shape(thimblecolorp)
  4251. elif trd2 == 24:
  4252. prr = 1
  4253. p1rr = p1rr + 1
  4254. p2rr = p2rr - 1
  4255. if p1cc.lower() == "cat":
  4256. prop11.shape(catp)
  4257. elif p1cc.lower() == "stickman":
  4258. prop11.shape(stickmanp)
  4259. elif p1cc.lower() == "car":
  4260. prop11.shape(carp)
  4261. elif p1cc.lower() == "thimble":
  4262. prop11.shape(thimblep)
  4263. elif p1cc.lower() == "catcolor":
  4264. prop11.shape(catcolorp)
  4265. elif p1cc.lower() == "stickmancolor":
  4266. prop11.shape(stickmancolorp)
  4267. elif p1cc.lower() == "carcolor":
  4268. prop11.shape(carcolorp)
  4269. elif p1cc.lower() == "thimblecolor":
  4270. prop11.shape(thimblecolorp)
  4271. elif trd2 == 25:
  4272. brr = 1
  4273. p1rr = p1rr + 1
  4274. p2rr = p2rr - 1
  4275. if p1cc.lower() == "cat":
  4276. prop18.shape(catp)
  4277. elif p1cc.lower() == "stickman":
  4278. prop18.shape(stickmanp)
  4279. elif p1cc.lower() == "car":
  4280. prop18.shape(carp)
  4281. elif p1cc.lower() == "thimble":
  4282. prop18.shape(thimblep)
  4283. elif p1cc.lower() == "catcolor":
  4284. prop18.shape(catcolorp)
  4285. elif p1cc.lower() == "stickmancolor":
  4286. prop18.shape(stickmancolorp)
  4287. elif p1cc.lower() == "carcolor":
  4288. prop18.shape(carcolorp)
  4289. elif p1cc.lower() == "thimblecolor":
  4290. prop18.shape(thimblecolorp)
  4291. elif trd2 == 26:
  4292. srr = 1
  4293. p1rr = p1rr + 1
  4294. p2rr = p2rr - 1
  4295. if p1cc.lower() == "cat":
  4296. prop26.shape(catp)
  4297. elif p1cc.lower() == "stickman":
  4298. prop26.shape(stickmanp)
  4299. elif p1cc.lower() == "car":
  4300. prop26.shape(carp)
  4301. elif p1cc.lower() == "thimble":
  4302. prop26.shape(thimblep)
  4303. elif p1cc.lower() == "catcolor":
  4304. prop26.shape(catcolorp)
  4305. elif p1cc.lower() == "stickmancolor":
  4306. prop26.shape(stickmancolorp)
  4307. elif p1cc.lower() == "carcolor":
  4308. prop26.shape(carcolorp)
  4309. elif p1cc.lower() == "thimblecolor":
  4310. prop26.shape(thimblecolorp)
  4311. elif trd2 == 27:
  4312. ec = 1
  4313. p1u = p1u + 1
  4314. p2u = p2u - 1
  4315. if p1cc.lower() == "cat":
  4316. prop8.shape(catp)
  4317. elif p1cc.lower() == "stickman":
  4318. prop8.shape(stickmanp)
  4319. elif p1cc.lower() == "car":
  4320. prop8.shape(carp)
  4321. elif p1cc.lower() == "thimble":
  4322. prop8.shape(thimblep)
  4323. elif p1cc.lower() == "catcolor":
  4324. prop8.shape(catcolorp)
  4325. elif p1cc.lower() == "stickmancolor":
  4326. prop8.shape(stickmancolorp)
  4327. elif p1cc.lower() == "carcolor":
  4328. prop8.shape(carcolorp)
  4329. elif p1cc.lower() == "thimblecolor":
  4330. prop8.shape(thimblecolorp)
  4331. elif trd2 == 28:
  4332. ww = 1
  4333. p1u = p1u + 1
  4334. p2u = p2u - 1
  4335. if p1cc.lower() == "cat":
  4336. prop21.shape(catp)
  4337. elif p1cc.lower() == "stickman":
  4338. prop21.shape(stickmanp)
  4339. elif p1cc.lower() == "car":
  4340. prop21.shape(carp)
  4341. elif p1cc.lower() == "thimble":
  4342. prop21.shape(thimblep)
  4343. elif p1cc.lower() == "catcolor":
  4344. prop21.shape(catcolorp)
  4345. elif p1cc.lower() == "stickmancolor":
  4346. prop21.shape(stickmancolorp)
  4347. elif p1cc.lower() == "carcolor":
  4348. prop21.shape(carcolorp)
  4349. elif p1cc.lower() == "thimblecolor":
  4350. prop21.shape(thimblecolorp)
  4351. p1m = p1m - trd1m
  4352. p1m = p1m + trd2m
  4353. p2m = p2m - trd2m
  4354. p2m = p2m + trd1m
  4355. print("\nYou now have $" + str(p1m) + ".", end='')
  4356. input()
  4357. elif trade.lower() == "n":
  4358. print(p2, "declined your offer.")
  4359. else:
  4360. print("Invalid response.")
  4361. p1c = "x"
  4362. print()
  4363. #If player chooses to go bankrupt...
  4364. elif p1c.lower() == "d" or p1c.lower() == "vii" or p1c.lower() == "vii.":
  4365. p1lose = "x"
  4366. while p1lose.lower() != "y" and p1lose.lower() != "n":
  4367. print("Do you really want to declare bankruptcy?")
  4368. p1lose = input("You will lose the game! (y/n): ")
  4369. print()
  4370. if p1lose.lower() == "y":
  4371. print("Congratulations", p2 + ", you are a Monopoly tycoon!")
  4372. game = 0
  4373. wn.exitonclick()
  4374. elif p1lose.lower() == "n":
  4375. print("Now then...\n")
  4376. p1c = "x"
  4377. else:
  4378. print("Invalid response.\n")
  4379. #If player gives an invalid response...
  4380. else:
  4381. print("\nInvalid response.")
  4382. ########Sets dice value
  4383. if p1j == 0 and game == 1:
  4384. die1 = random.randint(1, 6)
  4385. die2 = random.randint(1, 6)
  4386. print(p1, "rolled a", str(die1), "and a", str(die2) + "!\n")
  4387. ############Checks to make sure player space is below 40
  4388. for i in range(die1 + die2):
  4389. if p1s < 40:
  4390. if p1x > -333 and p1y == -335:
  4391. if p1s == 0 or p1s == 9:
  4392. p1x = p1x - 82
  4393. else:
  4394. p1x = p1x - 63
  4395. elif p1x == -333 and p1y < 333:
  4396. if p1s == 10 or p1s == 19:
  4397. p1y = p1y + 82
  4398. else:
  4399. p1y = p1y + 63
  4400. elif p1x < 335 and p1y == 333:
  4401. if p1s == 20 or p1s == 29:
  4402. p1x = p1x + 82
  4403. else:
  4404. p1x = p1x + 63
  4405. elif p1x == 335 and p1y > -335:
  4406. if p1s == 30 or p1s == 39:
  4407. p1y = p1y - 82
  4408. else:
  4409. p1y = p1y - 63
  4410. #Sets player position on board
  4411. player1.setpos(p1x, p1y)
  4412. #Increases space player resides on
  4413. p1s = p1s + 1
  4414. #Resets player 1 space count to 0 when passing 39
  4415. if p1s == 40:
  4416. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  4417. print(p1, "collects $200 for crossing Go!")
  4418. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  4419. p1m = p1m + 200
  4420. p1s = 0
  4421.  
  4422. ############Tells what space player lands on
  4423. if p1s != 30:
  4424. print("Landed on", space[p1s] + ".", end='')
  4425. elif p1s == 30:
  4426. print("Landed in", space[p1s] + ".", end='')
  4427. input()
  4428.  
  4429. ############If player lands on Chance...
  4430. if p1s == 7 or p1s == 22 or p1s == 36:
  4431. chance = random.randint(1, 16)
  4432. #Go...
  4433. if chance == 1:
  4434. card.shape(chance1)
  4435. card.st()
  4436. card.setpos(0, 0)
  4437. input("Advance to Go, collect $200!")
  4438. while p1s != 0:
  4439. if p1s < 40:
  4440. if p1x > -333 and p1y == -335:
  4441. if p1s == 0 or p1s == 9:
  4442. p1x = p1x - 82
  4443. else:
  4444. p1x = p1x - 63
  4445. elif p1x == -333 and p1y < 333:
  4446. if p1s == 10 or p1s == 19:
  4447. p1y = p1y + 82
  4448. else:
  4449. p1y = p1y + 63
  4450. elif p1x < 335 and p1y == 333:
  4451. if p1s == 20 or p1s == 29:
  4452. p1x = p1x + 82
  4453. else:
  4454. p1x = p1x + 63
  4455. elif p1x == 335 and p1y > -335:
  4456. if p1s == 30 or p1s == 39:
  4457. p1y = p1y - 82
  4458. else:
  4459. p1y = p1y - 63
  4460. #Sets player position on board
  4461. player1.setpos(p1x, p1y)
  4462. #Increases space player resides on
  4463. p1s = p1s + 1
  4464. #Resets player 1 space count to 0 when passing 39
  4465. if p1s == 40:
  4466. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  4467. print(p1, "collects $200 for crossing Go!")
  4468. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  4469. p1m = p1m + 200
  4470. p1s = 0
  4471. card.setpos(800, 0)
  4472. card.ht()
  4473. card.setpos(-800, 0)
  4474. #Boardwalk...
  4475. if chance == 2:
  4476. card.shape(chance2)
  4477. card.st()
  4478. card.setpos(0, 0)
  4479. input("Advance to Boardwalk.")
  4480. while p1s != 39:
  4481. if p1s < 40:
  4482. if p1x > -333 and p1y == -335:
  4483. if p1s == 0 or p1s == 9:
  4484. p1x = p1x - 82
  4485. else:
  4486. p1x = p1x - 63
  4487. elif p1x == -333 and p1y < 333:
  4488. if p1s == 10 or p1s == 19:
  4489. p1y = p1y + 82
  4490. else:
  4491. p1y = p1y + 63
  4492. elif p1x < 335 and p1y == 333:
  4493. if p1s == 20 or p1s == 29:
  4494. p1x = p1x + 82
  4495. else:
  4496. p1x = p1x + 63
  4497. elif p1x == 335 and p1y > -335:
  4498. if p1s == 30 or p1s == 39:
  4499. p1y = p1y - 82
  4500. else:
  4501. p1y = p1y - 63
  4502. #Sets player position on board
  4503. player1.setpos(p1x, p1y)
  4504. #Increases space player resides on
  4505. p1s = p1s + 1
  4506. #Resets player 1 space count to 0 when passing 39
  4507. if p1s == 40:
  4508. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  4509. print(p1, "collects $200 for crossing Go!")
  4510. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  4511. p1m = p1m + 200
  4512. p1s = 0
  4513. card.setpos(800, 0)
  4514. card.ht()
  4515. card.setpos(-800, 0)
  4516. #Illinois Avenue...
  4517. if chance == 3:
  4518. card.shape(chance3)
  4519. card.st()
  4520. card.setpos(0, 0)
  4521. input("Advance to Illinois Avenue. If you pass Go, collect $200.")
  4522. while p1s != 24:
  4523. if p1s < 40:
  4524. if p1x > -333 and p1y == -335:
  4525. if p1s == 0 or p1s == 9:
  4526. p1x = p1x - 82
  4527. else:
  4528. p1x = p1x - 63
  4529. elif p1x == -333 and p1y < 333:
  4530. if p1s == 10 or p1s == 19:
  4531. p1y = p1y + 82
  4532. else:
  4533. p1y = p1y + 63
  4534. elif p1x < 335 and p1y == 333:
  4535. if p1s == 20 or p1s == 29:
  4536. p1x = p1x + 82
  4537. else:
  4538. p1x = p1x + 63
  4539. elif p1x == 335 and p1y > -335:
  4540. if p1s == 30 or p1s == 39:
  4541. p1y = p1y - 82
  4542. else:
  4543. p1y = p1y - 63
  4544. #Sets player position on board
  4545. player1.setpos(p1x, p1y)
  4546. #Increases space player resides on
  4547. p1s = p1s + 1
  4548. #Resets player 1 space count to 0 when passing 39
  4549. if p1s == 40:
  4550. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  4551. print(p1, "collects $200 for crossing Go!")
  4552. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  4553. p1m = p1m + 200
  4554. p1s = 0
  4555. card.setpos(800, 0)
  4556. card.ht()
  4557. card.setpos(-800, 0)
  4558. #St. Charles Place...
  4559. if chance == 4:
  4560. card.shape(chance4)
  4561. card.st()
  4562. card.setpos(0, 0)
  4563. input("Advance to St. Charles Place. If you pass Go, collect $200.")
  4564. while p1s != 11:
  4565. if p1s < 40:
  4566. if p1x > -333 and p1y == -335:
  4567. if p1s == 0 or p1s == 9:
  4568. p1x = p1x - 82
  4569. else:
  4570. p1x = p1x - 63
  4571. elif p1x == -333 and p1y < 333:
  4572. if p1s == 10 or p1s == 19:
  4573. p1y = p1y + 82
  4574. else:
  4575. p1y = p1y + 63
  4576. elif p1x < 335 and p1y == 333:
  4577. if p1s == 20 or p1s == 29:
  4578. p1x = p1x + 82
  4579. else:
  4580. p1x = p1x + 63
  4581. elif p1x == 335 and p1y > -335:
  4582. if p1s == 30 or p1s == 39:
  4583. p1y = p1y - 82
  4584. else:
  4585. p1y = p1y - 63
  4586. #Sets player position on board
  4587. player1.setpos(p1x, p1y)
  4588. #Increases space player resides on
  4589. p1s = p1s + 1
  4590. #Resets player 1 space count to 0 when passing 39
  4591. if p1s == 40:
  4592. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  4593. print(p1, "collects $200 for crossing Go!")
  4594. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  4595. p1m = p1m + 200
  4596. p1s = 0
  4597. card.setpos(800, 0)
  4598. card.ht()
  4599. card.setpos(-800, 0)
  4600. #Random space...
  4601. if chance == 5:
  4602. card.shape(chance5)
  4603. card.st()
  4604. card.setpos(0, 0)
  4605. input("Advance to a random space. If you pass Go, collect $200.")
  4606. while p1s != random.randint(0, 39):
  4607. if p1s < 40:
  4608. if p1x > -333 and p1y == -335:
  4609. if p1s == 0 or p1s == 9:
  4610. p1x = p1x - 82
  4611. else:
  4612. p1x = p1x - 63
  4613. elif p1x == -333 and p1y < 333:
  4614. if p1s == 10 or p1s == 19:
  4615. p1y = p1y + 82
  4616. else:
  4617. p1y = p1y + 63
  4618. elif p1x < 335 and p1y == 333:
  4619. if p1s == 20 or p1s == 29:
  4620. p1x = p1x + 82
  4621. else:
  4622. p1x = p1x + 63
  4623. elif p1x == 335 and p1y > -335:
  4624. if p1s == 30 or p1s == 39:
  4625. p1y = p1y - 82
  4626. else:
  4627. p1y = p1y - 63
  4628. #Sets player position on board
  4629. player1.setpos(p1x, p1y)
  4630. #Increases space player resides on
  4631. p1s = p1s + 1
  4632. #Resets player 1 space count to 0 when passing 39
  4633. if p1s == 40:
  4634. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  4635. print(p1, "collects $200 for crossing Go!")
  4636. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  4637. p1m = p1m + 200
  4638. p1s = 0
  4639. card.setpos(800, 0)
  4640. card.ht()
  4641. card.setpos(-800, 0)
  4642. #Nearest Railroad...
  4643. if chance == 6:
  4644. card.shape(chance6)
  4645. card.st()
  4646. card.setpos(0, 0)
  4647. input("Advance to the nearest Railroad. If you pass Go, collect $200.")
  4648. while p1s != 5 and p1s != 15 and p1s != 25 and p1s != 35:
  4649. if p1s < 40:
  4650. if p1x > -333 and p1y == -335:
  4651. if p1s == 0 or p1s == 9:
  4652. p1x = p1x - 82
  4653. else:
  4654. p1x = p1x - 63
  4655. elif p1x == -333 and p1y < 333:
  4656. if p1s == 10 or p1s == 19:
  4657. p1y = p1y + 82
  4658. else:
  4659. p1y = p1y + 63
  4660. elif p1x < 335 and p1y == 333:
  4661. if p1s == 20 or p1s == 29:
  4662. p1x = p1x + 82
  4663. else:
  4664. p1x = p1x + 63
  4665. elif p1x == 335 and p1y > -335:
  4666. if p1s == 30 or p1s == 39:
  4667. p1y = p1y - 82
  4668. else:
  4669. p1y = p1y - 63
  4670. #Sets player position on board
  4671. player1.setpos(p1x, p1y)
  4672. #Increases space player resides on
  4673. p1s = p1s + 1
  4674. #Resets player 1 space count to 0 when passing 39
  4675. if p1s == 40:
  4676. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  4677. print(p1, "collects $200 for crossing Go!")
  4678. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  4679. p1m = p1m + 200
  4680. p1s = 0
  4681. card.setpos(800, 0)
  4682. card.ht()
  4683. card.setpos(-800, 0)
  4684. #Back 2 spaces...
  4685. if chance == 7:
  4686. card.shape(chance7)
  4687. card.st()
  4688. card.setpos(0, 0)
  4689. input("Go back 2 spaces.")
  4690. for i in range(2):
  4691. if p1s > -1:
  4692. if p1x > -333 and p1y == -335:
  4693. if p1s == 0 or p1s == 9:
  4694. p1x = p1x + 82
  4695. else:
  4696. p1x = p1x + 63
  4697. elif p1x == -333 and p1y < 333:
  4698. if p1s == 10 or p1s == 19:
  4699. p1y = p1y - 82
  4700. else:
  4701. p1y = p1y - 63
  4702. elif p1x < 335 and p1y == 333:
  4703. if p1s == 20 or p1s == 29:
  4704. p1x = p1x - 82
  4705. else:
  4706. p1x = p1x - 63
  4707. elif p1x == 335 and p1y > -335:
  4708. if p1s == 30 or p1s == 39:
  4709. p1y = p1y + 82
  4710. else:
  4711. p1y = p1y + 63
  4712. #Sets player position on board
  4713. player1.setpos(p1x, p1y)
  4714. #Increases space player resides on
  4715. p1s = p1s - 1
  4716. #Resets player 1 space count to 0 when passing 39
  4717. if p1s == -1:
  4718. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  4719. print(p1, "collects $200 for crossing Go!")
  4720. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  4721. p1m = p1m + 200
  4722. p1s = 39
  4723. card.setpos(800, 0)
  4724. card.ht()
  4725. card.setpos(-800, 0)
  4726. #$50 dividend...
  4727. if chance == 8:
  4728. card.shape(chance8)
  4729. card.st()
  4730. card.setpos(0, 0)
  4731. input("The bank pays you a dividend of $50.")
  4732. p1m = p1m + 50
  4733. card.setpos(800, 0)
  4734. card.ht()
  4735. card.setpos(-800, 0)
  4736. print("\nYou now have $" + str(p1m) + ".")
  4737. input()
  4738. #Get Out of Jail Free Card...
  4739. if chance == 9:
  4740. card.shape(chance9)
  4741. card.st()
  4742. card.setpos(0, 0)
  4743. input("Get out of Jail free.")
  4744. p1free = p1free + 1
  4745. card.setpos(800, 0)
  4746. card.ht()
  4747. card.setpos(-800, 0)
  4748. #Go to Jail...
  4749. if chance == 10:
  4750. card.shape(chance10)
  4751. card.st()
  4752. card.setpos(0, 0)
  4753. input("Go to Jail. Do not collect $200.")
  4754. while p1s != 30:
  4755. if p1s < 40:
  4756. if p1x > -333 and p1y == -335:
  4757. if p1s == 0 or p1s == 9:
  4758. p1x = p1x - 82
  4759. else:
  4760. p1x = p1x - 63
  4761. elif p1x == -333 and p1y < 333:
  4762. if p1s == 10 or p1s == 19:
  4763. p1y = p1y + 82
  4764. else:
  4765. p1y = p1y + 63
  4766. elif p1x < 335 and p1y == 333:
  4767. if p1s == 20 or p1s == 29:
  4768. p1x = p1x + 82
  4769. else:
  4770. p1x = p1x + 63
  4771. elif p1x == 335 and p1y > -335:
  4772. if p1s == 30 or p1s == 39:
  4773. p1y = p1y - 82
  4774. else:
  4775. p1y = p1y - 63
  4776. #Sets player position on board
  4777. player1.setpos(p1x, p1y)
  4778. #Increases space player resides on
  4779. p1s = p1s + 1
  4780. #Resets player 1 space count to 0 when passing 39
  4781. if p1s == 40:
  4782. p1s = 0
  4783. card.setpos(800, 0)
  4784. card.ht()
  4785. card.setpos(-800, 0)
  4786. #Property repairs...
  4787. if chance == 11:
  4788. card.shape(chance11)
  4789. card.st()
  4790. card.setpos(0, 0)
  4791. input("Property repairs--for each house, pay $25. For each hotel, pay $100.\n")
  4792. if br1 == 1 and br2 == 1:
  4793. if br1h == 5:
  4794. p1m = p1m - 100
  4795. else:
  4796. p1m = p1m - br1h * 25
  4797. if br2h == 5:
  4798. p1m = p1m - 100
  4799. else:
  4800. p1m = p1m - br2h * 25
  4801. if cy1 == 1 and cy2 == 1 and cy3 == 1:
  4802. if cy1h == 5:
  4803. p1m = p1m - 100
  4804. else:
  4805. p1m = p1m - cy1h * 25
  4806. if cy2h == 5:
  4807. p1m = p1m - 100
  4808. else:
  4809. p1m = p1m - cy2h * 25
  4810. if cy3h == 5:
  4811. p1m = p1m - 100
  4812. else:
  4813. p1m = p1m - cy3h * 25
  4814. if vi1 == 1 and vi2 == 1 and vi3 == 1:
  4815. if vi1h == 5:
  4816. p1m = p1m - 100
  4817. else:
  4818. p1m = p1m - vi1h * 25
  4819. if vi2h == 5:
  4820. p1m = p1m - 100
  4821. else:
  4822. p1m = p1m - vi2h * 25
  4823. if vi3h == 5:
  4824. p1m = p1m - 100
  4825. else:
  4826. p1m = p1m - vi3h * 25
  4827. if or1 == 1 and or2 == 1 and or3 == 1:
  4828. if or1h == 5:
  4829. p1m = p1m - 100
  4830. else:
  4831. p1m = p1m - or1h * 25
  4832. if or2h == 5:
  4833. p1m = p1m - 100
  4834. else:
  4835. p1m = p1m - or2h * 25
  4836. if or3h == 5:
  4837. p1m = p1m - 100
  4838. else:
  4839. p1m = p1m - or3h * 25
  4840. if red1 == 1 and red2 == 1 and red3 == 1:
  4841. if red1h == 5:
  4842. p1m = p1m - 100
  4843. else:
  4844. p1m = p1m - red1h * 25
  4845. if red2h == 5:
  4846. p1m = p1m - 100
  4847. else:
  4848. p1m = p1m - red2h * 25
  4849. if red3h == 5:
  4850. p1m = p1m - 100
  4851. else:
  4852. p1m = p1m - red3h * 25
  4853. if ye1 == 1 and ye2 == 1 and ye3 == 1:
  4854. if ye1h == 5:
  4855. p1m = p1m - 100
  4856. else:
  4857. p1m = p1m - ye1h * 25
  4858. if ye2h == 5:
  4859. p1m = p1m - 100
  4860. else:
  4861. p1m = p1m - ye2h * 25
  4862. if ye3h == 5:
  4863. p1m = p1m - 100
  4864. else:
  4865. p1m = p1m - ye3h * 25
  4866. if gr1 == 1 and gr2 == 1 and gr3 == 1:
  4867. if gr1h == 5:
  4868. p1m = p1m - 100
  4869. else:
  4870. p1m = p1m - gr1h * 25
  4871. if gr2h == 5:
  4872. p1m = p1m - 100
  4873. else:
  4874. p1m = p1m - gr2h * 25
  4875. if gr3h == 5:
  4876. p1m = p1m - 100
  4877. else:
  4878. p1m = p1m - gr3h * 25
  4879. if bl1 == 1 and bl2 == 1:
  4880. if bl1h == 5:
  4881. p1m = p1m - 100
  4882. else:
  4883. p1m = p1m - bl1h * 25
  4884. if bl2h == 5:
  4885. p1m = p1m - 100
  4886. else:
  4887. p1m = p1m - bl2h * 25
  4888. card.setpos(800, 0)
  4889. card.ht()
  4890. card.setpos(-800, 0)
  4891. print("You now have $" + str(p1m) + ".")
  4892. input()
  4893. #Speeding ticket...
  4894. if chance == 12:
  4895. card.shape(chance12)
  4896. card.st()
  4897. card.setpos(0, 0)
  4898. input("Pay speeding ticket of $15.\n")
  4899. p1m = p1m - 15
  4900. card.setpos(800, 0)
  4901. card.ht()
  4902. card.setpos(-800, 0)
  4903. print("You now have $" + str(p1m) + ".")
  4904. input()
  4905. #Reading Railroad...
  4906. if chance == 13:
  4907. card.shape(chance13)
  4908. card.st()
  4909. card.setpos(0, 0)
  4910. input("Take a trip to Reading Railroad! If you pass Go, collect $200.")
  4911. while p1s != 5:
  4912. if p1s < 40:
  4913. if p1x > -333 and p1y == -335:
  4914. if p1s == 0 or p1s == 9:
  4915. p1x = p1x - 82
  4916. else:
  4917. p1x = p1x - 63
  4918. elif p1x == -333 and p1y < 333:
  4919. if p1s == 10 or p1s == 19:
  4920. p1y = p1y + 82
  4921. else:
  4922. p1y = p1y + 63
  4923. elif p1x < 335 and p1y == 333:
  4924. if p1s == 20 or p1s == 29:
  4925. p1x = p1x + 82
  4926. else:
  4927. p1x = p1x + 63
  4928. elif p1x == 335 and p1y > -335:
  4929. if p1s == 30 or p1s == 39:
  4930. p1y = p1y - 82
  4931. else:
  4932. p1y = p1y - 63
  4933. #Sets player position on board
  4934. player1.setpos(p1x, p1y)
  4935. #Increases space player resides on
  4936. p1s = p1s + 1
  4937. #Resets player 1 space count to 0 when passing 39
  4938. if p1s == 40:
  4939. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  4940. print(p1, "collects $200 for crossing Go!")
  4941. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  4942. p1m = p1m + 200
  4943. p1s = 0
  4944. card.setpos(800, 0)
  4945. card.ht()
  4946. card.setpos(-800, 0)
  4947. #Lose a bet...
  4948. if chance == 14:
  4949. card.shape(chance14)
  4950. card.st()
  4951. card.setpos(0, 0)
  4952. print("Lose a bet to", p2 + ", pay $50.")
  4953. input()
  4954. p1m = p1m - 50
  4955. p2m = p2m + 50
  4956. card.setpos(800, 0)
  4957. card.ht()
  4958. card.setpos(-800, 0)
  4959. print("You now have $" + str(p1m) + ".")
  4960. input()
  4961. #Stock investment...
  4962. if chance == 15:
  4963. card.shape(chance15)
  4964. card.st()
  4965. card.setpos(0, 0)
  4966. input("A stock investment you made just paid off! Collect $150.\n")
  4967. p1m = p1m + 150
  4968. card.setpos(800, 0)
  4969. card.ht()
  4970. card.setpos(-800, 0)
  4971. print("You now have $" + str(p1m) + ".")
  4972. input()
  4973. #Tournament winner...
  4974. if chance == 16:
  4975. card.shape(chance16)
  4976. card.st()
  4977. card.setpos(0, 0)
  4978. input("You took 1st place in a local gaming tournament! Collect $100.\n")
  4979. p1m = p1m + 100
  4980. card.setpos(800, 0)
  4981. card.ht()
  4982. card.setpos(-800, 0)
  4983. print("You now have $" + str(p1m) + ".")
  4984. input()
  4985.  
  4986. ############If player lands on Community Chest...
  4987. if p1s == 2 or p1s == 17 or p1s == 33:
  4988. comm = random.randint(1, 16)
  4989. #Go...
  4990. if comm == 1:
  4991. ccard.shape(comm1)
  4992. ccard.st()
  4993. ccard.setpos(0, 0)
  4994. input("Advance to Go, collect $200!")
  4995. while p1s != 0:
  4996. if p1s < 40:
  4997. if p1x > -333 and p1y == -335:
  4998. if p1s == 0 or p1s == 9:
  4999. p1x = p1x - 82
  5000. else:
  5001. p1x = p1x - 63
  5002. elif p1x == -333 and p1y < 333:
  5003. if p1s == 10 or p1s == 19:
  5004. p1y = p1y + 82
  5005. else:
  5006. p1y = p1y + 63
  5007. elif p1x < 335 and p1y == 333:
  5008. if p1s == 20 or p1s == 29:
  5009. p1x = p1x + 82
  5010. else:
  5011. p1x = p1x + 63
  5012. elif p1x == 335 and p1y > -335:
  5013. if p1s == 30 or p1s == 39:
  5014. p1y = p1y - 82
  5015. else:
  5016. p1y = p1y - 63
  5017. #Sets player position on board
  5018. player1.setpos(p1x, p1y)
  5019. #Increases space player resides on
  5020. p1s = p1s + 1
  5021. #Resets player 1 space count to 0 when passing 39
  5022. if p1s == 40:
  5023. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  5024. print(p1, "collects $200 for crossing Go!")
  5025. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n")
  5026. p1m = p1m + 200
  5027. p1s = 0
  5028. ccard.setpos(800, 0)
  5029. ccard.ht()
  5030. ccard.setpos(-800, 0)
  5031. #Finding wallet...
  5032. if comm == 2:
  5033. ccard.shape(comm2)
  5034. ccard.st()
  5035. ccard.setpos(0, 0)
  5036. input("Find a wallet! Collect whatever money is inside!\n")
  5037. wallet = random.randint(0, 1000)
  5038. p1m = p1m + wallet
  5039. print(p1, "found $" + str(wallet), "inside the wallet!")
  5040. ccard.setpos(800, 0)
  5041. ccard.ht()
  5042. ccard.setpos(-800, 0)
  5043. print("You now have $" + str(p1m) + ".")
  5044. input()
  5045. #Painting...
  5046. if comm == 3:
  5047. ccard.shape(comm3)
  5048. ccard.st()
  5049. ccard.setpos(0, 0)
  5050. input("A painting you made sells for $20!\n")
  5051. p1m = p1m + 20
  5052. ccard.setpos(800, 0)
  5053. ccard.ht()
  5054. ccard.setpos(-800, 0)
  5055. print("You now have $" + str(p1m) + ".")
  5056. input()
  5057. #Doctor's fees...
  5058. if comm == 4:
  5059. ccard.shape(comm4)
  5060. ccard.st()
  5061. ccard.setpos(0, 0)
  5062. input("Doctor's fees, pay $50.\n")
  5063. p1m = p1m - 50
  5064. ccard.setpos(800, 0)
  5065. ccard.ht()
  5066. ccard.setpos(-800, 0)
  5067. print("You now have $" + str(p1m) + ".")
  5068. input()
  5069. #Bank error...
  5070. if comm == 5:
  5071. ccard.shape(comm5)
  5072. ccard.st()
  5073. ccard.setpos(0, 0)
  5074. input("Bank error in your favor! Collect $200.\n")
  5075. p1m = p1m + 200
  5076. ccard.setpos(800, 0)
  5077. ccard.ht()
  5078. ccard.setpos(-800, 0)
  5079. print("You now have $" + str(p1m) + ".")
  5080. input()
  5081. #Get Out of Jail Free Card...
  5082. if comm == 6:
  5083. ccard.shape(comm6)
  5084. ccard.st()
  5085. ccard.setpos(0, 0)
  5086. input("Get out of Jail free.")
  5087. p1free = p1free + 1
  5088. ccard.setpos(800, 0)
  5089. ccard.ht()
  5090. ccard.setpos(-800, 0)
  5091. #Go to Jail...
  5092. if comm == 7:
  5093. ccard.shape(comm7)
  5094. ccard.st()
  5095. ccard.setpos(0, 0)
  5096. input("Go to Jail. Do not collect $200.")
  5097. while p1s != 30:
  5098. if p1s < 40:
  5099. if p1x > -333 and p1y == -335:
  5100. if p1s == 0 or p1s == 9:
  5101. p1x = p1x - 82
  5102. else:
  5103. p1x = p1x - 63
  5104. elif p1x == -333 and p1y < 333:
  5105. if p1s == 10 or p1s == 19:
  5106. p1y = p1y + 82
  5107. else:
  5108. p1y = p1y + 63
  5109. elif p1x < 335 and p1y == 333:
  5110. if p1s == 20 or p1s == 29:
  5111. p1x = p1x + 82
  5112. else:
  5113. p1x = p1x + 63
  5114. elif p1x == 335 and p1y > -335:
  5115. if p1s == 30 or p1s == 39:
  5116. p1y = p1y - 82
  5117. else:
  5118. p1y = p1y - 63
  5119. #Sets player position on board
  5120. player1.setpos(p1x, p1y)
  5121. #Increases space player resides on
  5122. p1s = p1s + 1
  5123. #Resets player 1 space count to 0 when passing 39
  5124. if p1s == 40:
  5125. p1s = 0
  5126. ccard.setpos(800, 0)
  5127. ccard.ht()
  5128. ccard.setpos(-800, 0)
  5129. #20% for 30%...
  5130. if comm == 8:
  5131. ccard.shape(comm8)
  5132. ccard.st()
  5133. ccard.setpos(0, 0)
  5134. input("Collect 20% of your rival's money, but give them 30% of yours.\n")
  5135. p1m = p1m - p1m * 0.3
  5136. p1m = p1m + p2m * 0.2
  5137. p2m = p2m - p2m * 0.2
  5138. p2m = p2m + p1m * 0.3
  5139. ccard.setpos(800, 0)
  5140. ccard.ht()
  5141. ccard.setpos(-800, 0)
  5142. print("You now have $" + str(p1m) + ".")
  5143. input()
  5144. #Street repairs...
  5145. if comm == 9:
  5146. ccard.shape(comm9)
  5147. ccard.st()
  5148. ccard.setpos(0, 0)
  5149. input("Street repairs! For each house, pay $40. For each hotel, pay $110.\n")
  5150. if br1 == 1 and br2 == 1:
  5151. if br1h == 5:
  5152. p1m = p1m - 100
  5153. else:
  5154. p1m = p1m - br1h * 40
  5155. if br2h == 5:
  5156. p1m = p1m - 100
  5157. else:
  5158. p1m = p1m - br2h * 40
  5159. if cy1 == 1 and cy2 == 1 and cy3 == 1:
  5160. if cy1h == 5:
  5161. p1m = p1m - 100
  5162. else:
  5163. p1m = p1m - cy1h * 40
  5164. if cy2h == 5:
  5165. p1m = p1m - 100
  5166. else:
  5167. p1m = p1m - cy2h * 40
  5168. if cy3h == 5:
  5169. p1m = p1m - 100
  5170. else:
  5171. p1m = p1m - cy3h * 40
  5172. if vi1 == 1 and vi2 == 1 and vi3 == 1:
  5173. if vi1h == 5:
  5174. p1m = p1m - 100
  5175. else:
  5176. p1m = p1m - vi1h * 40
  5177. if vi2h == 5:
  5178. p1m = p1m - 100
  5179. else:
  5180. p1m = p1m - vi2h * 40
  5181. if vi3h == 5:
  5182. p1m = p1m - 100
  5183. else:
  5184. p1m = p1m - vi3h * 40
  5185. if or1 == 1 and or2 == 1 and or3 == 1:
  5186. if or1h == 5:
  5187. p1m = p1m - 100
  5188. else:
  5189. p1m = p1m - or1h * 40
  5190. if or2h == 5:
  5191. p1m = p1m - 100
  5192. else:
  5193. p1m = p1m - or2h * 40
  5194. if or3h == 5:
  5195. p1m = p1m - 100
  5196. else:
  5197. p1m = p1m - or3h * 40
  5198. if red1 == 1 and red2 == 1 and red3 == 1:
  5199. if red1h == 5:
  5200. p1m = p1m - 100
  5201. else:
  5202. p1m = p1m - red1h * 40
  5203. if red2h == 5:
  5204. p1m = p1m - 100
  5205. else:
  5206. p1m = p1m - red2h * 40
  5207. if red3h == 5:
  5208. p1m = p1m - 100
  5209. else:
  5210. p1m = p1m - red3h * 40
  5211. if ye1 == 1 and ye2 == 1 and ye3 == 1:
  5212. if ye1h == 5:
  5213. p1m = p1m - 100
  5214. else:
  5215. p1m = p1m - ye1h * 40
  5216. if ye2h == 5:
  5217. p1m = p1m - 100
  5218. else:
  5219. p1m = p1m - ye2h * 40
  5220. if ye3h == 5:
  5221. p1m = p1m - 100
  5222. else:
  5223. p1m = p1m - ye3h * 40
  5224. if gr1 == 1 and gr2 == 1 and gr3 == 1:
  5225. if gr1h == 5:
  5226. p1m = p1m - 100
  5227. else:
  5228. p1m = p1m - gr1h * 40
  5229. if gr2h == 5:
  5230. p1m = p1m - 100
  5231. else:
  5232. p1m = p1m - gr2h * 40
  5233. if gr3h == 5:
  5234. p1m = p1m - 100
  5235. else:
  5236. p1m = p1m - gr3h * 40
  5237. if bl1 == 1 and bl2 == 1:
  5238. if bl1h == 5:
  5239. p1m = p1m - 100
  5240. else:
  5241. p1m = p1m - bl1h * 40
  5242. if bl2h == 5:
  5243. p1m = p1m - 100
  5244. else:
  5245. p1m = p1m - bl2h * 40
  5246. ccard.setpos(800, 0)
  5247. ccard.ht()
  5248. ccard.setpos(-800, 0)
  5249. print("You now have $" + str(p1m) + ".")
  5250. input()
  5251. #Win the lottery...
  5252. if comm == 10:
  5253. ccard.shape(comm10)
  5254. ccard.st()
  5255. ccard.setpos(0, 0)
  5256. input("Win the lottery! You profit 20% of your current money.\n")
  5257. p1m = p1m + p1m * 0.2
  5258. ccard.setpos(800, 0)
  5259. ccard.ht()
  5260. ccard.setpos(-800, 0)
  5261. print("You now have $" + str(p1m) + ".")
  5262. input()
  5263. #Dare...
  5264. if comm == 11:
  5265. ccard.shape(comm11)
  5266. ccard.st()
  5267. ccard.setpos(0, 0)
  5268. print("Complete a dare", p2, "made! Collect $100 from them.")
  5269. input()
  5270. p1m = p1m + 100
  5271. p2m = p2m - 100
  5272. ccard.setpos(800, 0)
  5273. ccard.ht()
  5274. ccard.setpos(-800, 0)
  5275. print("You now have $" + str(p1m) + ".")
  5276. input()
  5277. #Phone...
  5278. if comm == 12:
  5279. ccard.shape(comm12)
  5280. ccard.st()
  5281. ccard.setpos(0, 0)
  5282. input("Sell your old phone and collect $50.\n")
  5283. p1m = p1m + 50
  5284. ccard.setpos(800, 0)
  5285. ccard.ht()
  5286. ccard.setpos(-800, 0)
  5287. print("You now have $" + str(p1m) + ".")
  5288. input()
  5289. #Lose wallet...
  5290. if comm == 13:
  5291. ccard.shape(comm13)
  5292. ccard.st()
  5293. ccard.setpos(0, 0)
  5294. input("Lose your wallet, and 10% of your total money.\n")
  5295. p1m = p1m - p1m * 0.1
  5296. ccard.setpos(800, 0)
  5297. ccard.ht()
  5298. ccard.setpos(-800, 0)
  5299. print("You now have $" + str(p1m) + ".")
  5300. input()
  5301. #Hospital fees...
  5302. if comm == 14:
  5303. ccard.shape(comm14)
  5304. ccard.st()
  5305. ccard.setpos(0, 0)
  5306. input("Pay hospital fees of $100.\n")
  5307. p1m = p1m - 100
  5308. ccard.setpos(800, 0)
  5309. ccard.ht()
  5310. ccard.setpos(-800, 0)
  5311. print("You now have $" + str(p1m) + ".")
  5312. input()
  5313. #Christmas...
  5314. if comm == 15:
  5315. ccard.shape(comm15)
  5316. ccard.st()
  5317. ccard.setpos(0, 0)
  5318. input("It's Christmas! Collect $100.\n")
  5319. p1m = p1m + 100
  5320. ccard.setpos(800, 0)
  5321. ccard.ht()
  5322. ccard.setpos(-800, 0)
  5323. print("You now have $" + str(p1m) + ".")
  5324. input()
  5325. #Opponent finds $100 bill...
  5326. if comm == 16:
  5327. ccard.shape(comm16)
  5328. ccard.st()
  5329. ccard.setpos(0, 0)
  5330. input("Your opponent finds a $100 bill! Lucky!\n")
  5331. p2m = p2m + 100
  5332. ccard.setpos(800, 0)
  5333. ccard.ht()
  5334. ccard.setpos(-800, 0)
  5335.  
  5336. ############If player lands on Mediterranean Avenue...
  5337. if p1s == 1:
  5338. print()
  5339. #If property is unowned...
  5340. if br1 == 0:
  5341. price = 60
  5342. #Checks to ensure y/n answer is given
  5343. while buy.lower() != "y" and buy.lower() != "n":
  5344. buy = input("Do you want to buy Mediterranean Avenue for $60? (y/n): ")
  5345. #If player wants to buy the property...
  5346. if buy.lower() == "y":
  5347. #Success!
  5348. if p1m >= 60:
  5349. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  5350. p1m = p1m - price
  5351. br1 = 1
  5352. if p1cc.lower() == "cat":
  5353. prop1.shape(catp)
  5354. elif p1cc.lower() == "car":
  5355. prop1.shape(carp)
  5356. elif p1cc.lower() == "stickman":
  5357. prop1.shape(stickmanp)
  5358. elif p1cc.lower() == "thimble":
  5359. prop1.shape(thimblep)
  5360. elif p1cc.lower() == "catcolor":
  5361. prop1.shape(catcolorp)
  5362. elif p1cc.lower() == "stickmancolor":
  5363. prop1.shape(stickmancolorp)
  5364. elif p1cc.lower() == "carcolor":
  5365. prop1.shape(carcolorp)
  5366. elif p1cc.lower() == "thimblecolor":
  5367. prop1.shape(thimblecolorp)
  5368. prop1.st()
  5369. print("You now have $" + str(p1m) + ".")
  5370. input()
  5371. #Not enough money!
  5372. else:
  5373. print("Insufficient funds.\n")
  5374. #If player doesn't want to buy the property...
  5375. elif buy.lower() == "n":
  5376. print(p1, "chose to ignore the property.\n")
  5377. #If player gives a response that is not "y" or "n"...
  5378. else:
  5379. print("Invalid response.")
  5380. #If Player One owns the property...
  5381. elif br1 == 1:
  5382. print(p1, "stays a free night in their own property.\n")
  5383. #If Player Two owns the property...
  5384. elif br1 == 2:
  5385. #If property is not mortgaged...
  5386. if br1m == 0:
  5387. br1r = 2
  5388. #If player owns a Monopoly over all colors of the property...
  5389. if br2 == 2:
  5390. br1r = 4
  5391. #If player has 1 house on property...
  5392. if br1h == 1:
  5393. br1r = 10
  5394. #If player has 2 houses on property...
  5395. elif br1h == 2:
  5396. br1r = 30
  5397. #If player has 3 houses on property...
  5398. elif br1h == 3:
  5399. br1r = 90
  5400. #If player has 4 houses on property...
  5401. elif br1h == 4:
  5402. br1r = 160
  5403. #If player has a hotel on property...
  5404. elif br1h == 5:
  5405. br1r = 250
  5406. #If player does not own a Monopoly over all colors of the property...
  5407. elif br2 != 2:
  5408. br1r = 2
  5409. #Player One pays Player Two rent
  5410. print(p1, "pays", p2, "$" + str(br1r) + "!")
  5411. p1m = p1m - br1r
  5412. p2m = p2m + br1r
  5413. print("You now have $" + str(p1m) + ".\n")
  5414. #If property is mortgaged...
  5415. elif br1m == 1:
  5416. print("Mediterranean Avenue is currently mortgaged.\n")
  5417.  
  5418. ############If player lands on Baltic Avenue...
  5419. if p1s == 3:
  5420. print()
  5421. #If property is unowned...
  5422. if br2 == 0:
  5423. price = 60
  5424. #Checks to ensure y/n answer is given
  5425. while buy.lower() != "y" and buy.lower() != "n":
  5426. buy = input("Do you want to buy Baltic Avenue for $60? (y/n): ")
  5427. #If player wants to buy the property...
  5428. if buy.lower() == "y":
  5429. #Success!
  5430. if p1m >= 60:
  5431. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  5432. p1m = p1m - price
  5433. br2 = 1
  5434. if p1cc.lower() == "cat":
  5435. prop2.shape(catp)
  5436. elif p1cc.lower() == "car":
  5437. prop2.shape(carp)
  5438. elif p1cc.lower() == "stickman":
  5439. prop2.shape(stickmanp)
  5440. elif p1cc.lower() == "thimble":
  5441. prop2.shape(thimblep)
  5442. elif p1cc.lower() == "catcolor":
  5443. prop2.shape(catcolorp)
  5444. elif p1cc.lower() == "stickmancolor":
  5445. prop2.shape(stickmancolorp)
  5446. elif p1cc.lower() == "carcolor":
  5447. prop2.shape(carcolorp)
  5448. elif p1cc.lower() == "thimblecolor":
  5449. prop2.shape(thimblecolorp)
  5450. prop2.st()
  5451. print("You now have $" + str(p1m) + ".")
  5452. input()
  5453. #Not enough money!
  5454. else:
  5455. print("Insufficient funds.\n")
  5456. #If player doesn't want to buy the property...
  5457. elif buy.lower() == "n":
  5458. print(p1, "chose to ignore the property.\n")
  5459. #If player gives a response that is not "y" or "n"...
  5460. else:
  5461. print("Invalid response.")
  5462. #If Player One owns the property...
  5463. elif br2 == 1:
  5464. print(p1, "stays a free night in their own property.\n")
  5465. #If Player Two owns the property...
  5466. elif br2 == 2:
  5467. #If property is not mortgaged...
  5468. if br2m == 0:
  5469. br2r = 4
  5470. #If player owns a Monopoly over all colors of the property...
  5471. if br1 == 2:
  5472. br2r = 8
  5473. #If player has 1 house on property...
  5474. if br2h == 1:
  5475. br2r = 20
  5476. #If player has 2 houses on property...
  5477. elif br2h == 2:
  5478. br2r = 60
  5479. #If player has 3 houses on property...
  5480. elif br2h == 3:
  5481. br2r = 180
  5482. #If player has 4 houses on property...
  5483. elif br2h == 4:
  5484. br2r = 320
  5485. #If player has a hotel on property...
  5486. elif br2h == 5:
  5487. br2r = 450
  5488. #If player does not own a Monopoly over all colors of the property...
  5489. elif br1 != 2:
  5490. br2r = 4
  5491. #Player One pays Player Two rent
  5492. print(p1, "pays", p2, "$" + str(br2r) + "!")
  5493. p1m = p1m - br2r
  5494. p2m = p2m + br2r
  5495. print("You now have $" + str(p1m) + ".\n")
  5496. #If property is mortgaged...
  5497. elif br2m == 1:
  5498. print("Baltic Avenue is currently mortgaged.\n")
  5499.  
  5500. ############If player lands on Oriental Avenue...
  5501. if p1s == 6:
  5502. print()
  5503. #If property is unowned...
  5504. if cy1 == 0:
  5505. price = 100
  5506. #Checks to ensure y/n answer is given
  5507. while buy.lower() != "y" and buy.lower() != "n":
  5508. buy = input("Do you want to buy Oriental Avenue for $100? (y/n): ")
  5509. #If player wants to buy the property...
  5510. if buy.lower() == "y":
  5511. #Success!
  5512. if p1m >= 100:
  5513. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  5514. p1m = p1m - price
  5515. cy1 = 1
  5516. if p1cc.lower() == "cat":
  5517. prop4.shape(catp)
  5518. elif p1cc.lower() == "car":
  5519. prop4.shape(carp)
  5520. elif p1cc.lower() == "stickman":
  5521. prop4.shape(stickmanp)
  5522. elif p1cc.lower() == "thimble":
  5523. prop4.shape(thimblep)
  5524. elif p1cc.lower() == "catcolor":
  5525. prop4.shape(catcolorp)
  5526. elif p1cc.lower() == "stickmancolor":
  5527. prop4.shape(stickmancolorp)
  5528. elif p1cc.lower() == "carcolor":
  5529. prop4.shape(carcolorp)
  5530. elif p1cc.lower() == "thimblecolor":
  5531. prop4.shape(thimblecolorp)
  5532. prop4.st()
  5533. print("You now have $" + str(p1m) + ".")
  5534. input()
  5535. #Not enough money!
  5536. else:
  5537. print("Insufficient funds.\n")
  5538. #If player doesn't want to buy the property...
  5539. elif buy.lower() == "n":
  5540. print(p1, "chose to ignore the property.\n")
  5541. #If player gives a response that is not "y" or "n"...
  5542. else:
  5543. print("Invalid response.")
  5544. #If Player One owns the property...
  5545. elif cy1 == 1:
  5546. print(p1, "stays a free night in their own property.\n")
  5547. #If Player Two owns the property...
  5548. elif cy1 == 2:
  5549. #If property is not mortgaged...
  5550. if cy1m == 0:
  5551. cy1r = 6
  5552. #If player owns a Monopoly over all colors of the property...
  5553. if cy2 == 2 and cy3 == 2:
  5554. cy1r = 12
  5555. #If player has 1 house on property...
  5556. if cy1h == 1:
  5557. cy1r = 30
  5558. #If player has 2 houses on property...
  5559. elif cy1h == 2:
  5560. cy1r = 90
  5561. #If player has 3 houses on property...
  5562. elif cy1h == 3:
  5563. cy1r = 270
  5564. #If player has 4 houses on property...
  5565. elif cy1h == 4:
  5566. cy1r = 400
  5567. #If player has a hotel on property...
  5568. elif cy1h == 5:
  5569. cy1r = 550
  5570. #If player does not own a Monopoly over all colors of the property...
  5571. elif cy2 != 2 or cy3 != 2:
  5572. cy1r = 6
  5573. #Player One pays Player Two rent
  5574. print(p1, "pays", p2, "$" + str(cy1r) + "!")
  5575. p1m = p1m - cy1r
  5576. p2m = p2m + cy1r
  5577. print("You now have $" + str(p1m) + ".\n")
  5578. #If property is mortgaged...
  5579. elif cy1m == 1:
  5580. print("Oriental Avenue is currently mortgaged.\n")
  5581.  
  5582. ############If player lands on Vermont Avenue...
  5583. if p1s == 8:
  5584. print()
  5585. #If property is unowned...
  5586. if cy2 == 0:
  5587. price = 100
  5588. #Checks to ensure y/n answer is given
  5589. while buy.lower() != "y" and buy.lower() != "n":
  5590. buy = input("Do you want to buy Vermont Avenue for $100? (y/n): ")
  5591. #If player wants to buy the property...
  5592. if buy.lower() == "y":
  5593. #Success!
  5594. if p1m >= 100:
  5595. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  5596. p1m = p1m - price
  5597. cy2 = 1
  5598. if p1cc.lower() == "cat":
  5599. prop5.shape(catp)
  5600. elif p1cc.lower() == "car":
  5601. prop5.shape(carp)
  5602. elif p1cc.lower() == "stickman":
  5603. prop5.shape(stickmanp)
  5604. elif p1cc.lower() == "thimble":
  5605. prop5.shape(thimblep)
  5606. elif p1cc.lower() == "catcolor":
  5607. prop5.shape(catcolorp)
  5608. elif p1cc.lower() == "stickmancolor":
  5609. prop5.shape(stickmancolorp)
  5610. elif p1cc.lower() == "carcolor":
  5611. prop5.shape(carcolorp)
  5612. elif p1cc.lower() == "thimblecolor":
  5613. prop5.shape(thimblecolorp)
  5614. prop5.st()
  5615. print("You now have $" + str(p1m) + ".")
  5616. input()
  5617. #Not enough money!
  5618. else:
  5619. print("Insufficient funds.\n")
  5620. #If player doesn't want to buy the property...
  5621. elif buy.lower() == "n":
  5622. print(p1, "chose to ignore the property.\n")
  5623. #If player gives a response that is not "y" or "n"...
  5624. else:
  5625. print("Invalid response.")
  5626. #If Player One owns the property...
  5627. elif cy2 == 1:
  5628. print(p1, "stays a free night in their own property.\n")
  5629. #If Player Two owns the property...
  5630. elif cy2 == 2:
  5631. #If property is not mortgaged...
  5632. if cy2m == 0:
  5633. cy2r = 6
  5634. #If player owns a Monopoly over all colors of the property...
  5635. if cy1 == 2 and cy3 == 2:
  5636. cy2r = 12
  5637. #If player has 1 house on property...
  5638. if cy2h == 1:
  5639. cy2r = 30
  5640. #If player has 2 houses on property...
  5641. elif cy2h == 2:
  5642. cy2r = 90
  5643. #If player has 3 houses on property...
  5644. elif cy2h == 3:
  5645. cy2r = 270
  5646. #If player has 4 houses on property...
  5647. elif cy2h == 4:
  5648. cy2r = 400
  5649. #If player has a hotel on property...
  5650. elif cy2h == 5:
  5651. cy2r = 550
  5652. #If player does not own a Monopoly over all colors of the property...
  5653. elif cy1 != 2 or cy3 != 2:
  5654. cy2r = 6
  5655. #Player One pays Player Two rent
  5656. print(p1, "pays", p2, "$" + str(cy2r) + "!")
  5657. p1m = p1m - cy2r
  5658. p2m = p2m + cy2r
  5659. print("You now have $" + str(p1m) + ".\n")
  5660. #If property is mortgaged...
  5661. elif cy2m == 1:
  5662. print("Vermont Avenue is currently mortgaged.\n")
  5663.  
  5664. ############If player lands on Connecticut Avenue...
  5665. if p1s == 9:
  5666. print()
  5667. #If property is unowned...
  5668. if cy3 == 0:
  5669. price = 120
  5670. #Checks to ensure y/n answer is given
  5671. while buy.lower() != "y" and buy.lower() != "n":
  5672. buy = input("Do you want to buy Connecticut Avenue for $120? (y/n): ")
  5673. #If player wants to buy the property...
  5674. if buy.lower() == "y":
  5675. #Success!
  5676. if p1m >= 120:
  5677. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  5678. p1m = p1m - price
  5679. cy3 = 1
  5680. if p1cc.lower() == "cat":
  5681. prop6.shape(catp)
  5682. elif p1cc.lower() == "car":
  5683. prop6.shape(carp)
  5684. elif p1cc.lower() == "stickman":
  5685. prop6.shape(stickmanp)
  5686. elif p1cc.lower() == "thimble":
  5687. prop6.shape(thimblep)
  5688. elif p1cc.lower() == "catcolor":
  5689. prop6.shape(catcolorp)
  5690. elif p1cc.lower() == "stickmancolor":
  5691. prop6.shape(stickmancolorp)
  5692. elif p1cc.lower() == "carcolor":
  5693. prop6.shape(carcolorp)
  5694. elif p1cc.lower() == "thimblecolor":
  5695. prop6.shape(thimblecolorp)
  5696. prop6.st()
  5697. print("You now have $" + str(p1m) + ".")
  5698. input()
  5699. #Not enough money!
  5700. else:
  5701. print("Insufficient funds.\n")
  5702. #If player doesn't want to buy the property...
  5703. elif buy.lower() == "n":
  5704. print(p1, "chose to ignore the property.\n")
  5705. #If player gives a response that is not "y" or "n"...
  5706. else:
  5707. print("Invalid response.")
  5708. #If Player One owns the property...
  5709. elif cy3 == 1:
  5710. print(p1, "stays a free night in their own property.\n")
  5711. #If Player Two owns the property...
  5712. elif cy3 == 2:
  5713. #If property is not mortgaged...
  5714. if cy3m == 0:
  5715. cy3r = 8
  5716. #If player owns a Monopoly over all colors of the property...
  5717. if cy1 == 2 and cy2 == 2:
  5718. cy3r = 16
  5719. #If player has 1 house on property...
  5720. if cy3h == 1:
  5721. cy3r = 40
  5722. #If player has 2 houses on property...
  5723. elif cy3h == 2:
  5724. cy3r = 100
  5725. #If player has 3 houses on property...
  5726. elif cy3h == 3:
  5727. cy3r = 300
  5728. #If player has 4 houses on property...
  5729. elif cy3h == 4:
  5730. cy3r = 450
  5731. #If player has a hotel on property...
  5732. elif cy3h == 5:
  5733. cy3r = 600
  5734. #If player does not own a Monopoly over all colors of the property...
  5735. elif cy1 != 2 or cy2 != 2:
  5736. cy3r = 8
  5737. #Player One pays Player Two rent
  5738. print(p1, "pays", p2, "$" + str(cy3r) + "!")
  5739. p1m = p1m - cy3r
  5740. p2m = p2m + cy3r
  5741. print("You now have $" + str(p1m) + ".\n")
  5742. #If property is mortgaged...
  5743. elif cy3m == 1:
  5744. print("Connecticut Avenue is currently mortgaged.\n")
  5745.  
  5746. ############If player lands on St. Charles Place...
  5747. if p1s == 11:
  5748. print()
  5749. #If property is unowned...
  5750. if vi1 == 0:
  5751. price = 140
  5752. #Checks to ensure y/n answer is given
  5753. while buy.lower() != "y" and buy.lower() != "n":
  5754. buy = input("Do you want to buy St. Charles Place for $140? (y/n): ")
  5755. #If player wants to buy the property...
  5756. if buy.lower() == "y":
  5757. #Success!
  5758. if p1m >= 140:
  5759. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  5760. p1m = p1m - price
  5761. vi1 = 1
  5762. if p1cc.lower() == "cat":
  5763. prop7.shape(catp)
  5764. elif p1cc.lower() == "car":
  5765. prop7.shape(carp)
  5766. elif p1cc.lower() == "stickman":
  5767. prop7.shape(stickmanp)
  5768. elif p1cc.lower() == "thimble":
  5769. prop7.shape(thimblep)
  5770. elif p1cc.lower() == "catcolor":
  5771. prop7.shape(catcolorp)
  5772. elif p1cc.lower() == "stickmancolor":
  5773. prop7.shape(stickmancolorp)
  5774. elif p1cc.lower() == "carcolor":
  5775. prop7.shape(carcolorp)
  5776. elif p1cc.lower() == "thimblecolor":
  5777. prop7.shape(thimblecolorp)
  5778. prop7.st()
  5779. print("You now have $" + str(p1m) + ".")
  5780. input()
  5781. #Not enough money!
  5782. else:
  5783. print("Insufficient funds.\n")
  5784. #If player doesn't want to buy the property...
  5785. elif buy.lower() == "n":
  5786. print(p1, "chose to ignore the property.\n")
  5787. #If player gives a response that is not "y" or "n"...
  5788. else:
  5789. print("Invalid response.")
  5790. #If Player One owns the property...
  5791. elif vi1 == 1:
  5792. print(p1, "stays a free night in their own property.\n")
  5793. #If Player Two owns the property...
  5794. elif vi1 == 2:
  5795. #If property is not mortgaged...
  5796. if vi1m == 0:
  5797. vi1r = 10
  5798. #If player owns a Monopoly over all colors of the property...
  5799. if vi2 == 2 and vi3 == 2:
  5800. vi1r = 20
  5801. #If player has 1 house on property...
  5802. if vi1h == 1:
  5803. vi1r = 50
  5804. #If player has 2 houses on property...
  5805. elif vi1h == 2:
  5806. vi1r = 150
  5807. #If player has 3 houses on property...
  5808. elif vi1h == 3:
  5809. vi1r = 450
  5810. #If player has 4 houses on property...
  5811. elif vi1h == 4:
  5812. vi1r = 625
  5813. #If player has a hotel on property...
  5814. elif vi1h == 5:
  5815. vi1r = 750
  5816. #If player does not own a Monopoly over all colors of the property...
  5817. elif vi2 != 2 or vi3 != 2:
  5818. vi1r = 10
  5819. #Player One pays Player Two rent
  5820. print(p1, "pays", p2, "$" + str(vi1r) + "!")
  5821. p1m = p1m - vi1r
  5822. p2m = p2m + vi1r
  5823. print("You now have $" + str(p1m) + ".\n")
  5824. #If property is mortgaged...
  5825. elif vi1m == 1:
  5826. print("St. Charles Place is currently mortgaged.\n")
  5827.  
  5828. ############If player lands on States Avenue...
  5829. if p1s == 13:
  5830. print()
  5831. #If property is unowned...
  5832. if vi2 == 0:
  5833. price = 140
  5834. #Checks to ensure y/n answer is given
  5835. while buy.lower() != "y" and buy.lower() != "n":
  5836. buy = input("Do you want to buy States Avenue for $140? (y/n): ")
  5837. #If player wants to buy the property...
  5838. if buy.lower() == "y":
  5839. #Success!
  5840. if p1m >= 140:
  5841. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  5842. p1m = p1m - price
  5843. vi2 = 1
  5844. if p1cc.lower() == "cat":
  5845. prop9.shape(catp)
  5846. elif p1cc.lower() == "car":
  5847. prop9.shape(carp)
  5848. elif p1cc.lower() == "stickman":
  5849. prop9.shape(stickmanp)
  5850. elif p1cc.lower() == "thimble":
  5851. prop9.shape(thimblep)
  5852. elif p1cc.lower() == "catcolor":
  5853. prop9.shape(catcolorp)
  5854. elif p1cc.lower() == "stickmancolor":
  5855. prop9.shape(stickmancolorp)
  5856. elif p1cc.lower() == "carcolor":
  5857. prop9.shape(carcolorp)
  5858. elif p1cc.lower() == "thimblecolor":
  5859. prop9.shape(thimblecolorp)
  5860. prop9.st()
  5861. print("You now have $" + str(p1m) + ".")
  5862. input()
  5863. #Not enough money!
  5864. else:
  5865. print("Insufficient funds.\n")
  5866. #If player doesn't want to buy the property...
  5867. elif buy.lower() == "n":
  5868. print(p1, "chose to ignore the property.\n")
  5869. #If player gives a response that is not "y" or "n"...
  5870. else:
  5871. print("Invalid response.")
  5872. #If Player One owns the property...
  5873. elif vi2 == 1:
  5874. print(p1, "stays a free night in their own property.\n")
  5875. #If Player Two owns the property...
  5876. elif vi2 == 2:
  5877. #If property is not mortgaged...
  5878. if vi2m == 0:
  5879. vi2r = 10
  5880. #If player owns a Monopoly over all colors of the property...
  5881. if vi1 == 2 and vi3 == 2:
  5882. vi2r = 20
  5883. #If player has 1 house on property...
  5884. if vi2h == 1:
  5885. vi2r = 50
  5886. #If player has 2 houses on property...
  5887. elif vi2h == 2:
  5888. vi2r = 150
  5889. #If player has 3 houses on property...
  5890. elif vi2h == 3:
  5891. vi2r = 450
  5892. #If player has 4 houses on property...
  5893. elif vi2h == 4:
  5894. vi2r = 625
  5895. #If player has a hotel on property...
  5896. elif vi2h == 5:
  5897. vi2r = 750
  5898. #If player does not own a Monopoly over all colors of the property...
  5899. elif vi1 != 2 or vi3 != 2:
  5900. vi2r = 10
  5901. #Player One pays Player Two rent
  5902. print(p1, "pays", p2, "$" + str(vi2r) + "!")
  5903. p1m = p1m - vi2r
  5904. p2m = p2m + vi2r
  5905. print("You now have $" + str(p1m) + ".\n")
  5906. #If property is mortgaged...
  5907. elif vi2m == 1:
  5908. print("States Avenue is currently mortgaged.\n")
  5909.  
  5910. ############If player lands on Virginia Avenue...
  5911. if p1s == 14:
  5912. print()
  5913. #If property is unowned...
  5914. if vi3 == 0:
  5915. price = 160
  5916. #Checks to ensure y/n answer is given
  5917. while buy.lower() != "y" and buy.lower() != "n":
  5918. buy = input("Do you want to buy Virginia Avenue for $160? (y/n): ")
  5919. #If player wants to buy the property...
  5920. if buy.lower() == "y":
  5921. #Success!
  5922. if p1m >= 160:
  5923. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  5924. p1m = p1m - price
  5925. vi3 = 1
  5926. if p1cc.lower() == "cat":
  5927. prop10.shape(catp)
  5928. elif p1cc.lower() == "car":
  5929. prop10.shape(carp)
  5930. elif p1cc.lower() == "stickman":
  5931. prop10.shape(stickmanp)
  5932. elif p1cc.lower() == "thimble":
  5933. prop10.shape(thimblep)
  5934. elif p1cc.lower() == "catcolor":
  5935. prop10.shape(catcolorp)
  5936. elif p1cc.lower() == "stickmancolor":
  5937. prop10.shape(stickmancolorp)
  5938. elif p1cc.lower() == "carcolor":
  5939. prop10.shape(carcolorp)
  5940. elif p1cc.lower() == "thimblecolor":
  5941. prop10.shape(thimblecolorp)
  5942. prop10.st()
  5943. print("You now have $" + str(p1m) + ".")
  5944. input()
  5945. #Not enough money!
  5946. else:
  5947. print("Insufficient funds.\n")
  5948. #If player doesn't want to buy the property...
  5949. elif buy.lower() == "n":
  5950. print(p1, "chose to ignore the property.\n")
  5951. #If player gives a response that is not "y" or "n"...
  5952. else:
  5953. print("Invalid response.")
  5954. #If Player One owns the property...
  5955. elif vi3 == 1:
  5956. print(p1, "stays a free night in their own property.\n")
  5957. #If Player Two owns the property...
  5958. elif vi3 == 2:
  5959. #If property is not mortgaged...
  5960. if vi3m == 0:
  5961. vi3r = 12
  5962. #If player owns a Monopoly over all colors of the property...
  5963. if vi1 == 2 and vi2 == 2:
  5964. vi3r = 24
  5965. #If player has 1 house on property...
  5966. if vi3h == 1:
  5967. vi3r = 60
  5968. #If player has 2 houses on property...
  5969. elif vi3h == 2:
  5970. vi3r = 180
  5971. #If player has 3 houses on property...
  5972. elif vi3h == 3:
  5973. vi3r = 500
  5974. #If player has 4 houses on property...
  5975. elif vi3h == 4:
  5976. vi3r = 700
  5977. #If player has a hotel on property...
  5978. elif vi3h == 5:
  5979. vi3r = 900
  5980. #If player does not own a Monopoly over all colors of the property...
  5981. elif vi1 != 2 or vi2 != 2:
  5982. vi3r = 12
  5983. #Player One pays Player Two rent
  5984. print(p1, "pays", p2, "$" + str(vi3r) + "!")
  5985. p1m = p1m - vi3r
  5986. p2m = p2m + vi3r
  5987. print("You now have $" + str(p1m) + ".\n")
  5988. #If property is mortgaged...
  5989. elif vi3m == 1:
  5990. print("Virginia Avenue is currently mortgaged.\n")
  5991.  
  5992. ############If player lands on St. James Place...
  5993. if p1s == 16:
  5994. print()
  5995. #If property is unowned...
  5996. if or1 == 0:
  5997. price = 180
  5998. #Checks to ensure y/n answer is given
  5999. while buy.lower() != "y" and buy.lower() != "n":
  6000. buy = input("Do you want to buy St. James Place for $180? (y/n): ")
  6001. #If player wants to buy the property...
  6002. if buy.lower() == "y":
  6003. #Success!
  6004. if p1m >= 180:
  6005. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6006. p1m = p1m - price
  6007. or1 = 1
  6008. if p1cc.lower() == "cat":
  6009. prop12.shape(catp)
  6010. elif p1cc.lower() == "car":
  6011. prop12.shape(carp)
  6012. elif p1cc.lower() == "stickman":
  6013. prop12.shape(stickmanp)
  6014. elif p1cc.lower() == "thimble":
  6015. prop12.shape(thimblep)
  6016. elif p1cc.lower() == "catcolor":
  6017. prop12.shape(catcolorp)
  6018. elif p1cc.lower() == "stickmancolor":
  6019. prop12.shape(stickmancolorp)
  6020. elif p1cc.lower() == "carcolor":
  6021. prop12.shape(carcolorp)
  6022. elif p1cc.lower() == "thimblecolor":
  6023. prop12.shape(thimblecolorp)
  6024. prop12.st()
  6025. print("You now have $" + str(p1m) + ".")
  6026. input()
  6027. #Not enough money!
  6028. else:
  6029. print("Insufficient funds.\n")
  6030. #If player doesn't want to buy the property...
  6031. elif buy.lower() == "n":
  6032. print(p1, "chose to ignore the property.\n")
  6033. #If player gives a response that is not "y" or "n"...
  6034. else:
  6035. print("Invalid response.")
  6036. #If Player One owns the property...
  6037. elif or1 == 1:
  6038. print(p1, "stays a free night in their own property.\n")
  6039. #If Player Two owns the property...
  6040. elif or1 == 2:
  6041. #If property is not mortgaged...
  6042. if or1m == 0:
  6043. or1r = 14
  6044. #If player owns a Monopoly over all colors of the property...
  6045. if or2 == 2 and or3 == 2:
  6046. or1r = 28
  6047. #If player has 1 house on property...
  6048. if or1h == 1:
  6049. or1r = 70
  6050. #If player has 2 houses on property...
  6051. elif or1h == 2:
  6052. or1r = 200
  6053. #If player has 3 houses on property...
  6054. elif or1h == 3:
  6055. or1r = 550
  6056. #If player has 4 houses on property...
  6057. elif or1h == 4:
  6058. or1r = 750
  6059. #If player has a hotel on property...
  6060. elif or1h == 5:
  6061. or1r = 950
  6062. #If player does not own a Monopoly over all colors of the property...
  6063. elif or2 != 2 or or3 != 2:
  6064. or1r = 14
  6065. #Player One pays Player Two rent
  6066. print(p1, "pays", p2, "$" + str(or1r) + "!")
  6067. p1m = p1m - or1r
  6068. p2m = p2m + or1r
  6069. print("You now have $" + str(p1m) + ".\n")
  6070. #If property is mortgaged...
  6071. elif or1m == 1:
  6072. print("St. James Place is currently mortgaged.\n")
  6073.  
  6074. ############If player lands on Tennessee Avenue...
  6075. if p1s == 18:
  6076. print()
  6077. #If property is unowned...
  6078. if or2 == 0:
  6079. price = 180
  6080. #Checks to ensure y/n answer is given
  6081. while buy.lower() != "y" and buy.lower() != "n":
  6082. buy = input("Do you want to buy Tennessee Avenue for $180? (y/n): ")
  6083. #If player wants to buy the property...
  6084. if buy.lower() == "y":
  6085. #Success!
  6086. if p1m >= 180:
  6087. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6088. p1m = p1m - price
  6089. or2 = 1
  6090. if p1cc.lower() == "cat":
  6091. prop13.shape(catp)
  6092. elif p1cc.lower() == "car":
  6093. prop13.shape(carp)
  6094. elif p1cc.lower() == "stickman":
  6095. prop13.shape(stickmanp)
  6096. elif p1cc.lower() == "thimble":
  6097. prop13.shape(thimblep)
  6098. elif p1cc.lower() == "catcolor":
  6099. prop13.shape(catcolorp)
  6100. elif p1cc.lower() == "stickmancolor":
  6101. prop13.shape(stickmancolorp)
  6102. elif p1cc.lower() == "carcolor":
  6103. prop13.shape(carcolorp)
  6104. elif p1cc.lower() == "thimblecolor":
  6105. prop13.shape(thimblecolorp)
  6106. prop13.st()
  6107. print("You now have $" + str(p1m) + ".")
  6108. input()
  6109. #Not enough money!
  6110. else:
  6111. print("Insufficient funds.\n")
  6112. #If player doesn't want to buy the property...
  6113. elif buy.lower() == "n":
  6114. print(p1, "chose to ignore the property.\n")
  6115. #If player gives a response that is not "y" or "n"...
  6116. else:
  6117. print("Invalid response.")
  6118. #If Player One owns the property...
  6119. elif or2 == 1:
  6120. print(p1, "stays a free night in their own property.\n")
  6121. #If Player Two owns the property...
  6122. elif or2 == 2:
  6123. #If property is not mortgaged...
  6124. if or2m == 0:
  6125. or2r = 14
  6126. #If player owns a Monopoly over all colors of the property...
  6127. if or1 == 2 and or3 == 2:
  6128. or2r = 28
  6129. #If player has 1 house on property...
  6130. if or2h == 1:
  6131. or2r = 70
  6132. #If player has 2 houses on property...
  6133. elif or2h == 2:
  6134. or2r = 200
  6135. #If player has 3 houses on property...
  6136. elif or2h == 3:
  6137. or2r = 550
  6138. #If player has 4 houses on property...
  6139. elif or2h == 4:
  6140. or2r = 750
  6141. #If player has a hotel on property...
  6142. elif or2h == 5:
  6143. or2r = 950
  6144. #If player does not own a Monopoly over all colors of the property...
  6145. elif or1 != 2 or or3 != 2:
  6146. or2r = 14
  6147. #Player One pays Player Two rent
  6148. print(p1, "pays", p2, "$" + str(or2r) + "!")
  6149. p1m = p1m - or2r
  6150. p2m = p2m + or2r
  6151. print("You now have $" + str(p1m) + ".\n")
  6152. #If property is mortgaged...
  6153. elif or2m == 1:
  6154. print("Tennessee Avenue is currently mortgaged.\n")
  6155.  
  6156. ############If player lands on New York Avenue...
  6157. if p1s == 19:
  6158. print()
  6159. #If property is unowned...
  6160. if or3 == 0:
  6161. price = 200
  6162. #Checks to ensure y/n answer is given
  6163. while buy.lower() != "y" and buy.lower() != "n":
  6164. buy = input("Do you want to buy New York Avenue for $200? (y/n): ")
  6165. #If player wants to buy the property...
  6166. if buy.lower() == "y":
  6167. #Success!
  6168. if p1m >= 200:
  6169. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6170. p1m = p1m - price
  6171. or3 = 1
  6172. if p1cc.lower() == "cat":
  6173. prop14.shape(catp)
  6174. elif p1cc.lower() == "car":
  6175. prop14.shape(carp)
  6176. elif p1cc.lower() == "stickman":
  6177. prop14.shape(stickmanp)
  6178. elif p1cc.lower() == "thimble":
  6179. prop14.shape(thimblep)
  6180. elif p1cc.lower() == "catcolor":
  6181. prop14.shape(catcolorp)
  6182. elif p1cc.lower() == "stickmancolor":
  6183. prop14.shape(stickmancolorp)
  6184. elif p1cc.lower() == "carcolor":
  6185. prop14.shape(carcolorp)
  6186. elif p1cc.lower() == "thimblecolor":
  6187. prop14.shape(thimblecolorp)
  6188. prop14.st()
  6189. print("You now have $" + str(p1m) + ".")
  6190. input()
  6191. #Not enough money!
  6192. else:
  6193. print("Insufficient funds.\n")
  6194. #If player doesn't want to buy the property...
  6195. elif buy.lower() == "n":
  6196. print(p1, "chose to ignore the property.\n")
  6197. #If player gives a response that is not "y" or "n"...
  6198. else:
  6199. print("Invalid response.")
  6200. #If Player One owns the property...
  6201. elif or3 == 1:
  6202. print(p1, "stays a free night in their own property.\n")
  6203. #If Player Two owns the property...
  6204. elif or3 == 2:
  6205. #If property is not mortgaged...
  6206. if or3m == 0:
  6207. or3r = 16
  6208. #If player owns a Monopoly over all colors of the property...
  6209. if or1 == 2 and or2 == 2:
  6210. or3r = 32
  6211. #If player has 1 house on property...
  6212. if or3h == 1:
  6213. or3r = 80
  6214. #If player has 2 houses on property...
  6215. elif or3h == 2:
  6216. or3r = 220
  6217. #If player has 3 houses on property...
  6218. elif or3h == 3:
  6219. or3r = 600
  6220. #If player has 4 houses on property...
  6221. elif or3h == 4:
  6222. or3r = 800
  6223. #If player has a hotel on property...
  6224. elif or3h == 5:
  6225. or3r = 1000
  6226. #If player does not own a Monopoly over all colors of the property...
  6227. elif or1 != 2 or or2 != 2:
  6228. or3r = 16
  6229. #Player One pays Player Two rent
  6230. print(p1, "pays", p2, "$" + str(or3r) + "!")
  6231. p1m = p1m - or3r
  6232. p2m = p2m + or3r
  6233. print("You now have $" + str(p1m) + ".\n")
  6234. #If property is mortgaged...
  6235. elif or3m == 1:
  6236. print("New York Avenue is currently mortgaged.\n")
  6237.  
  6238. ############If player lands on Kentucky Avenue...
  6239. if p1s == 21:
  6240. print()
  6241. #If property is unowned...
  6242. if red1 == 0:
  6243. price = 220
  6244. #Checks to ensure y/n answer is given
  6245. while buy.lower() != "y" and buy.lower() != "n":
  6246. buy = input("Do you want to buy Kentucky Avenue for $220? (y/n): ")
  6247. #If player wants to buy the property...
  6248. if buy.lower() == "y":
  6249. #Success!
  6250. if p1m >= 220:
  6251. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6252. p1m = p1m - price
  6253. red1 = 1
  6254. if p1cc.lower() == "cat":
  6255. prop15.shape(catp)
  6256. elif p1cc.lower() == "car":
  6257. prop15.shape(carp)
  6258. elif p1cc.lower() == "stickman":
  6259. prop15.shape(stickmanp)
  6260. elif p1cc.lower() == "thimble":
  6261. prop15.shape(thimblep)
  6262. elif p1cc.lower() == "catcolor":
  6263. prop15.shape(catcolorp)
  6264. elif p1cc.lower() == "stickmancolor":
  6265. prop15.shape(stickmancolorp)
  6266. elif p1cc.lower() == "carcolor":
  6267. prop15.shape(carcolorp)
  6268. elif p1cc.lower() == "thimblecolor":
  6269. prop15.shape(thimblecolorp)
  6270. prop15.st()
  6271. print("You now have $" + str(p1m) + ".")
  6272. input()
  6273. #Not enough money!
  6274. else:
  6275. print("Insufficient funds.\n")
  6276. #If player doesn't want to buy the property...
  6277. elif buy.lower() == "n":
  6278. print(p1, "chose to ignore the property.\n")
  6279. #If player gives a response that is not "y" or "n"...
  6280. else:
  6281. print("Invalid response.")
  6282. #If Player One owns the property...
  6283. elif red1 == 1:
  6284. print(p1, "stays a free night in their own property.\n")
  6285. #If Player Two owns the property...
  6286. elif red1 == 2:
  6287. #If property is not mortgaged...
  6288. if red1m == 0:
  6289. red1r = 18
  6290. #If player owns a Monopoly over all colors of the property...
  6291. if red2 == 2 and red3 == 2:
  6292. red1r = 36
  6293. #If player has 1 house on property...
  6294. if red1h == 1:
  6295. red1r = 90
  6296. #If player has 2 houses on property...
  6297. elif red1h == 2:
  6298. red1r = 250
  6299. #If player has 3 houses on property...
  6300. elif red1h == 3:
  6301. red1r = 700
  6302. #If player has 4 houses on property...
  6303. elif red1h == 4:
  6304. red1r = 875
  6305. #If player has a hotel on property...
  6306. elif red1h == 5:
  6307. red1r = 1050
  6308. #If player does not own a Monopoly over all colors of the property...
  6309. elif red2 != 2 or red3 != 2:
  6310. red1r = 18
  6311. #Player One pays Player Two rent
  6312. print(p1, "pays", p2, "$" + str(red1r) + "!")
  6313. p1m = p1m - red1r
  6314. p2m = p2m + red1r
  6315. print("You now have $" + str(p1m) + ".\n")
  6316. #If property is mortgaged...
  6317. elif red1m == 1:
  6318. print("Kentucky Avenue is currently mortgaged.\n")
  6319.  
  6320. ############If player lands on Indiana Avenue...
  6321. if p1s == 23:
  6322. print()
  6323. #If property is unowned...
  6324. if red2 == 0:
  6325. price = 220
  6326. #Checks to ensure y/n answer is given
  6327. while buy.lower() != "y" and buy.lower() != "n":
  6328. buy = input("Do you want to buy Indiana Avenue for $220? (y/n): ")
  6329. #If player wants to buy the property...
  6330. if buy.lower() == "y":
  6331. #Success!
  6332. if p1m >= 220:
  6333. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6334. p1m = p1m - price
  6335. red2 = 1
  6336. if p1cc.lower() == "cat":
  6337. prop16.shape(catp)
  6338. elif p1cc.lower() == "car":
  6339. prop16.shape(carp)
  6340. elif p1cc.lower() == "stickman":
  6341. prop16.shape(stickmanp)
  6342. elif p1cc.lower() == "thimble":
  6343. prop16.shape(thimblep)
  6344. elif p1cc.lower() == "catcolor":
  6345. prop16.shape(catcolorp)
  6346. elif p1cc.lower() == "stickmancolor":
  6347. prop16.shape(stickmancolorp)
  6348. elif p1cc.lower() == "carcolor":
  6349. prop16.shape(carcolorp)
  6350. elif p1cc.lower() == "thimblecolor":
  6351. prop16.shape(thimblecolorp)
  6352. prop16.st()
  6353. print("You now have $" + str(p1m) + ".")
  6354. input()
  6355. #Not enough money!
  6356. else:
  6357. print("Insufficient funds.\n")
  6358. #If player doesn't want to buy the property...
  6359. elif buy.lower() == "n":
  6360. print(p1, "chose to ignore the property.\n")
  6361. #If player gives a response that is not "y" or "n"...
  6362. else:
  6363. print("Invalid response.")
  6364. #If Player One owns the property...
  6365. elif red2 == 1:
  6366. print(p1, "stays a free night in their own property.\n")
  6367. #If Player Two owns the property...
  6368. elif red2 == 2:
  6369. #If property is not mortgaged...
  6370. if red2m == 0:
  6371. red2r = 18
  6372. #If player owns a Monopoly over all colors of the property...
  6373. if red1 == 2 and red3 == 2:
  6374. red2r = 36
  6375. #If player has 1 house on property...
  6376. if red2h == 1:
  6377. red2r = 90
  6378. #If player has 2 houses on property...
  6379. elif red2h == 2:
  6380. red2r = 250
  6381. #If player has 3 houses on property...
  6382. elif red2h == 3:
  6383. red2r = 700
  6384. #If player has 4 houses on property...
  6385. elif red2h == 4:
  6386. red2r = 875
  6387. #If player has a hotel on property...
  6388. elif red2h == 5:
  6389. red2r = 1050
  6390. #If player does not own a Monopoly over all colors of the property...
  6391. elif red1 != 2 or red3 != 2:
  6392. red2r = 18
  6393. #Player One pays Player Two rent
  6394. print(p1, "pays", p2, "$" + str(red2r) + "!")
  6395. p1m = p1m - red2r
  6396. p2m = p2m + red2r
  6397. print("You now have $" + str(p1m) + ".\n")
  6398. #If property is mortgaged...
  6399. elif red2m == 1:
  6400. print("Indiana Avenue is currently mortgaged.\n")
  6401.  
  6402. ############If player lands on Illinois Avenue...
  6403. if p1s == 24:
  6404. print()
  6405. #If property is unowned...
  6406. if red3 == 0:
  6407. price = 240
  6408. #Checks to ensure y/n answer is given
  6409. while buy.lower() != "y" and buy.lower() != "n":
  6410. buy = input("Do you want to buy Illinois Avenue for $240? (y/n): ")
  6411. #If player wants to buy the property...
  6412. if buy.lower() == "y":
  6413. #Success!
  6414. if p1m >= 240:
  6415. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6416. p1m = p1m - price
  6417. red3 = 1
  6418. if p1cc.lower() == "cat":
  6419. prop17.shape(catp)
  6420. elif p1cc.lower() == "car":
  6421. prop17.shape(carp)
  6422. elif p1cc.lower() == "stickman":
  6423. prop17.shape(stickmanp)
  6424. elif p1cc.lower() == "thimble":
  6425. prop17.shape(thimblep)
  6426. elif p1cc.lower() == "catcolor":
  6427. prop17.shape(catcolorp)
  6428. elif p1cc.lower() == "stickmancolor":
  6429. prop17.shape(stickmancolorp)
  6430. elif p1cc.lower() == "carcolor":
  6431. prop17.shape(carcolorp)
  6432. elif p1cc.lower() == "thimblecolor":
  6433. prop17.shape(thimblecolorp)
  6434. prop17.st()
  6435. print("You now have $" + str(p1m) + ".")
  6436. input()
  6437. #Not enough money!
  6438. else:
  6439. print("Insufficient funds.\n")
  6440. #If player doesn't want to buy the property...
  6441. elif buy.lower() == "n":
  6442. print(p1, "chose to ignore the property.\n")
  6443. #If player gives a response that is not "y" or "n"...
  6444. else:
  6445. print("Invalid response.")
  6446. #If Player One owns the property...
  6447. elif red3 == 1:
  6448. print(p1, "stays a free night in their own property.\n")
  6449. #If Player Two owns the property...
  6450. elif red3 == 2:
  6451. #If property is not mortgaged...
  6452. if red3m == 0:
  6453. red3r = 20
  6454. #If player owns a Monopoly over all colors of the property...
  6455. if red1 == 2 and red2 == 2:
  6456. red3r = 40
  6457. #If player has 1 house on property...
  6458. if red3h == 1:
  6459. red3r = 100
  6460. #If player has 2 houses on property...
  6461. elif red3h == 2:
  6462. red3r = 300
  6463. #If player has 3 houses on property...
  6464. elif red3h == 3:
  6465. red3r = 750
  6466. #If player has 4 houses on property...
  6467. elif red3h == 4:
  6468. red3r = 925
  6469. #If player has a hotel on property...
  6470. elif red3h == 5:
  6471. red3r = 1100
  6472. #If player does not own a Monopoly over all colors of the property...
  6473. elif red1 != 2 or red2 != 2:
  6474. red3r = 20
  6475. #Player One pays Player Two rent
  6476. print(p1, "pays", p2, "$" + str(red3r) + "!")
  6477. p1m = p1m - red3r
  6478. p2m = p2m + red3r
  6479. print("You now have $" + str(p1m) + ".\n")
  6480. #If property is mortgaged...
  6481. elif red3m == 1:
  6482. print("Illinois Avenue is currently mortgaged.\n")
  6483.  
  6484. ############If player lands on Atlantic Avenue...
  6485. if p1s == 26:
  6486. print()
  6487. #If property is unowned...
  6488. if ye1 == 0:
  6489. price = 260
  6490. #Checks to ensure y/n answer is given
  6491. while buy.lower() != "y" and buy.lower() != "n":
  6492. buy = input("Do you want to buy Atlantic Avenue for $260? (y/n): ")
  6493. #If player wants to buy the property...
  6494. if buy.lower() == "y":
  6495. #Success!
  6496. if p1m >= 260:
  6497. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6498. p1m = p1m - price
  6499. ye1 = 1
  6500. if p1cc.lower() == "cat":
  6501. prop19.shape(catp)
  6502. elif p1cc.lower() == "car":
  6503. prop19.shape(carp)
  6504. elif p1cc.lower() == "stickman":
  6505. prop19.shape(stickmanp)
  6506. elif p1cc.lower() == "thimble":
  6507. prop19.shape(thimblep)
  6508. elif p1cc.lower() == "catcolor":
  6509. prop19.shape(catcolorp)
  6510. elif p1cc.lower() == "stickmancolor":
  6511. prop19.shape(stickmancolorp)
  6512. elif p1cc.lower() == "carcolor":
  6513. prop19.shape(carcolorp)
  6514. elif p1cc.lower() == "thimblecolor":
  6515. prop19.shape(thimblecolorp)
  6516. prop19.st()
  6517. print("You now have $" + str(p1m) + ".")
  6518. input()
  6519. #Not enough money!
  6520. else:
  6521. print("Insufficient funds.\n")
  6522. #If player doesn't want to buy the property...
  6523. elif buy.lower() == "n":
  6524. print(p1, "chose to ignore the property.\n")
  6525. #If player gives a response that is not "y" or "n"...
  6526. else:
  6527. print("Invalid response.")
  6528. #If Player One owns the property...
  6529. elif ye1 == 1:
  6530. print(p1, "stays a free night in their own property.\n")
  6531. #If Player Two owns the property...
  6532. elif ye1 == 2:
  6533. #If property is not mortgaged...
  6534. if ye1m == 0:
  6535. ye1r = 22
  6536. #If player owns a Monopoly over all colors of the property...
  6537. if ye2 == 2 and ye3 == 2:
  6538. ye1r = 44
  6539. #If player has 1 house on property...
  6540. if ye1h == 1:
  6541. ye1r = 110
  6542. #If player has 2 houses on property...
  6543. elif ye1h == 2:
  6544. ye1r = 330
  6545. #If player has 3 houses on property...
  6546. elif ye1h == 3:
  6547. ye1r = 800
  6548. #If player has 4 houses on property...
  6549. elif ye1h == 4:
  6550. ye1r = 975
  6551. #If player has a hotel on property...
  6552. elif ye1h == 5:
  6553. ye1r = 1150
  6554. #If player does not own a Monopoly over all colors of the property...
  6555. elif ye2 != 2 or ye3 != 2:
  6556. ye1r = 22
  6557. #Player One pays Player Two rent
  6558. print(p1, "pays", p2, "$" + str(ye1r) + "!")
  6559. p1m = p1m - ye1r
  6560. p2m = p2m + ye1r
  6561. print("You now have $" + str(p1m) + ".\n")
  6562. #If property is mortgaged...
  6563. elif ye1m == 1:
  6564. print("Atlantic Avenue is currently mortgaged.\n")
  6565.  
  6566. ############If player lands on Ventnor Avenue...
  6567. if p1s == 27:
  6568. print()
  6569. #If property is unowned...
  6570. if ye2 == 0:
  6571. price = 260
  6572. #Checks to ensure y/n answer is given
  6573. while buy.lower() != "y" and buy.lower() != "n":
  6574. buy = input("Do you want to buy Ventnor Avenue for $260? (y/n): ")
  6575. #If player wants to buy the property...
  6576. if buy.lower() == "y":
  6577. #Success!
  6578. if p1m >= 260:
  6579. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6580. p1m = p1m - price
  6581. ye2 = 1
  6582. if p1cc.lower() == "cat":
  6583. prop20.shape(catp)
  6584. elif p1cc.lower() == "car":
  6585. prop20.shape(carp)
  6586. elif p1cc.lower() == "stickman":
  6587. prop20.shape(stickmanp)
  6588. elif p1cc.lower() == "thimble":
  6589. prop20.shape(thimblep)
  6590. elif p1cc.lower() == "catcolor":
  6591. prop20.shape(catcolorp)
  6592. elif p1cc.lower() == "stickmancolor":
  6593. prop20.shape(stickmancolorp)
  6594. elif p1cc.lower() == "carcolor":
  6595. prop20.shape(carcolorp)
  6596. elif p1cc.lower() == "thimblecolor":
  6597. prop20.shape(thimblecolorp)
  6598. prop20.st()
  6599. print("You now have $" + str(p1m) + ".")
  6600. input()
  6601. #Not enough money!
  6602. else:
  6603. print("Insufficient funds.\n")
  6604. #If player doesn't want to buy the property...
  6605. elif buy.lower() == "n":
  6606. print(p1, "chose to ignore the property.\n")
  6607. #If player gives a response that is not "y" or "n"...
  6608. else:
  6609. print("Invalid response.")
  6610. #If Player One owns the property...
  6611. elif ye2 == 1:
  6612. print(p1, "stays a free night in their own property.\n")
  6613. #If Player Two owns the property...
  6614. elif ye2 == 2:
  6615. #If property is not mortgaged...
  6616. if ye2m == 0:
  6617. ye2r = 22
  6618. #If player owns a Monopoly over all colors of the property...
  6619. if ye1 == 2 and ye3 == 2:
  6620. ye2r = 44
  6621. #If player has 1 house on property...
  6622. if ye2h == 1:
  6623. ye2r = 110
  6624. #If player has 2 houses on property...
  6625. elif ye2h == 2:
  6626. ye2r = 330
  6627. #If player has 3 houses on property...
  6628. elif ye2h == 3:
  6629. ye2r = 800
  6630. #If player has 4 houses on property...
  6631. elif ye2h == 4:
  6632. ye2r = 975
  6633. #If player has a hotel on property...
  6634. elif ye2h == 5:
  6635. ye2r = 1150
  6636. #If player does not own a Monopoly over all colors of the property...
  6637. elif ye1 != 2 or ye3 != 2:
  6638. ye2r = 22
  6639. #Player One pays Player Two rent
  6640. print(p1, "pays", p2, "$" + str(ye2r) + "!")
  6641. p1m = p1m - ye2r
  6642. p2m = p2m + ye2r
  6643. print("You now have $" + str(p1m) + ".\n")
  6644. #If property is mortgaged...
  6645. elif ye2m == 1:
  6646. print("Ventnor Avenue is currently mortgaged.\n")
  6647.  
  6648. ############If player lands on Marvin Gardens...
  6649. if p1s == 29:
  6650. print()
  6651. #If property is unowned...
  6652. if ye3 == 0:
  6653. price = 280
  6654. #Checks to ensure y/n answer is given
  6655. while buy.lower() != "y" and buy.lower() != "n":
  6656. buy = input("Do you want to buy Marvin Gardens for $280? (y/n): ")
  6657. #If player wants to buy the property...
  6658. if buy.lower() == "y":
  6659. #Success!
  6660. if p1m >= 280:
  6661. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6662. p1m = p1m - price
  6663. ye3 = 1
  6664. if p1cc.lower() == "cat":
  6665. prop22.shape(catp)
  6666. elif p1cc.lower() == "car":
  6667. prop22.shape(carp)
  6668. elif p1cc.lower() == "stickman":
  6669. prop22.shape(stickmanp)
  6670. elif p1cc.lower() == "thimble":
  6671. prop22.shape(thimblep)
  6672. elif p1cc.lower() == "catcolor":
  6673. prop22.shape(catcolorp)
  6674. elif p1cc.lower() == "stickmancolor":
  6675. prop22.shape(stickmancolorp)
  6676. elif p1cc.lower() == "carcolor":
  6677. prop22.shape(carcolorp)
  6678. elif p1cc.lower() == "thimblecolor":
  6679. prop22.shape(thimblecolorp)
  6680. prop22.st()
  6681. print("You now have $" + str(p1m) + ".")
  6682. input()
  6683. #Not enough money!
  6684. else:
  6685. print("Insufficient funds.\n")
  6686. #If player doesn't want to buy the property...
  6687. elif buy.lower() == "n":
  6688. print(p1, "chose to ignore the property.\n")
  6689. #If player gives a response that is not "y" or "n"...
  6690. else:
  6691. print("Invalid response.")
  6692. #If Player One owns the property...
  6693. elif ye3 == 1:
  6694. print(p1, "stays a free night in their own property.\n")
  6695. #If Player Two owns the property...
  6696. elif ye3 == 2:
  6697. #If property is not mortgaged...
  6698. if ye3m == 0:
  6699. ye3r = 24
  6700. #If player owns a Monopoly over all colors of the property...
  6701. if ye1 == 2 and ye2 == 2:
  6702. ye3r = 48
  6703. #If player has 1 house on property...
  6704. if ye3h == 1:
  6705. ye3r = 120
  6706. #If player has 2 houses on property...
  6707. elif ye3h == 2:
  6708. ye3r = 360
  6709. #If player has 3 houses on property...
  6710. elif ye3h == 3:
  6711. ye3r = 850
  6712. #If player has 4 houses on property...
  6713. elif ye3h == 4:
  6714. ye3r = 1025
  6715. #If player has a hotel on property...
  6716. elif ye3h == 5:
  6717. ye3r = 1200
  6718. #If player does not own a Monopoly over all colors of the property...
  6719. elif ye1 != 2 or ye2 != 2:
  6720. ye3r = 24
  6721. #Player One pays Player Two rent
  6722. print(p1, "pays", p2, "$" + str(ye3r) + "!")
  6723. p1m = p1m - ye3r
  6724. p2m = p2m + ye3r
  6725. print("You now have $" + str(p1m) + ".\n")
  6726. #If property is mortgaged...
  6727. elif ye3m == 1:
  6728. print("Marvin Gardens is currently mortgaged.\n")
  6729.  
  6730. ############If player lands on Pacific Avenue...
  6731. if p1s == 31:
  6732. print()
  6733. #If property is unowned...
  6734. if gr1 == 0:
  6735. price = 300
  6736. #Checks to ensure y/n answer is given
  6737. while buy.lower() != "y" and buy.lower() != "n":
  6738. buy = input("Do you want to buy Pacific Avenue for $300? (y/n): ")
  6739. #If player wants to buy the property...
  6740. if buy.lower() == "y":
  6741. #Success!
  6742. if p1m >= 300:
  6743. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6744. p1m = p1m - price
  6745. gr1 = 1
  6746. if p1cc.lower() == "cat":
  6747. prop23.shape(catp)
  6748. elif p1cc.lower() == "car":
  6749. prop23.shape(carp)
  6750. elif p1cc.lower() == "stickman":
  6751. prop23.shape(stickmanp)
  6752. elif p1cc.lower() == "thimble":
  6753. prop23.shape(thimblep)
  6754. elif p1cc.lower() == "catcolor":
  6755. prop23.shape(catcolorp)
  6756. elif p1cc.lower() == "stickmancolor":
  6757. prop23.shape(stickmancolorp)
  6758. elif p1cc.lower() == "carcolor":
  6759. prop23.shape(carcolorp)
  6760. elif p1cc.lower() == "thimblecolor":
  6761. prop23.shape(thimblecolorp)
  6762. prop23.st()
  6763. print("You now have $" + str(p1m) + ".")
  6764. input()
  6765. #Not enough money!
  6766. else:
  6767. print("Insufficient funds.\n")
  6768. #If player doesn't want to buy the property...
  6769. elif buy.lower() == "n":
  6770. print(p1, "chose to ignore the property.\n")
  6771. #If player gives a response that is not "y" or "n"...
  6772. else:
  6773. print("Invalid response.")
  6774. #If Player One owns the property...
  6775. elif gr1 == 1:
  6776. print(p1, "stays a free night in their own property.\n")
  6777. #If Player Two owns the property...
  6778. elif gr1 == 2:
  6779. #If property is not mortgaged...
  6780. if gr1m == 0:
  6781. gr1r = 26
  6782. #If player owns a Monopoly over all colors of the property...
  6783. if gr2 == 2 and gr3 == 2:
  6784. gr1r = 52
  6785. #If player has 1 house on property...
  6786. if gr1h == 1:
  6787. gr1r = 130
  6788. #If player has 2 houses on property...
  6789. elif gr1h == 2:
  6790. gr1r = 390
  6791. #If player has 3 houses on property...
  6792. elif gr1h == 3:
  6793. gr1r = 900
  6794. #If player has 4 houses on property...
  6795. elif gr1h == 4:
  6796. gr1r = 1100
  6797. #If player has a hotel on property...
  6798. elif gr1h == 5:
  6799. gr1r = 1275
  6800. #If player does not own a Monopoly over all colors of the property...
  6801. elif gr2 != 2 or gr3 != 2:
  6802. gr1r = 26
  6803. #Player One pays Player Two rent
  6804. print(p1, "pays", p2, "$" + str(gr1r) + "!")
  6805. p1m = p1m - gr1r
  6806. p2m = p2m + gr1r
  6807. print("You now have $" + str(p1m) + ".\n")
  6808. #If property is mortgaged...
  6809. elif gr1m == 1:
  6810. print("Pacific Avenue is currently mortgaged.\n")
  6811.  
  6812. ############If player lands on North Carolina Avenue...
  6813. if p1s == 32:
  6814. print()
  6815. #If property is unowned...
  6816. if gr2 == 0:
  6817. price = 300
  6818. #Checks to ensure y/n answer is given
  6819. while buy.lower() != "y" and buy.lower() != "n":
  6820. buy = input("Do you want to buy North Carolina Avenue for $300? (y/n): ")
  6821. #If player wants to buy the property...
  6822. if buy.lower() == "y":
  6823. #Success!
  6824. if p1m >= 300:
  6825. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6826. p1m = p1m - price
  6827. gr2 = 1
  6828. if p1cc.lower() == "cat":
  6829. prop24.shape(catp)
  6830. elif p1cc.lower() == "car":
  6831. prop24.shape(carp)
  6832. elif p1cc.lower() == "stickman":
  6833. prop24.shape(stickmanp)
  6834. elif p1cc.lower() == "thimble":
  6835. prop24.shape(thimblep)
  6836. elif p1cc.lower() == "catcolor":
  6837. prop24.shape(catcolorp)
  6838. elif p1cc.lower() == "stickmancolor":
  6839. prop24.shape(stickmancolorp)
  6840. elif p1cc.lower() == "carcolor":
  6841. prop24.shape(carcolorp)
  6842. elif p1cc.lower() == "thimblecolor":
  6843. prop24.shape(thimblecolorp)
  6844. prop24.st()
  6845. print("You now have $" + str(p1m) + ".")
  6846. input()
  6847. #Not enough money!
  6848. else:
  6849. print("Insufficient funds.\n")
  6850. #If player doesn't want to buy the property...
  6851. elif buy.lower() == "n":
  6852. print(p1, "chose to ignore the property.\n")
  6853. #If player gives a response that is not "y" or "n"...
  6854. else:
  6855. print("Invalid response.")
  6856. #If Player One owns the property...
  6857. elif gr2 == 1:
  6858. print(p1, "stays a free night in their own property.\n")
  6859. #If Player Two owns the property...
  6860. elif gr2 == 2:
  6861. #If property is not mortgaged...
  6862. if gr2m == 0:
  6863. gr2r = 26
  6864. #If player owns a Monopoly over all colors of the property...
  6865. if gr1 == 2 and gr3 == 2:
  6866. gr2r = 52
  6867. #If player has 1 house on property...
  6868. if gr2h == 1:
  6869. gr2r = 130
  6870. #If player has 2 houses on property...
  6871. elif gr2h == 2:
  6872. gr2r = 390
  6873. #If player has 3 houses on property...
  6874. elif gr2h == 3:
  6875. gr2r = 900
  6876. #If player has 4 houses on property...
  6877. elif gr2h == 4:
  6878. gr2r = 1100
  6879. #If player has a hotel on property...
  6880. elif gr2h == 5:
  6881. gr2r = 1275
  6882. #If player does not own a Monopoly over all colors of the property...
  6883. elif gr1 != 2 or gr3 != 2:
  6884. gr2r = 26
  6885. #Player One pays Player Two rent
  6886. print(p1, "pays", p2, "$" + str(gr2r) + "!")
  6887. p1m = p1m - gr2r
  6888. p2m = p2m + gr2r
  6889. print("You now have $" + str(p1m) + ".\n")
  6890. #If property is mortgaged...
  6891. elif gr2m == 1:
  6892. print("North Carolina Avenue is currently mortgaged.\n")
  6893.  
  6894. ############If player lands on Pennsylvania Avenue...
  6895. if p1s == 34:
  6896. print()
  6897. #If property is unowned...
  6898. if gr3 == 0:
  6899. price = 320
  6900. #Checks to ensure y/n answer is given
  6901. while buy.lower() != "y" and buy.lower() != "n":
  6902. buy = input("Do you want to buy Pennsylvania Avenue for $320? (y/n): ")
  6903. #If player wants to buy the property...
  6904. if buy.lower() == "y":
  6905. #Success!
  6906. if p1m >= 320:
  6907. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6908. p1m = p1m - price
  6909. gr3 = 1
  6910. if p1cc.lower() == "cat":
  6911. prop25.shape(catp)
  6912. elif p1cc.lower() == "car":
  6913. prop25.shape(carp)
  6914. elif p1cc.lower() == "stickman":
  6915. prop25.shape(stickmanp)
  6916. elif p1cc.lower() == "thimble":
  6917. prop25.shape(thimblep)
  6918. elif p1cc.lower() == "catcolor":
  6919. prop25.shape(catcolorp)
  6920. elif p1cc.lower() == "stickmancolor":
  6921. prop25.shape(stickmancolorp)
  6922. elif p1cc.lower() == "carcolor":
  6923. prop25.shape(carcolorp)
  6924. elif p1cc.lower() == "thimblecolor":
  6925. prop25.shape(thimblecolorp)
  6926. prop25.st()
  6927. print("You now have $" + str(p1m) + ".")
  6928. input()
  6929. #Not enough money!
  6930. else:
  6931. print("Insufficient funds.\n")
  6932. #If player doesn't want to buy the property...
  6933. elif buy.lower() == "n":
  6934. print(p1, "chose to ignore the property.\n")
  6935. #If player gives a response that is not "y" or "n"...
  6936. else:
  6937. print("Invalid response.")
  6938. #If Player One owns the property...
  6939. elif gr3 == 1:
  6940. print(p1, "stays a free night in their own property.\n")
  6941. #If Player Two owns the property...
  6942. elif gr3 == 2:
  6943. #If property is not mortgaged...
  6944. if gr3m == 0:
  6945. gr3r = 28
  6946. #If player owns a Monopoly over all colors of the property...
  6947. if gr1 == 2 and gr2 == 2:
  6948. gr3r = 56
  6949. #If player has 1 house on property...
  6950. if gr3h == 1:
  6951. gr3r = 150
  6952. #If player has 2 houses on property...
  6953. elif gr3h == 2:
  6954. gr3r = 450
  6955. #If player has 3 houses on property...
  6956. elif gr3h == 3:
  6957. gr3r = 1000
  6958. #If player has 4 houses on property...
  6959. elif gr3h == 4:
  6960. gr3r = 1200
  6961. #If player has a hotel on property...
  6962. elif gr3h == 5:
  6963. gr3r = 1400
  6964. #If player does not own a Monopoly over all colors of the property...
  6965. elif gr1 != 2 or gr2 != 2:
  6966. gr3r = 28
  6967. #Player One pays Player Two rent
  6968. print(p1, "pays", p2, "$" + str(gr3r) + "!")
  6969. p1m = p1m - gr3r
  6970. p2m = p2m + gr3r
  6971. print("You now have $" + str(p1m) + ".\n")
  6972. #If property is mortgaged...
  6973. elif gr3m == 1:
  6974. print("Pennsylvania Avenue is currently mortgaged.\n")
  6975.  
  6976. ############If player lands on Park Place...
  6977. if p1s == 37:
  6978. print()
  6979. #If property is unowned...
  6980. if bl1 == 0:
  6981. price = 350
  6982. #Checks to ensure y/n answer is given
  6983. while buy.lower() != "y" and buy.lower() != "n":
  6984. buy = input("Do you want to buy Park Place for $350? (y/n): ")
  6985. #If player wants to buy the property...
  6986. if buy.lower() == "y":
  6987. #Success!
  6988. if p1m >= 350:
  6989. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  6990. p1m = p1m - price
  6991. bl1 = 1
  6992. if p1cc.lower() == "cat":
  6993. prop27.shape(catp)
  6994. elif p1cc.lower() == "car":
  6995. prop27.shape(carp)
  6996. elif p1cc.lower() == "stickman":
  6997. prop27.shape(stickmanp)
  6998. elif p1cc.lower() == "thimble":
  6999. prop27.shape(thimblep)
  7000. elif p1cc.lower() == "catcolor":
  7001. prop27.shape(catcolorp)
  7002. elif p1cc.lower() == "stickmancolor":
  7003. prop27.shape(stickmancolorp)
  7004. elif p1cc.lower() == "carcolor":
  7005. prop27.shape(carcolorp)
  7006. elif p1cc.lower() == "thimblecolor":
  7007. prop27.shape(thimblecolorp)
  7008. prop27.st()
  7009. print("You now have $" + str(p1m) + ".")
  7010. input()
  7011. #Not enough money!
  7012. else:
  7013. print("Insufficient funds.\n")
  7014. #If player doesn't want to buy the property...
  7015. elif buy.lower() == "n":
  7016. print(p1, "chose to ignore the property.\n")
  7017. #If player gives a response that is not "y" or "n"...
  7018. else:
  7019. print("Invalid response.")
  7020. #If Player One owns the property...
  7021. elif bl1 == 1:
  7022. print(p1, "stays a free night in their own property.\n")
  7023. #If Player Two owns the property...
  7024. elif bl1 == 2:
  7025. #If property is not mortgaged...
  7026. if bl1m == 0:
  7027. bl1r = 35
  7028. #If player owns a Monopoly over all colors of the property...
  7029. if bl2 == 2:
  7030. bl1r = 70
  7031. #If player has 1 house on property...
  7032. if bl1h == 1:
  7033. bl1r = 175
  7034. #If player has 2 houses on property...
  7035. elif bl1h == 2:
  7036. bl1r = 500
  7037. #If player has 3 houses on property...
  7038. elif bl1h == 3:
  7039. bl1r = 1100
  7040. #If player has 4 houses on property...
  7041. elif bl1h == 4:
  7042. bl1r = 1300
  7043. #If player has a hotel on property...
  7044. elif bl1h == 5:
  7045. bl1r = 1500
  7046. #If player does not own a Monopoly over all colors of the property...
  7047. elif bl2 != 2:
  7048. bl1r = 35
  7049. #Player One pays Player Two rent
  7050. print(p1, "pays", p2, "$" + str(bl1r) + "!")
  7051. p1m = p1m - bl1r
  7052. p2m = p2m + bl1r
  7053. print("You now have $" + str(p1m) + ".\n")
  7054. #If property is mortgaged...
  7055. elif bl1m == 1:
  7056. print("Park Place is currently mortgaged.\n")
  7057.  
  7058. ############If player lands on Boardwalk...
  7059. if p1s == 39:
  7060. print()
  7061. #If property is unowned...
  7062. if bl2 == 0:
  7063. price = 400
  7064. #Checks to ensure y/n answer is given
  7065. while buy.lower() != "y" and buy.lower() != "n":
  7066. buy = input("Do you want to buy Boardwalk for $400? (y/n): ")
  7067. #If player wants to buy the property...
  7068. if buy.lower() == "y":
  7069. #Success!
  7070. if p1m >= 400:
  7071. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  7072. p1m = p1m - price
  7073. bl2 = 1
  7074. if p1cc.lower() == "cat":
  7075. prop28.shape(catp)
  7076. elif p1cc.lower() == "car":
  7077. prop28.shape(carp)
  7078. elif p1cc.lower() == "stickman":
  7079. prop28.shape(stickmanp)
  7080. elif p1cc.lower() == "thimble":
  7081. prop28.shape(thimblep)
  7082. elif p1cc.lower() == "catcolor":
  7083. prop28.shape(catcolorp)
  7084. elif p1cc.lower() == "stickmancolor":
  7085. prop28.shape(stickmancolorp)
  7086. elif p1cc.lower() == "carcolor":
  7087. prop28.shape(carcolorp)
  7088. elif p1cc.lower() == "thimblecolor":
  7089. prop28.shape(thimblecolorp)
  7090. prop28.st()
  7091. print("You now have $" + str(p1m) + ".")
  7092. input()
  7093. #Not enough money!
  7094. else:
  7095. print("Insufficient funds.\n")
  7096. #If player doesn't want to buy the property...
  7097. elif buy.lower() == "n":
  7098. print(p1, "chose to ignore the property.\n")
  7099. #If player gives a response that is not "y" or "n"...
  7100. else:
  7101. print("Invalid response.")
  7102. #If Player One owns the property...
  7103. elif bl2 == 1:
  7104. print(p1, "stays a free night in their own property.\n")
  7105. #If Player Two owns the property...
  7106. elif bl2 == 2:
  7107. #If property is not mortgaged...
  7108. if bl2m == 0:
  7109. bl2r = 50
  7110. #If player owns a Monopoly over all colors of the property...
  7111. if bl1 == 2:
  7112. bl2r = 100
  7113. #If player has 1 house on property...
  7114. if bl2h == 1:
  7115. bl2r = 200
  7116. #If player has 2 houses on property...
  7117. elif bl2h == 2:
  7118. bl2r = 600
  7119. #If player has 3 houses on property...
  7120. elif bl2h == 3:
  7121. bl2r = 1400
  7122. #If player has 4 houses on property...
  7123. elif bl2h == 4:
  7124. bl2r = 1700
  7125. #If player has a hotel on property...
  7126. elif bl2h == 5:
  7127. bl2r = 2000
  7128. #If player does not own a Monopoly over all colors of the property...
  7129. elif bl1 != 2:
  7130. bl2r = 50
  7131. #Player One pays Player Two rent
  7132. print(p1, "pays", p2, "$" + str(bl2r) + "!")
  7133. p1m = p1m - bl2r
  7134. p2m = p2m + bl2r
  7135. print("You now have $" + str(p1m) + ".\n")
  7136. #If property is mortgaged...
  7137. elif bl2m == 1:
  7138. print("Boardwalk is currently mortgaged.\n")
  7139.  
  7140. ############If player lands on Reading Railroad...
  7141. if p1s == 5:
  7142. print()
  7143. #If property is unowned...
  7144. if rrr == 0:
  7145. price = 200
  7146. #Checks to ensure y/n answer is given
  7147. while buy.lower() != "y" and buy.lower() != "n":
  7148. buy = input("Do you want to buy Reading Railroad for $200? (y/n): ")
  7149. #If player wants to buy the property...
  7150. if buy.lower() == "y":
  7151. #Success!
  7152. if p1m >= 200:
  7153. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  7154. p1m = p1m - price
  7155. rrr = 1
  7156. p1rr = p1rr + 1
  7157. if p1cc.lower() == "cat":
  7158. prop3.shape(catp)
  7159. elif p1cc.lower() == "car":
  7160. prop3.shape(carp)
  7161. elif p1cc.lower() == "stickman":
  7162. prop3.shape(stickmanp)
  7163. elif p1cc.lower() == "thimble":
  7164. prop3.shape(thimblep)
  7165. elif p1cc.lower() == "catcolor":
  7166. prop3.shape(catcolorp)
  7167. elif p1cc.lower() == "stickmancolor":
  7168. prop3.shape(stickmancolorp)
  7169. elif p1cc.lower() == "carcolor":
  7170. prop3.shape(carcolorp)
  7171. elif p1cc.lower() == "thimblecolor":
  7172. prop3.shape(thimblecolorp)
  7173. prop3.st()
  7174. print("You now have $" + str(p1m) + ".")
  7175. input()
  7176. #Not enough money!
  7177. else:
  7178. print("Insufficient funds.\n")
  7179. #If player doesn't want to buy the property...
  7180. elif buy.lower() == "n":
  7181. print(p1, "chose to ignore the railroad.\n")
  7182. #If player gives a response that is not "y" or "n"...
  7183. else:
  7184. print("Invalid response.")
  7185. #If Player One owns the property...
  7186. elif rrr == 1:
  7187. print(p1, "admires their railroad.\n")
  7188. #If Player Two owns the property...
  7189. elif rrr == 2:
  7190. #If property is not mortgaged...
  7191. if rrrm == 0:
  7192. rrrr = 25
  7193. #If player owns a Monopoly over all colors of the property...
  7194. if p2rr == 2:
  7195. rrrr = 50
  7196. elif p2rr == 3:
  7197. rrrr = 100
  7198. elif p2rr == 4:
  7199. rrrr = 200
  7200. #Player One pays Player Two rent
  7201. print(p1, "pays", p2, "$" + str(rrrr) + "!")
  7202. p1m = p1m - rrrr
  7203. p2m = p2m + rrrr
  7204. print("You now have $" + str(p1m) + ".\n")
  7205. #If property is mortgaged...
  7206. elif rrrm == 1:
  7207. print("Reading Railroad is currently mortgaged.\n")
  7208.  
  7209. ############If player lands on Pennsylvania Railroad...
  7210. if p1s == 15:
  7211. print()
  7212. #If property is unowned...
  7213. if prr == 0:
  7214. price = 200
  7215. #Checks to ensure y/n answer is given
  7216. while buy.lower() != "y" and buy.lower() != "n":
  7217. buy = input("Do you want to buy Pennsylvania Railroad for $200? (y/n): ")
  7218. #If player wants to buy the property...
  7219. if buy.lower() == "y":
  7220. #Success!
  7221. if p1m >= 200:
  7222. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  7223. p1m = p1m - price
  7224. prr = 1
  7225. p1rr = p1rr + 1
  7226. if p1cc.lower() == "cat":
  7227. prop11.shape(catp)
  7228. elif p1cc.lower() == "car":
  7229. prop11.shape(carp)
  7230. elif p1cc.lower() == "stickman":
  7231. prop11.shape(stickmanp)
  7232. elif p1cc.lower() == "thimble":
  7233. prop11.shape(thimblep)
  7234. elif p1cc.lower() == "catcolor":
  7235. prop11.shape(catcolorp)
  7236. elif p1cc.lower() == "stickmancolor":
  7237. prop11.shape(stickmancolorp)
  7238. elif p1cc.lower() == "carcolor":
  7239. prop11.shape(carcolorp)
  7240. elif p1cc.lower() == "thimblecolor":
  7241. prop11.shape(thimblecolorp)
  7242. prop11.st()
  7243. print("You now have $" + str(p1m) + ".")
  7244. input()
  7245. #Not enough money!
  7246. else:
  7247. print("Insufficient funds.\n")
  7248. #If player doesn't want to buy the property...
  7249. elif buy.lower() == "n":
  7250. print(p1, "chose to ignore the railroad.\n")
  7251. #If player gives a response that is not "y" or "n"...
  7252. else:
  7253. print("Invalid response.")
  7254. #If Player One owns the property...
  7255. elif prr == 1:
  7256. print(p1, "admires their railroad.\n")
  7257. #If Player Two owns the property...
  7258. elif prr == 2:
  7259. #If property is not mortgaged...
  7260. if prrm == 0:
  7261. prrr = 25
  7262. #If player owns a Monopoly over all colors of the property...
  7263. if p2rr == 2:
  7264. prrr = 50
  7265. elif p2rr == 3:
  7266. prrr = 100
  7267. elif p2rr == 4:
  7268. prrr = 200
  7269. #Player One pays Player Two rent
  7270. print(p1, "pays", p2, "$" + str(prrr) + "!")
  7271. p1m = p1m - prrr
  7272. p2m = p2m + prrr
  7273. print("You now have $" + str(p1m) + ".\n")
  7274. #If property is mortgaged...
  7275. elif prrm == 1:
  7276. print("Pennsylvania Railroad is currently mortgaged.\n")
  7277.  
  7278. ############If player lands on B. & O. Railroad...
  7279. if p1s == 25:
  7280. print()
  7281. #If property is unowned...
  7282. if brr == 0:
  7283. price = 200
  7284. #Checks to ensure y/n answer is given
  7285. while buy.lower() != "y" and buy.lower() != "n":
  7286. buy = input("Do you want to buy B. & O. Railroad for $200? (y/n): ")
  7287. #If player wants to buy the property...
  7288. if buy.lower() == "y":
  7289. #Success!
  7290. if p1m >= 200:
  7291. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  7292. p1m = p1m - price
  7293. brr = 1
  7294. p1rr = p1rr + 1
  7295. if p1cc.lower() == "cat":
  7296. prop18.shape(catp)
  7297. elif p1cc.lower() == "car":
  7298. prop18.shape(carp)
  7299. elif p1cc.lower() == "stickman":
  7300. prop18.shape(stickmanp)
  7301. elif p1cc.lower() == "thimble":
  7302. prop18.shape(thimblep)
  7303. elif p1cc.lower() == "catcolor":
  7304. prop18.shape(catcolorp)
  7305. elif p1cc.lower() == "stickmancolor":
  7306. prop18.shape(stickmancolorp)
  7307. elif p1cc.lower() == "carcolor":
  7308. prop18.shape(carcolorp)
  7309. elif p1cc.lower() == "thimblecolor":
  7310. prop18.shape(thimblecolorp)
  7311. prop18.st()
  7312. print("You now have $" + str(p1m) + ".")
  7313. input()
  7314. #Not enough money!
  7315. else:
  7316. print("Insufficient funds.\n")
  7317. #If player doesn't want to buy the property...
  7318. elif buy.lower() == "n":
  7319. print(p1, "chose to ignore the railroad.\n")
  7320. #If player gives a response that is not "y" or "n"...
  7321. else:
  7322. print("Invalid response.")
  7323. #If Player One owns the property...
  7324. elif brr == 1:
  7325. print(p1, "admires their railroad.\n")
  7326. #If Player Two owns the property...
  7327. elif brr == 2:
  7328. #If property is not mortgaged...
  7329. if brrm == 0:
  7330. brrr = 25
  7331. #If player owns a Monopoly over all colors of the property...
  7332. if p2rr == 2:
  7333. brrr = 50
  7334. elif p2rr == 3:
  7335. brrr = 100
  7336. elif p2rr == 4:
  7337. brrr = 200
  7338. #Player One pays Player Two rent
  7339. print(p1, "pays", p2, "$" + str(brrr) + "!")
  7340. p1m = p1m - brrr
  7341. p2m = p2m + brrr
  7342. print("You now have $" + str(p1m) + ".\n")
  7343. #If property is mortgaged...
  7344. elif brrm == 1:
  7345. print("B. & O. Railroad is currently mortgaged.\n")
  7346.  
  7347. ############If player lands on Short Line...
  7348. if p1s == 35:
  7349. print()
  7350. #If property is unowned...
  7351. if srr == 0:
  7352. price = 200
  7353. #Checks to ensure y/n answer is given
  7354. while buy.lower() != "y" and buy.lower() != "n":
  7355. buy = input("Do you want to buy Short Line for $200? (y/n): ")
  7356. #If player wants to buy the property...
  7357. if buy.lower() == "y":
  7358. #Success!
  7359. if p1m >= 200:
  7360. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  7361. p1m = p1m - price
  7362. srr = 1
  7363. p1rr = p1rr + 1
  7364. if p1cc.lower() == "cat":
  7365. prop26.shape(catp)
  7366. elif p1cc.lower() == "car":
  7367. prop26.shape(carp)
  7368. elif p1cc.lower() == "stickman":
  7369. prop26.shape(stickmanp)
  7370. elif p1cc.lower() == "thimble":
  7371. prop26.shape(thimblep)
  7372. elif p1cc.lower() == "catcolor":
  7373. prop26.shape(catcolorp)
  7374. elif p1cc.lower() == "stickmancolor":
  7375. prop26.shape(stickmancolorp)
  7376. elif p1cc.lower() == "carcolor":
  7377. prop26.shape(carcolorp)
  7378. elif p1cc.lower() == "thimblecolor":
  7379. prop26.shape(thimblecolorp)
  7380. prop26.st()
  7381. print("You now have $" + str(p1m) + ".")
  7382. input()
  7383. #Not enough money!
  7384. else:
  7385. print("Insufficient funds.\n")
  7386. #If player doesn't want to buy the property...
  7387. elif buy.lower() == "n":
  7388. print(p1, "chose to ignore the railroad.\n")
  7389. #If player gives a response that is not "y" or "n"...
  7390. else:
  7391. print("Invalid response.")
  7392. #If Player One owns the property...
  7393. elif srr == 1:
  7394. print(p1, "admires their railroad.\n")
  7395. #If Player Two owns the property...
  7396. elif srr == 2:
  7397. #If property is not mortgaged...
  7398. if srrm == 0:
  7399. srrr = 25
  7400. #If player owns a Monopoly over all colors of the property...
  7401. if p2rr == 2:
  7402. srrr = 50
  7403. elif p2rr == 3:
  7404. srrr = 100
  7405. elif p2rr == 4:
  7406. srrr = 200
  7407. #Player One pays Player Two rent
  7408. print(p1, "pays", p2, "$" + str(srrr) + "!")
  7409. p1m = p1m - srrr
  7410. p2m = p2m + srrr
  7411. print("You now have $" + str(p1m) + ".\n")
  7412. #If property is mortgaged...
  7413. elif srrm == 1:
  7414. print("Short Line is currently mortgaged.\n")
  7415.  
  7416. ############If player lands on Electric Company...
  7417. if p1s == 12:
  7418. print()
  7419. #If property is unowned...
  7420. if ec == 0:
  7421. price = 150
  7422. #Checks to ensure y/n answer is given
  7423. while buy.lower() != "y" and buy.lower() != "n":
  7424. buy = input("Do you want to buy Electric Company for $150? (y/n): ")
  7425. #If player wants to buy the property...
  7426. if buy.lower() == "y":
  7427. #Success!
  7428. if p1m >= 150:
  7429. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  7430. p1m = p1m - price
  7431. ec = 1
  7432. p1u = p1u + 1
  7433. if p1cc.lower() == "cat":
  7434. prop8.shape(catp)
  7435. elif p1cc.lower() == "car":
  7436. prop8.shape(carp)
  7437. elif p1cc.lower() == "stickman":
  7438. prop8.shape(stickmanp)
  7439. elif p1cc.lower() == "thimble":
  7440. prop8.shape(thimblep)
  7441. elif p1cc.lower() == "catcolor":
  7442. prop8.shape(catcolorp)
  7443. elif p1cc.lower() == "stickmancolor":
  7444. prop8.shape(stickmancolorp)
  7445. elif p1cc.lower() == "carcolor":
  7446. prop8.shape(carcolorp)
  7447. elif p1cc.lower() == "thimblecolor":
  7448. prop8.shape(thimblecolorp)
  7449. prop8.st()
  7450. print("You now have $" + str(p1m) + ".")
  7451. input()
  7452. #Not enough money!
  7453. else:
  7454. print("Insufficient funds.\n")
  7455. #If player doesn't want to buy the property...
  7456. elif buy.lower() == "n":
  7457. print(p1, "chose to ignore the utility.\n")
  7458. #If player gives a response that is not "y" or "n"...
  7459. else:
  7460. print("Invalid response.")
  7461. #If Player One owns the property...
  7462. elif ec == 1:
  7463. print(p1, "admires their utility.\n")
  7464. #If Player Two owns the property...
  7465. elif ec == 2:
  7466. #If property is not mortgaged...
  7467. if ecm == 0:
  7468. ecr = ((die1 + die2) * 4)
  7469. #If both utilities are owned...
  7470. if p2u == 2:
  7471. ecr = ((die1 + die2) * 10)
  7472. #Player One pays Player Two rent
  7473. print(p1, "pays", p2, "$" + str(ecr) + "!")
  7474. p1m = p1m - ecr
  7475. p2m = p2m + ecr
  7476. print("You now have $" + str(p1m) + ".\n")
  7477. #If property is mortgaged...
  7478. elif ecm == 1:
  7479. print("Electric Company is currently mortgaged.\n")
  7480.  
  7481. ############If player lands on Water Works...
  7482. if p1s == 28:
  7483. print()
  7484. #If property is unowned...
  7485. if ww == 0:
  7486. price = 150
  7487. #Checks to ensure y/n answer is given
  7488. while buy.lower() != "y" and buy.lower() != "n":
  7489. buy = input("Do you want to buy Water Works for $150? (y/n): ")
  7490. #If player wants to buy the property...
  7491. if buy.lower() == "y":
  7492. #Success!
  7493. if p1m >= 150:
  7494. print(p1, "bought", space[p1s], "for $" + str(price) + "!")
  7495. p1m = p1m - price
  7496. ww = 1
  7497. p1u = p1u + 1
  7498. if p1cc.lower() == "cat":
  7499. prop21.shape(catp)
  7500. elif p1cc.lower() == "car":
  7501. prop21.shape(carp)
  7502. elif p1cc.lower() == "stickman":
  7503. prop21.shape(stickmanp)
  7504. elif p1cc.lower() == "thimble":
  7505. prop21.shape(thimblep)
  7506. elif p1cc.lower() == "catcolor":
  7507. prop21.shape(catcolorp)
  7508. elif p1cc.lower() == "stickmancolor":
  7509. prop21.shape(stickmancolorp)
  7510. elif p1cc.lower() == "carcolor":
  7511. prop21.shape(carcolorp)
  7512. elif p1cc.lower() == "thimblecolor":
  7513. prop21.shape(thimblecolorp)
  7514. prop21.st()
  7515. print("You now have $" + str(p1m) + ".")
  7516. input()
  7517. #Not enough money!
  7518. else:
  7519. print("Insufficient funds.\n")
  7520. #If player doesn't want to buy the property...
  7521. elif buy.lower() == "n":
  7522. print(p1, "chose to ignore the utility.\n")
  7523. #If player gives a response that is not "y" or "n"...
  7524. else:
  7525. print("Invalid response.")
  7526. #If Player One owns the property...
  7527. elif ww == 1:
  7528. print(p1, "admires their utility.\n")
  7529. #If Player Two owns the property...
  7530. elif ww == 2:
  7531. #If property is not mortgaged...
  7532. if wwm == 0:
  7533. wwr = ((die1 + die2) * 4)
  7534. #If both utilities are owned...
  7535. if p2u == 2:
  7536. wwr = ((die1 + die2) * 10)
  7537. #Player One pays Player Two rent
  7538. print(p1, "pays", p2, "$" + str(wwr) + "!")
  7539. p1m = p1m - wwr
  7540. p2m = p2m + wwr
  7541. print("You now have $" + str(p1m) + ".\n")
  7542. #If property is mortgaged...
  7543. elif wwm == 1:
  7544. print("Water Works is currently mortgaged.\n")
  7545.  
  7546. ############If player lands on Free Parking...
  7547. if p1s == 20:
  7548. print()
  7549. print(p1, "landed on Free Parking! You receive $" + str(fp) + "!")
  7550. p1m = p1m + fp
  7551. fp = 200
  7552. print("You now have $" + str(p1m) + ".\n")
  7553. print("Free Parking has been reset to $200.")
  7554. input()
  7555.  
  7556. ############If player lands on Income Tax...
  7557. if p1s == 4:
  7558. print()
  7559. if p1m >= 200:
  7560. p1m = p1m - 200
  7561. fp = fp + 200
  7562. print(p1, "paid off a $200 income tax.")
  7563. elif p1m < 200:
  7564. print(p1, "could only afford to pay off $" + str(p1m), "of their income tax. Yikes.")
  7565. fp = fp + p1m
  7566. p1m = p1m - p1m
  7567. print("You now have $" + str(p1m) + ".\n")
  7568. print("Free Parking how holds $" + str(fp) + ".")
  7569. input()
  7570.  
  7571. ############If player lands on Luxury Tax...
  7572. if p1s == 38:
  7573. print()
  7574. if p1m >= 100:
  7575. p1m = p1m - 100
  7576. fp = fp + 100
  7577. print(p1, "paid off a $100 luxury tax.")
  7578. elif p1m < 100:
  7579. print(p1, "could only afford to pay off $" + str(p1m), "of their luxury tax. Yikes.")
  7580. fp = fp + p1m
  7581. p1m = p1m - p1m
  7582. print("You now have $" + str(p1m) + ".\n")
  7583. print("Free Parking now holds $" + str(fp) + ".")
  7584. input()
  7585.  
  7586. ############If player lands on Jail...
  7587. if p1s == 30:
  7588. print()
  7589. print("Uh oh... Looks like you got framed.\n")
  7590. p1j = 1
  7591. for i in range(20):
  7592. if p1s < 40:
  7593. if p1x > -333 and p1y == -335:
  7594. if p1s == 0 or p1s == 9:
  7595. p1x = p1x - 82
  7596. else:
  7597. p1x = p1x - 63
  7598. elif p1x == -333 and p1y < 333:
  7599. if p1s == 10 or p1s == 19:
  7600. p1y = p1y + 82
  7601. else:
  7602. p1y = p1y + 63
  7603. elif p1x < 335 and p1y == 333:
  7604. if p1s == 20 or p1s == 29:
  7605. p1x = p1x + 82
  7606. else:
  7607. p1x = p1x + 63
  7608. elif p1x == 335 and p1y > -335:
  7609. if p1s == 30 or p1s == 39:
  7610. p1y = p1y - 82
  7611. else:
  7612. p1y = p1y - 63
  7613. #Sets player position on board
  7614. player1.setpos(p1x, p1y)
  7615. #Increases space player resides on
  7616. p1s = p1s + 1
  7617. #Resets player space count to 0 when passing 39
  7618. if p1s == 40:
  7619. p1s = 0
  7620.  
  7621. #Resets the "buy" variable
  7622. buy = "x"
  7623.  
  7624. #Displays player stats
  7625. print("*********************")
  7626. print("*", p1 + ":", end='')
  7627. if len(p1) <= 11:
  7628. for i in range(11 - len(p1)):
  7629. print(" ", end='')
  7630. print("$" + str(p1m), end='')
  7631. if len(str((p1m))) <= 5:
  7632. for i in range(5 - len(str((p1m)))):
  7633. print(" ", end='')
  7634. print("*\n*", p2 + ":", end='')
  7635. if len(p2) <= 11:
  7636. for i in range(11 - len(p2)):
  7637. print(" ", end='')
  7638. print("$" + str(p2m), end='')
  7639. if len(str((p2m))) <= 5:
  7640. for i in range(5 - len(str((p2m)))):
  7641. print(" ", end='')
  7642. print("*\n*********************")
  7643.  
  7644. #Checks for doubles
  7645. if die1 == die2:
  7646. if p1dubs < 2:
  7647. p1dubs = p1dubs + 1
  7648. print("\nDoubles! You get another turn,", p1 + "!")
  7649. turn = 1
  7650. #If doubles are rolled 3 times in a row...
  7651. elif p1dubs == 2:
  7652. print(p1 + ", you're convicted of speeding dangerously fast")
  7653. print("down a small 1000x1000 pixelated game board. Go to Jail.")
  7654. p1dubs = 0
  7655. while p1s != 10:
  7656. p1j = 1
  7657. if p1s < 40:
  7658. if p1x > -333 and p1y == -335:
  7659. if p1s == 0 or p1s == 9:
  7660. p1x = p1x - 82
  7661. else:
  7662. p1x = p1x - 63
  7663. elif p1x == -333 and p1y < 333:
  7664. if p1s == 10 or p1s == 19:
  7665. p1y = p1y + 82
  7666. else:
  7667. p1y = p1y + 63
  7668. elif p1x < 335 and p1y == 333:
  7669. if p1s == 20 or p1s == 29:
  7670. p1x = p1x + 82
  7671. else:
  7672. p1x = p1x + 63
  7673. elif p1x == 335 and p1y > -335:
  7674. if p1s == 30 or p1s == 39:
  7675. p1y = p1y - 82
  7676. else:
  7677. p1y = p1y - 63
  7678. #Sets player position on board
  7679. player1.setpos(p1x, p1y)
  7680. #Increases space player resides on
  7681. p1s = p1s + 1
  7682. #Resets player 1 space count to 0 when passing 39
  7683. if p1s == 40:
  7684. p1s = 0
  7685.  
  7686. elif die1 != die2:
  7687. p1dubs = 0
  7688. turn = 2
  7689.  
  7690. ############Signifies end of Player One's turn
  7691. input("---------------------------------------------------------")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement