Correcty wide typo on O'Connell
This commit is contained in:
parent
2ba1340ce8
commit
22a7798ed5
18
main.py
18
main.py
@ -7,7 +7,7 @@ import jsonpickle
|
|||||||
from src.Circus import Circus
|
from src.Circus import Circus
|
||||||
from src.TreasureCard import TreasureCard
|
from src.TreasureCard import TreasureCard
|
||||||
from src.Player import Player, ConcessionCard
|
from src.Player import Player, ConcessionCard
|
||||||
from src.MamaOConnel import MamaOConnel
|
from src.MamaOConnell import MamaOConnell
|
||||||
|
|
||||||
class Game:
|
class Game:
|
||||||
|
|
||||||
@ -27,9 +27,9 @@ class Game:
|
|||||||
# General data to generate
|
# General data to generate
|
||||||
self.circus = Circus(playersNb)
|
self.circus = Circus(playersNb)
|
||||||
self.treasure = TreasureCard()
|
self.treasure = TreasureCard()
|
||||||
self.mamaoc = MamaOConnel()
|
self.mamaoc = MamaOConnell()
|
||||||
while not self.mamaoc.solver():
|
while not self.mamaoc.solver():
|
||||||
self.mamaoc = MamaOConnel()
|
self.mamaoc = MamaOConnell()
|
||||||
|
|
||||||
# Players
|
# Players
|
||||||
self.players = []
|
self.players = []
|
||||||
@ -53,7 +53,7 @@ class Game:
|
|||||||
def disableConcession(self):
|
def disableConcession(self):
|
||||||
self.concession = False
|
self.concession = False
|
||||||
|
|
||||||
# if number = 0 print Mama O'Connel's location, else print hint #number
|
# if number = 0 print Mama O'Connell's location, else print hint #number
|
||||||
def printMamaHint(self, number):
|
def printMamaHint(self, number):
|
||||||
if number not in range(0, 4):
|
if number not in range(0, 4):
|
||||||
return False
|
return False
|
||||||
@ -62,13 +62,13 @@ class Game:
|
|||||||
print("")
|
print("")
|
||||||
match number:
|
match number:
|
||||||
case 0:
|
case 0:
|
||||||
print("Mama O'Connel is at: " + self.mamaoc.location.name)
|
print("Mama O'Connell is at: " + self.mamaoc.location.name)
|
||||||
case 1:
|
case 1:
|
||||||
print("Mama O'Connel is " + str(self.mamaoc.hint1[1]) + " cities from " + self.mamaoc.hint1[0].name)
|
print("Mama O'Connell is " + str(self.mamaoc.hint1[1]) + " cities from " + self.mamaoc.hint1[0].name)
|
||||||
case 2:
|
case 2:
|
||||||
print("Mama O'Connel is " + str(self.mamaoc.hint2[1]) + " cities from " + self.mamaoc.hint2[0].name)
|
print("Mama O'Connell is " + str(self.mamaoc.hint2[1]) + " cities from " + self.mamaoc.hint2[0].name)
|
||||||
case 3:
|
case 3:
|
||||||
print("Mama O'Connel is " + str(self.mamaoc.hint3[1]) + " cities from " + self.mamaoc.hint3[0].name)
|
print("Mama O'Connell is " + str(self.mamaoc.hint3[1]) + " cities from " + self.mamaoc.hint3[0].name)
|
||||||
print("")
|
print("")
|
||||||
input("When you are done, press Enter.")
|
input("When you are done, press Enter.")
|
||||||
os.system('clear')
|
os.system('clear')
|
||||||
@ -156,7 +156,7 @@ while True:
|
|||||||
print(" Circus: 'enable circus', 'take circus'")
|
print(" Circus: 'enable circus', 'take circus'")
|
||||||
print(" Treasure: 'enable treasure', 'take treasure'")
|
print(" Treasure: 'enable treasure', 'take treasure'")
|
||||||
print(" Concessions: 'enable concession', 'take concession', 'disable concession'")
|
print(" Concessions: 'enable concession', 'take concession', 'disable concession'")
|
||||||
print(" Mama O'Connel tracking: 'mama hint 1', 'mama hint 2', 'mama hint 3', 'mama location'")
|
print(" Mama O'Connell tracking: 'mama hint 1', 'mama hint 2', 'mama hint 3', 'mama location'")
|
||||||
command = input("==> ")
|
command = input("==> ")
|
||||||
print("")
|
print("")
|
||||||
match command:
|
match command:
|
||||||
|
@ -208,7 +208,7 @@ class Board:
|
|||||||
i = i + 1
|
i = i + 1
|
||||||
return result
|
return result
|
||||||
|
|
||||||
class MamaOConnel:
|
class MamaOConnell:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
board = Board() # TODO Board should be a "static" or "constant" class, see what we can do
|
board = Board() # TODO Board should be a "static" or "constant" class, see what we can do
|
Loading…
Reference in New Issue
Block a user