def dry(self, board, direction): field = self.getField() dryPosition = b.newPosition((field.getX(),field.getY()),direction) board.dry(dryPosition[0],dryPosition[1])
def go(self, board, direction): field = self.getField() newPosition = b.newPosition((field.getX(),field.getY()),direction) newField = board.getField(newPosition[0],newPosition[1]) self.setField(newField)