Add real Game years
This commit is contained in:
parent
97a90788aa
commit
4fd0987cda
11
main.py
11
main.py
@ -1,4 +1,4 @@
|
||||
# Generation of data for a campaign of Ticket to Ride Legacy Legends of the West
|
||||
# Generation of data for a campaign of Ticket to Ride Legacy: Legends of the West
|
||||
|
||||
# Imports
|
||||
import os
|
||||
@ -107,8 +107,10 @@ class Game:
|
||||
|
||||
# initGame() is used to generate all data for a campaign and initialize status variables
|
||||
def initGame(self, playersNb):
|
||||
self.years = 1865, 1868, 1871, 1874, 1877, 1880, 1883, 1886, 1889, 1892, 1895, 1898
|
||||
|
||||
# Game status
|
||||
self.year = 1858
|
||||
self.yearId = 0
|
||||
self.concession = False
|
||||
|
||||
# General data to generate
|
||||
@ -126,7 +128,7 @@ class Game:
|
||||
print("")
|
||||
print("Ticket to Ride Legacy: Legends of the West")
|
||||
print("")
|
||||
print("Campaign - Year: " + str(self.year))
|
||||
print("Campaign - Year: " + str(self.years[self.yearId]))
|
||||
print("")
|
||||
print("Players:")
|
||||
for player in self.players:
|
||||
@ -161,8 +163,7 @@ playersNb = 2
|
||||
|
||||
# Test of data loading
|
||||
# myGame = loadData()
|
||||
# print(myGame.year)
|
||||
# print(myGame.circus.wagons)
|
||||
# myGame.printStatus()
|
||||
|
||||
# Test of ConcessionCard
|
||||
# cc = ConcessionCard()
|
||||
|
Loading…
Reference in New Issue
Block a user