How to create a TIC TAC TOE Bot in Python | Beginner Friendly Tutorial (Minimax Algorithm) | Part 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

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

  • @CodeCoachh
    @CodeCoachh  2 ปีที่แล้ว +3

    Second part coming out Thursday!

  • @honeyd5550
    @honeyd5550 2 ปีที่แล้ว +4

    Hey i just wanted to help out a little
    in line [11] you put "print("
    ")
    just for a little bit less writhing you can just put "print()"

    • @CodeCoachh
      @CodeCoachh  2 ปีที่แล้ว +1

      Print by default created a new line at the end so yes you are correct.

  • @marcobelica5450
    @marcobelica5450 2 ปีที่แล้ว

    Hi, I have a minor problem with the checkWin() function, I'm trying to expand the playing field, but I don't know how. Any advice?

  • @xzex2609
    @xzex2609 ปีที่แล้ว

    you don't need to pass board to your functions , board is an mutable object of the global scope and functions have access to it

  • @xzex2609
    @xzex2609 ปีที่แล้ว

    Actually with just a few lines of code you could make beautiful modern looking GUI base tic-tac toe ( either with customtkinter or ttkbootstrap ) and I think its even takes less lines of code to do that instead of this harsh looking terminal base games that we build in 48k spectrum computers 44 years ago

  • @identicalgd2446
    @identicalgd2446 2 ปีที่แล้ว

    what are you using that is running python

    • @CodeCoachh
      @CodeCoachh  2 ปีที่แล้ว +1

      I am using VS code in this video but I also use Atom and Pycharm depending on the project I am working on.

  • @lt2206
    @lt2206 2 ปีที่แล้ว

    can you make a minimax chess ai