Add a function to draw the board

This commit is contained in:
nemunaire 2020-03-12 20:04:31 +01:00
parent 36318c7d70
commit 920f9c9ab2
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,15 @@ class Board():
self.underTheBoard = []
self.roundCity = 0
def __repr__(self):
return """
%d -> %d <- %d -> %d
^ ^
| %d / \\
%d %d --> %d %d
%d
""" % (len(self.dragonCorail), len(self.pearl), len(self.witch), len(self.dragonPetrified), len(self.city), len(self.chasseresse), len(self.horser), len(self.golem), len(self.guardian), len(self.underTheBoard))
def isFinished(self):
return self.roundCity >= 3