Skip to content

Tic Tac Toe #4

@GeekDGirl

Description

@GeekDGirl

I'm working through the lecture on building a Tic Tac Toe game. I have followed your suggestion of putting 3 None data types into my lists to build the board. Unfortunately, my program won't run because I keep the following errors:
//PycharmProjects/tictactoe/game.py:21: SyntaxWarning: list indices must be integers or slices, not tuple; perhaps you missed a comma?
[None, None, None]
Traceback (most recent call last):
File "//PycharmProjects/tictactoe/game.py", line 77, in
main()
File "//PycharmProjects/tictactoe/game.py", line 21, in main
[None, None, None]
TypeError: list indices must be integers or slices, not tuple

Is there some way I can change the program to get it to run? I have been following the steps you've taken exactly but don't achieve the same results. Any direction you can provide would be helpful. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions