Skip to content

Commit

Permalink
cleanup a little bit:wq
Browse files Browse the repository at this point in the history
  • Loading branch information
djhenderson committed Oct 30, 2014
1 parent 9158c52 commit 8071ffa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Board.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ def makeStringRep(self, pieces) :

def wrapStringRep(self, stringRep):
sRep = '\n'.join(
[' a b c d e f g h ', ' '] +
[' a b c d e f g h ', ' '*21] +
['%d %s %d' % (8-r, s.strip(), 8-r) for r,s in enumerate(stringRep.split('\n'))] +
[' ', ' a b c d e f g h ']
)
[' '*21, ' a b c d e f g h ']
).rstrip()
return sRep

def rankOfPiece(self, piece) :
Expand Down

0 comments on commit 8071ffa

Please sign in to comment.