Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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