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