Return a text-representation of the board.
(self)
| 54 | self.spaces[space] = BLANK # All spaces start as blank. |
| 55 | |
| 56 | def getBoardStr(self): |
| 57 | """Return a text-representation of the board.""" |
| 58 | return ''' |
| 59 | {}|{}|{} 1 2 3 |
| 60 | -+-+- |
| 61 | {}|{}|{} 4 5 6 |
| 62 | -+-+- |
| 63 | {}|{}|{} 7 8 9'''.format(self.spaces['1'], self.spaces['2'], |
| 64 | self.spaces['3'], self.spaces['4'], self.spaces['5'], |
| 65 | self.spaces['6'], self.spaces['7'], self.spaces['8'], |
| 66 | self.spaces['9']) |
| 67 | |
| 68 | def isValidSpace(self, space): |
| 69 | """Returns True if the space on the board is a valid space |
no outgoing calls
no test coverage detected