Exemple #1
0
	def GET(self):
		"""
		This function dynamically generates the steps of the game until there are no more steps. The elements of this webpage change based on the players progress and their
		Character/Story choices.

		Parameters:
		None

		Returns:
		None
		"""
		playerStateObject = PlayerState()
		if DBManager.needLastScreen(playerStateObject.player_id)==True:
			print "need last"
			raise web.seeother('/last')
		else:
			print "not last"
		title, text, hint1, hint2, hint3, answertext = DBManager.getGameScreenDataFromDB(playerStateObject.player_id) #Assigning several variables by pulling data from the database in order to dynamically generate different bodies of text for the user
		return self.render.gameScreen(title, text, hint1, hint2, hint3, answertext) #Rendering the gameScreen.html