Beispiel #1
0
 def display(self,game):
     for r in game.getBoard().getRows():
         for p in r.getGuess().getPegs():
             print str(colour.getColourName(p.getColour())).rjust(6),
         print " | Result:\t",
         for p in r.getResult().getPegs():
             print str(colour.getColourName(p.getColour())).rjust(6),
         print ""
Beispiel #2
0
 def display(self, game):
     for r in game.getBoard().getRows():
         for p in r.getGuess().getPegs():
             print str(colour.getColourName(p.getColour())).rjust(6),
         print " | Result:\t",
         for p in r.getResult().getPegs():
             print str(colour.getColourName(p.getColour())).rjust(6),
         print ""
Beispiel #3
0
 def displaySecret(self,game):
     for p in game.getSecretCode().getPegs():
         print str(colour.getColourName(p.getColour())).rjust(6),
Beispiel #4
0
 def displaySecret(self, game):
     for p in game.getSecretCode().getPegs():
         print str(colour.getColourName(p.getColour())).rjust(6),
Beispiel #5
0
 def display(self):
     print str(colour.getColourName(self.__colour)).rjust(6),
Beispiel #6
0
 def display(self):
     print str(colour.getColourName(self.__colour)).rjust(6),