Provinces and Gold
This commit is contained in:
21
provincesandgold.py
Normal file
21
provincesandgold.py
Normal file
@@ -0,0 +1,21 @@
|
||||
g, s, c = map(int, input().split())
|
||||
bp = (3 * g) + (2 * s) + c
|
||||
|
||||
victory = None
|
||||
if bp >= 8:
|
||||
victory = "Province"
|
||||
elif bp >= 5:
|
||||
victory = "Duchy"
|
||||
elif bp >= 2:
|
||||
victory = "Estate"
|
||||
|
||||
treasure = "Copper"
|
||||
if bp >= 6:
|
||||
treasure = "Gold"
|
||||
elif bp >= 3:
|
||||
treasure = "Silver"
|
||||
|
||||
if victory is not None:
|
||||
print(f"{victory} or {treasure}")
|
||||
else:
|
||||
print(treasure)
|
||||
Reference in New Issue
Block a user