Python 3.12 Beginner Tutorial - Lesson 10 - Tic-Tac-Toe

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

ความคิดเห็น • 4

  • @nojusfuge
    @nojusfuge 6 หลายเดือนก่อน +2

    what do i do if i put a i can get a full line of x and it dosnt do the winning condition

    • @RedTeaInfusion
      @RedTeaInfusion  6 หลายเดือนก่อน +1

      It's hard to debug without seeing the code. I suggest you debug the lines involved in the task as much as you can, then check the link to the full code in the description and compare your version with the correct one.

  • @nicolewidjaja3279
    @nicolewidjaja3279 7 หลายเดือนก่อน

    Nothing happens after i try to input the value. Any possible solutions?

    • @RedTeaInfusion
      @RedTeaInfusion  7 หลายเดือนก่อน

      If you inserted a number between 1 and 9 and pushed ENTER, I would say that either you didn't append the value to the player's list:
      player_X.append(input('Select a number: '))
      Or you didn't replace the last value player_X[-1] with the symbol 'X' and assign it to the board (board = ):
      board = board.replace(player_X[-1], 'X')