Commit 40e3ade0 authored by Thomas Kolb's avatar Thomas Kolb Committed by Hubert Denkmair
Browse files

Added food statistics to SnakeGame model

parent 91dadf3e
......@@ -70,6 +70,9 @@ class SnakeGame(models.Model):
end_frame = models.IntegerField(blank=True, null=True)
killer = models.ForeignKey(User, null=True, blank=True, on_delete=models.SET_NULL, related_name="games_won")
final_mass = models.FloatField(blank=True, null=True)
natural_food_consumed = models.FloatField(blank=True, null=True)
carrison_food_consumed = models.FloatField(blank=True, null=True)
hunted_food_consumed = models.FloatField(blank=True, null=True)
def __str__(self):
return self.user.username + " " + str(self.start_date)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment