Skip to content

Tic Tac Toe - Abnormal mouse click behavior, sometimes resulting in crash #9

@Rafael09ED

Description

@Rafael09ED

Currently mouse-clicks are incorrectly being registered. This sometimes results in a crash with the following error message:

Traceback (most recent call last):
  File ".\incorrect-tictactoe.py", line 157, in <module>
    clickBoard(board)
  File ".\incorrect-tictactoe.py", line 97, in clickBoard
    if ((grid[row][col] == "X") or (grid[row][col] == "O")):
IndexError: list index out of range

Normally where the user clicks is where the next X or O should be placed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions