Add a function to draw the board
This commit is contained in:
parent
36318c7d70
commit
920f9c9ab2
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user