File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ def handleEvents(self):
170170 def handleClick (self , mousePos ):
171171 x , y = mousePos
172172 if self .GRID_SIZE + self .SIDE_PADDING >= x >= self .SIDE_PADDING and self .HEADER_HEIGHT + self .GRID_SIZE >= y >= self .HEADER_HEIGHT :
173- move = ((y - self .HEADER_HEIGHT ) // self .LINE_WIDTH , (x - self .SIDE_PADDING ) // self .LINE_WIDTH )
173+ move = ((y - self .HEADER_HEIGHT ) // self .CELL_WIDTH , (x - self .SIDE_PADDING ) // self .CELL_WIDTH )
174174 try :
175175 self .grid .play (1 , move )
176176 except TicTacToeExceptions .WrongTurnError :
@@ -194,4 +194,3 @@ def loadAssets(self, assetsPath):
194194 Game (assetsPath = ('TicTacToe' , 'Resources' ), saveToCloud = True )
195195 except GameException as e :
196196 messagebox .showerror ('ERROR' , f'{ e .__class__ .__name__ } : { e } ' )
197- raise e
You can’t perform that action at this time.
0 commit comments