mirror of
https://github.com/neogeek23/Dominion-Strategy-Simulator.git
synced 2026-02-04 11:08:18 +00:00
Add files via upload
This commit is contained in:
parent
6c42fd3ba8
commit
2a1a9a42c9
@ -60,13 +60,13 @@ class Table:
|
|||||||
turn += 1
|
turn += 1
|
||||||
else:
|
else:
|
||||||
self.print()
|
self.print()
|
||||||
print("Game had " + str(turn) + " turns in " + str(turn/len(self.__player)) + " rounds.")
|
print("\n\nGame had " + str(turn) + " turns in " + str(turn/len(self.__player)) + " rounds.")
|
||||||
for p in self.__player:
|
for p in self.__player:
|
||||||
print("" + str(p) + " scored " + str(p.get_score()) + " points.")
|
print("" + str(p) + " scored " + str(p.get_score()) + " points.")
|
||||||
if p.get_score() > self.__winning_score:
|
if p.get_score() > self.__winning_score:
|
||||||
self.__winning_score = p.get_score()
|
self.__winning_score = p.get_score()
|
||||||
self.__winner = p
|
self.__winner = p
|
||||||
print("\n\n" + str(self.__winner) + " won with " + str(self.__winning_score) + " points.\n\n")
|
print("\n" + str(self.__winner) + " won with " + str(self.__winning_score) + " points.\n\n")
|
||||||
|
|
||||||
def print(self):
|
def print(self):
|
||||||
print("\nPiles: ")
|
print("\nPiles: ")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user