Spring 2012 CSCI 220 Some Scrabble Code

mark_clicked = False if not tile_clicked and tile_selected: for i in range(len(self.markers)): for j in range(len(self.markers[i])): if self.markers[i][j].clicked(p): p2 = self.markers[i][j].rect.getCenter tile_selected.move(p2) mark_clicked = True if self.markers[i][j].getTile != None: self.markers[i][j].getTile.setMarker(None) self.markers[i][j].setTile(tile_selected) if tile_selected.getMarker != None: tile_selected.getMarker.setTile(None) tile_selected.setMarker(self.markers[i][j])
 * 1) Check to see if a mark was clicked