だから私は自分が作っている三目並べゲームで複数の問題を抱えていましたが、ほとんどの問題の解決策を見つけました。しかし、今の問題は、読み取りエラーが発生することです
Traceback (most recent call last):
File "/Users/user/Desktop/tic tac toe game.py", line 43, in <module>
if board[input] != 'x' and board[input] !='o':
TypeError: list indices must be integers, not builtin_function_or_method"
私がそれを実行しようとすると。問題が発生しているコードは次のとおりです。
if board[input] != 'x' and board[input] !='o':
board[input] = 'x'
私は何をすべきかわからないので、木曜日にpythonを始めたばかりで、あまり賢くありません。しかし、すべての助けに感謝します(:ああ、私はpython3.2を持っています。