C# Tutorial - Create a Tic Tac Toe game and play against CPU

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 33

  • @chriscranky
    @chriscranky 2 роки тому +9

    Your tutorials are always so awesome 👍👍👍😁

    • @mooict
      @mooict  2 роки тому +1

      Thank you 😊 🥰

  • @SynthoFunker
    @SynthoFunker 2 роки тому +4

    Uuuh
    How to set up a limiter so that we don't interrupt the CPU's turn,
    Like with what I tried,
    I can easily click the buttons even if it's the CPU's turn,
    I'm like asking how to temporarily disable the other buttons from the player when it's the CPU's turn?

    • @dickish
      @dickish Рік тому

      what i did is after the player makes a moves, all buttons get disabled till the cpu makes a move

  • @cscripts5993
    @cscripts5993 2 роки тому +4

    I'm using this

  • @MarisolRamos-1971
    @MarisolRamos-1971 2 роки тому +3

    Gracias
    Muy buen contenido.

  • @cscripts3713
    @cscripts3713 2 роки тому +5

    I'm going to use this code to make a game so I can play against computer

    • @mooict
      @mooict  2 роки тому

      Awesome. Keep it up

  • @alexalbano8641
    @alexalbano8641 2 роки тому +1

    Damn Man, I'm so glad i subscribed in your channel!

    • @mooict
      @mooict  2 роки тому +1

      Thank you 😊

  • @eshakomal4876
    @eshakomal4876 7 місяців тому

    what should i do my visual studio does not have any timer what if i skip the timer will it effect my game please guide me

  • @mirza9725
    @mirza9725 2 роки тому +2

    thanks best coder everrrr

  • @elvirhajdari3146
    @elvirhajdari3146 Рік тому

    Hey I have a problem... I can't find the "timer" in the toolbox

  • @nathanchan7028
    @nathanchan7028 8 місяців тому

    Its not working for me, shows that there are a lot of errors?

  • @yuvrajnagtilak7073
    @yuvrajnagtilak7073 Рік тому

    I do same step in you but game is not work properly 😢 so what I do now

  • @l.j.pollard1481
    @l.j.pollard1481 Рік тому +1

    could you do a tutorial on how to make the ai smarter so that if it has an opportunity to win, it makes the correct move to win?

    • @dickish
      @dickish Рік тому

      This would be way harder

    • @freez.mp4
      @freez.mp4 4 місяці тому

      that is very complex

  • @anthonygift5743
    @anthonygift5743 2 роки тому +2

    Thanks for your code..
    Mine working perfect

    • @mooict
      @mooict  2 роки тому

      Well done 👍🏽

  • @ChavaMartin
    @ChavaMartin 11 місяців тому

    hay un error el el codigo, ya que marca que el CPU ha ganado, y no tiene las casillas de ganar, tambien en jugador

  • @Matematika0405
    @Matematika0405 11 місяців тому +1

    Thank you bro

  • @elaineeyas5528
    @elaineeyas5528 6 місяців тому

    Can anyone explain to me, why the random random was declared below the Player currentPlayer; please?

    • @mooict
      @mooict  6 місяців тому

      For the cpu to randomly choose a button to play against the player.

  • @martinnikolov3396
    @martinnikolov3396 Рік тому

    I have an interesting question, because i have found a flaw in the game:
    -when the player clicks super fast it doesnt register the AI's response and u can click whenever, wherever u like and i was wondering if u can show us a fix to that

    • @LuzuVlogsGamer
      @LuzuVlogsGamer Рік тому +1

      Add a Time delay between clicks async await. so It cant be spammed after clicked once.

    • @l.j.pollard1481
      @l.j.pollard1481 Рік тому +1

      could also add a boolean tracking players turn, and add an if statement at the top of player click function and set players turn to false at the bottom of the players click function and set it to true at the bottom of the computer click function

    • @dickish
      @dickish Рік тому

      what i did is after the player makes a moves, all buttons get disabled till the cpu makes a move

  • @KIllamqnewav
    @KIllamqnewav 8 місяців тому

    ty very much

  • @rngsus4002
    @rngsus4002 2 роки тому +1

    Thanks a lot very fast and very everything lol

  • @algaming6894
    @algaming6894 Рік тому

    A lot of bugs in it

  • @Naser639
    @Naser639 2 роки тому

    amazing