C Tic Tac Toe game ⭕

แชร์
ฝัง

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

  • @BroCodez
    @BroCodez  2 ปีที่แล้ว +125

    //This is a tic tac toe game written in C designed for beginners
    //(This doesn't contain the use of pointers or other more advanced C topics)
    #include
    #include
    #include
    #include
    char board[3][3];
    const char PLAYER = 'X';
    const char COMPUTER = 'O';
    void resetBoard();
    void printBoard();
    int checkFreeSpaces();
    void playerMove();
    void computerMove();
    char checkWinner();
    void printWinner(char);
    int main()
    {
    char winner = ' ';
    char response = ' ';
    do
    {
    winner = ' ';
    response = ' ';
    resetBoard();
    while(winner == ' ' && checkFreeSpaces() != 0)
    {
    printBoard();
    playerMove();
    winner = checkWinner();
    if(winner != ' ' || checkFreeSpaces() == 0)
    {
    break;
    }
    computerMove();
    winner = checkWinner();
    if(winner != ' ' || checkFreeSpaces() == 0)
    {
    break;
    }
    }
    printBoard();
    printWinner(winner);
    printf("
    Would you like to play again? (Y/N): ");
    scanf("%c");
    scanf("%c", &response);
    response = toupper(response);
    } while (response == 'Y');
    printf("Thanks for playing!");
    return 0;
    }
    void resetBoard()
    {
    for(int i = 0; i < 3; i++)
    {
    for(int j = 0; j < 3; j++)
    {
    board[i][j] = ' ';
    }
    }
    }
    void printBoard()
    {
    printf(" %c | %c | %c ", board[0][0], board[0][1], board[0][2]);
    printf("
    ---|---|---
    ");
    printf(" %c | %c | %c ", board[1][0], board[1][1], board[1][2]);
    printf("
    ---|---|---
    ");
    printf(" %c | %c | %c ", board[2][0], board[2][1], board[2][2]);
    printf("
    ");
    }
    int checkFreeSpaces()
    {
    int freeSpaces = 9;
    for(int i = 0; i < 3; i++)
    {
    for(int j = 0; j < 3; j++)
    {
    if(board[i][j] != ' ')
    {
    freeSpaces--;
    }
    }
    }
    return freeSpaces;
    }
    void playerMove()
    {
    int x;
    int y;
    do
    {
    printf("Enter row #(1-3): ");
    scanf("%d", &x);
    x--;
    printf("Enter column #(1-3): ");
    scanf("%d", &y);
    y--;
    if(board[x][y] != ' ')
    {
    printf("Invalid move!
    ");
    }
    else
    {
    board[x][y] = PLAYER;
    break;
    }
    } while (board[x][y] != ' ');

    }
    void computerMove()
    {
    //creates a seed based on current time
    srand(time(0));
    int x;
    int y;
    if(checkFreeSpaces() > 0)
    {
    do
    {
    x = rand() % 3;
    y = rand() % 3;
    } while (board[x][y] != ' ');

    board[x][y] = COMPUTER;
    }
    else
    {
    printWinner(' ');
    }
    }
    char checkWinner()
    {
    //check rows
    for(int i = 0; i < 3; i++)
    {
    if(board[i][0] == board[i][1] && board[i][0] == board[i][2])
    {
    return board[i][0];
    }
    }
    //check columns
    for(int i = 0; i < 3; i++)
    {
    if(board[0][i] == board[1][i] && board[0][i] == board[2][i])
    {
    return board[0][i];
    }
    }
    //check diagonals
    if(board[0][0] == board[1][1] && board[0][0] == board[2][2])
    {
    return board[0][0];
    }
    if(board[0][2] == board[1][1] && board[0][2] == board[2][0])
    {
    return board[0][2];
    }
    return ' ';
    }
    void printWinner(char winner)
    {
    if(winner == PLAYER)
    {
    printf("YOU WIN!");
    }
    else if(winner == COMPUTER)
    {
    printf("YOU LOSE!");
    }
    else{
    printf("IT'S A TIE!");
    }
    }

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

      damn.. this much code just for a simple game....

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

      A lot happens inside the game while you enjoy the scene of the game.

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

      thank you

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

      Great work

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

      @@chriijack101 same problem I can't replay

  • @naboulsikhalid7763
    @naboulsikhalid7763 ปีที่แล้ว +12

    this is the most elaborating way of programming that invokes all the materials that you study in c programming. Thank you

  • @AZureSC
    @AZureSC 11 หลายเดือนก่อน +9

    Thank you for providing this information for free man, appreciate it! I am about to go into my second year as a CS major and did not know where to go after learning Java so these tutorials have been great for learning the basic syntax of another language

  • @muhammadshahzaib6564
    @muhammadshahzaib6564 4 หลายเดือนก่อน +3

    Watching this tutorial in 2024 and absolutely enjoying learning C from you. Followed your course from the first video till the last and now i feel very confident in C language.
    This guy never disappoints🙌.
    Respect man❤❤
    Keep making such insightful and useful videos

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

    Yo! Very good informative video . Btw advance congrats for 200k . U deserve more

  • @takashikumi1523
    @takashikumi1523 2 ปีที่แล้ว +5

    I love you bro keep it up I am learning a lot thanks to you!!

  • @beckbrook605
    @beckbrook605 2 ปีที่แล้ว +33

    From a student who's learning programming and runs out of time, thank you a lot Bro Code

  • @party4keeps28
    @party4keeps28 ปีที่แล้ว +36

    I'm just beginning to learn and followed this example. It's great, thank you. So far I've added the ability to choose whether to be X or O, who goes first, and made it alternate who goes first after each game. I'm going to work on the AI now.

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

      how are you doing?

  • @OfficialSumanMahato
    @OfficialSumanMahato 6 หลายเดือนก่อน

    Thanks bro, nice approach for this problem
    This video definitely deserves more views

  • @cybrd230
    @cybrd230 2 ปีที่แล้ว +11

    Sit back relax and enjoy the show

  • @Palmieres
    @Palmieres 2 ปีที่แล้ว +6

    Thank you for this. I easily altered it to make it a two player game, add an option for player names and a nice little menu. In the words of Homer SImpson "GAAHHHHGGHHH! More, please!"

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

    Thx bro, i’ve learn so much from you

  • @AbhitejBokka
    @AbhitejBokka 2 ปีที่แล้ว +6

    Yo Bro Code, u gotta hit us up with some videos on pointers. I appreciate all the hard work u put in here cuz it really translates to a learning experience for me and many others here.

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

    hi bro I have ended this tutorial right now , and I want to start c++ tutorial . I want to say thank u for teaching fast and very good . best regards

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

    Great work ...!!!!

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

    Completed Bro! Thanks for this video.

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

    So great bro !

  • @official-k.i.d.u-k5750
    @official-k.i.d.u-k5750 ปีที่แล้ว +1

    "Sit back relax and enjoy the show" :) and i also finished the course, Thanks bruh

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

    My first game reloaded thank you❣️ love from 🇳🇵

  • @Rid-E
    @Rid-E 2 ปีที่แล้ว +3

    Correct me if I'm wrong. The checkFreespaces() function within the computerMove() function is unnecessary since the main function already contains a while loop checking for that. The printWinner(' '); statement in the computerMove() function is also pointless since the winner=checkWinner() is already doing the job in main function.

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

    TY very helpful

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

    thank u so much!!!!!!

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

    THANK YOU SO MUCH!

  • @astudent4005
    @astudent4005 3 หลายเดือนก่อน

    Completed the whole series and now I'm ready to ace my midterms

  • @nightcrawler2561
    @nightcrawler2561 6 หลายเดือนก่อน

    I finished the course ❤ thanks bro

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

    Hey bro..first of all thanks a lot for all the free courses... I would like to know something, How can i prevent the player from winning? And How the computer can block the player winning move?
    like, if player move 2 X horizontally or vertically, how the computer can prevent player from winning? you response would be very helpful... I'm eagerly waiting for your response.

  • @bsykesbeats4013
    @bsykesbeats4013 ปีที่แล้ว +15

    Thank you, awesome breakdown....One small improvement: if you add && board[i][0] != ' ' to the check rows if statement in the checkeWinner() function (and of course && board[0][j] != ' ' for columns etc) it will ensure that it doesn't prematurely return from that function if it sees that for instance the top row is still all ' ' even if you win in the bottom row. It doesn't come up that often, but it's irritating when it does, I made a 2 player version of this so I was able to force this corner case and it drove me crazy until I finally figured out how to solve it with he simple fix above.

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

      exactly !!

    • @HaadiAamir-pc3jf
      @HaadiAamir-pc3jf 2 หลายเดือนก่อน

      can you explain a bit more my stupid brain can't comprehend this.😅

  • @user-du8rw6tb6r
    @user-du8rw6tb6r 3 หลายเดือนก่อน

    thank you so much!!

  • @smartxavier8906
    @smartxavier8906 2 ปีที่แล้ว +54

    I watched the full as so that you can earn gud money 😂😀

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

      Same here 😅

    • @smartxavier8906
      @smartxavier8906 ปีที่แล้ว +6

      @@hritiktheopgamer4122 wow 1 year old comment

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

      ​@@smartxavier89067 muffs

    • @nOne4three
      @nOne4three 4 หลายเดือนก่อน

      @@smartxavier8906so how much r u earning now

    • @Arador1112
      @Arador1112 16 วันที่ผ่านมา

      ​@@smartxavier8906 same

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

    Thank You So Much Brother ❤️❤️❤️❤️❤️🔥🔥🔥🔥😍😍😍😶😘😘😘😘😘.

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

    now we just need a video on this but with the language C# :)

  • @pooyaanony3617
    @pooyaanony3617 2 หลายเดือนก่อน

    Thanks man, awesome

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

    I have reached the end. Thank you for the time you've given some random fellow human beings. It's more important than you know and made a big difference for this random human being. If I survive through my next few months fast track I will not forget to let you know.

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

    Thanks ! I modified the code to set pawn and a toss will be performed to decide who will go first

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

    more videos please bro

  • @sujake9587
    @sujake9587 9 วันที่ผ่านมา

    hi ,a quick question: can we use else if statement when making checkwinner() condition for diagonal elements

  • @user-xy6zh7gt5x
    @user-xy6zh7gt5x 13 วันที่ผ่านมา

    Thank you

  • @abolfazljahangir1651
    @abolfazljahangir1651 6 หลายเดือนก่อน

    Nice bro❤

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

    Im halfway through. Very nice tutorial that is helping me with my project.
    I had one thought though, since we (humans) are accoustumed to x moving in a in horizontal line and y moving in a vertical line, the createBoard function would should better be thus in my opinion:
    void printBoard(){
    printf("c% | c% | c% |",board[0][0],board[1][0],board[2][0]);
    printf("
    ...|...|...
    ");
    printf("c% | c% | c% |",board[0][1],board[1][1],board[2][1]);
    printf("
    ...|...|...
    ");
    printf("c% | c% | c% |",board[0][2],board[1][2],board[2][2]);
    printf("
    ...|...|...
    ");
    printf("
    ");
    };
    What do you think ? All argumentators welcome ;)

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

      This is so confusing… I don’t think that’s how matrices work

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

      i would like to argue that we humans are more accustomed to matrices and the createBoard function in the video is more easy to understand and visualize than your version
      Moreover your version would print the transpose of the matrix rather than the original matrix .

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

    This Code is so Useful

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

    I have a question. Can you use while-loop instead d0-while-loop in function playerMove?

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

      Of course U can. U just need to write any condition inside while loop like while(1>0) , so that it will loop infinite times.
      This if condition here means that it
      will break the loop only if board[x][y] == ' ';
      Otherwise it will loop because 1 is always more that 0.
      else
      {
      board[x][y] = PLAYER;
      break;
      }
      while(1>0)
      {
      printf("Enter row #(1-5): ");
      scanf("%d",&x);
      x--;
      printf("Enter colum #(1-5): ");
      scanf("%d",&y);
      y--;
      if(board[x][y] != ' ')
      {
      printf("Invalid move!
      ");
      }
      else
      {
      board[x][y] = PLAYER;
      break;
      }
      }

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

    thx!!

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

    Cool.

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

    its taking input even when we give column no as 4, which should give invalid? why is that?

  • @A.C.Productions
    @A.C.Productions ปีที่แล้ว +2

    Евала братле. С туй си взех курсовата работа. Продължавай така, че още 7 семестъра ще трябва!

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

    you are a beautiful human

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

    Dzieki za pomoc

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

    we love you

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

    How can I make user input the number for the grid(nxn), e.g: 5x5 or 6x6

  • @shivanshuhere
    @shivanshuhere 6 หลายเดือนก่อน

    That's some heavy stuff for beginner

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

    cool

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

    best guy on the internet

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

    For determining the win condition, how would you go about doing it through a Switch statement?

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

    I guess you are preparing a c full tutorial

  • @101thetruthguy
    @101thetruthguy ปีที่แล้ว +2

    Hello guys, when I type Y or N, I get an error saying:
    The term 'n' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is
    correct and try again.
    At line:1 char:1
    + n
    + ~
    + CategoryInfo : ObjectNotFound: (n:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    Can someone help?

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

    Finally done :D

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

    How would you check for winner if it was a 5x5 or 6x6 instead of 3x3 grid?

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

      I think with same way, U just need to add more rows and columns

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

      this is for 5x5
      The answer of ur question is in point 6).
      1).so first of all we need to change char board and make it 5 to 5 2d matrix.(board[5][5]).
      2).Change the resetBorad function. The condition will be for(int i = 0;i < 5; i++)
      {
      for(int j = 0; j < 5; j++)
      {
      board[i][j] = ' ';
      }
      }
      3). Now it's time for printing our board, instead of writing the same thing 5 time, we can use nested loop like this.
      for(int i = 0; i < 5; i++ )
      {

      printf(" %c | %c | %c | %c | %c
      ", board[i][0], board[i][1], board[i][2], board[i][3], board[i][4]);
      if(i < 4)
      printf("---|---|---|---|---
      ");
      }
      The output will be .\
      | | | | ---------- first row
      ---|---|---|---|---
      | | | | ---------- second row
      ---|---|---|---|---
      | | | | ---------- third row
      ---|---|---|---|---
      | | | | ---------- fourth row
      ---|---|---|---|---
      | | | | ---------- fifth row
      4). Now we need to change checkFreeSpaces() function. In the 3x3 we wrote 9 coz we have 9 free spaces, now we have 25 free spaces.
      int checkFreeSpaces()
      {
      int freeSpaces = 25;
      for(int i = 0;i < 5; i++)
      {
      for(int j = 0; j < 5; j++)
      {
      if(board[i][j] != ' ')
      {
      freeSpaces--;
      }
      }
      }
      return freeSpaces;
      }
      5).In playerMove function we can just change printf function to printf("Enter row #(1-5): ");
      printf("Enter colum #(1-5): ");
      6). Now let's change the checkWinner() function.
      In 5x5 matrix we have this struction. That is why when we r giving for example 5 rows and 5 columns with scanf function, it is decrementing with -1 wich is giving us [4][4].
      [ 0][ 0 ] , [ 0 ][ 1 ], [ 0 ][ 2 ], [ 0 ][ 3 ] , [ 0 ][ 4 ]
      [ 1][ 0 ] , [ 1 ][ 1 ], [ 1 ][ 2 ], [ 1 ][ 3 ] , [ 1 ][ 4 ]
      [ 2][ 0 ] , [ 2 ][ 1 ], [ 2 ][ 2 ], [ 2 ][ 3 ] , [ 2 ][ 4 ]
      [ 3][ 0 ] , [ 3 ][ 1 ], [ 3 ][ 2 ], [ 3 ][ 3 ] , [ 3 ][ 4 ]
      [ 4][ 0 ] , [ 4 ][ 1 ], [ 4 ][ 2 ], [ 4 ][ 3 ] , [ 4 ][ 4 ]
      char checkWinner()
      {
      //check rows
      for(int i = 0 ; i < 5; i++)
      {
      if(board[i][0]== board[i][1] && board[i][0] == board[i][2] && board[i][0] == board[i][3] && board[i][0] == board[i][4])
      {
      return board[i][0];
      }
      }
      //check columns
      for(int i = 0 ; i < 5; i++)
      {
      if(board[0][i] == board[1][i] && board[0][i] == board[2][i] && board[0][i] == board[3][i] && board[0][i] == board[4][i])
      {
      return board[0][i];
      }
      }
      //check diagonals


      if(board[0][0]== board[1][1] && board[0][0] == board[2][2] && board[0][0] == board[3][3] && board[0][0] == board[4][4])
      {
      return board[0][0];
      }
      if(board[0][4]== board[1][3] && board[0][4] == board[2][2] && board[0][4] == board[3][1] && board[0][4] == board[4][0])
      {
      return board[0][4];
      }
      return ' ';
      }
      7).Change computerMove() function
      We r leaving seed the same(with time) , so that every time we will have different random numbers.
      Then we r generating random number with rand() function. We wrote
      x = rand() % 3 ; because we wanted to generate from 0 to 2.
      But now we need to generate from 0 to 4.
      So we write x = rand() % 5 ;
      It will now generate 0-4.
      if we want to increase the range we can add (+number), for example
      x = (rand() % 5) + 2;
      Now it will generate from 2 to 6.
      void computerMove()
      {
      srand(time(0));
      int x;
      int y;
      if(checkFreeSpaces() > 0)
      {
      do
      {
      x = rand() % 5;
      y = rand() % 5;
      }while(board[x][y] != ' ');
      board[x][y] = COMPUTER;
      }
      else
      {
      printWinner(' ');
      }
      8) and the final one... Enjoy and have fun with codes :)))))

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

    class

  • @floresss4178
    @floresss4178 6 หลายเดือนก่อน

    I don't understand how I managed to follow one for one with the video, understand it, and yet the program fails to run lmao

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

    can you create board with nested loops instead of copy paste 3 times? appreciate the video!

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

      I think u can only loop first two rows, the last one is different

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

      for(int i = 0; i < 3; i++ )
      {

      printf(" %c | %c | %c
      ", board[i][0], board[i][1], board[i][2]);
      printf("---|---|---
      ");
      }
      I tried like this, but it creates 1 additional horizontal line
      X | X | O
      ---|---|---
      O | X | O
      ---|---|---
      O | X | X
      ---|---|---

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

      IT's working right with additional if(i

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

    Which engine u used?

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

    could you do this for c# program?

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

      use the same approch, yu have now the logic and you only need the syntax. go for it and try it yourself

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

    uuu this is the last episode

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

    i finished the course

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

    printf("Thanks a lot buddy");

  • @upper_moon1727
    @upper_moon1727 11 หลายเดือนก่อน

    Made mine somehow it was 356 lines 🤣☠️, I did make mine a class and my computer knows when you are about to win and stops you so it always ends in a draw or you make a mistake and the computer wins

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

    there's no error in my code but still when i enter where i want to place my x it doesn't show me where i have placed it, the board stays empty.

    • @joopa4416
      @joopa4416 9 หลายเดือนก่อน

      same, it keeps displaying empty board no matter what move i enter :(

  • @Geezweez788
    @Geezweez788 5 หลายเดือนก่อน

    How do people know such things, good Lord.

  • @user-jm3xl7rg5k
    @user-jm3xl7rg5k 9 วันที่ผ่านมา

    Why no "for" loop in printBoard???

  • @D.lostinanime
    @D.lostinanime 2 หลายเดือนก่อน

    I will came back again, its kinda to hard for me 😢😂

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

    Can anyone make a algorithm flowchart for this code??

  • @liamfaris7323
    @liamfaris7323 6 หลายเดือนก่อน

    Hey there, I'm getting the 'It's a tie" message at the start of running the code. Does anyone know why that may be?

    • @ooooooooooo6955
      @ooooooooooo6955 6 หลายเดือนก่อน

      did u copy the code that he commented? or use chatgpt

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

    okay

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

    would it be a problem if after watching this, i cant do it on my own without watching the video? :(

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

      thats like asking if you cant take the term exam after attending a single lecture

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

      @@unrealgalaxy9669 there are so many processes lol that’s why

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

      @@emelieobumse4345 this video aint one of those videos where you understand everything in one sitting, its one of those videos where you follow along as a tutorial and figure things out on ur own

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

    in c++ how would it be : printf("
    Would you like to play again? (Y/N): ");
    scanf("%c");
    scanf("%c", &response);

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

      U can use standard method Cout & Cin. I think there wouldn't be any problem.

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

      coutresponse;

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

    is it possible to make a 9x9 grid , meaning, making a ultimate tic tac toe until this sunday and give the code? I need it fast

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

      just expand the grid from this tutorial maybe? and do minor adjustments yourself

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

      @@banglawarlock3947 ok shut up

  • @zuraiakobishvili1757
    @zuraiakobishvili1757 8 หลายเดือนก่อน

    Like();

  • @11_fathinisnandarulabibi17
    @11_fathinisnandarulabibi17 ปีที่แล้ว

    how to make bot for level expert?

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

    And then, what next...?

  • @BlueBirdgg
    @BlueBirdgg 2 หลายเดือนก่อน

    "comment"

  • @mdnan
    @mdnan 22 วันที่ผ่านมา

    comment.

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

    The code justs get stuck at running for me, Can anyone help?

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

      Whats the error?
      I need to add return but i see he didn't so idk

  • @m7md_xb
    @m7md_xb 10 หลายเดือนก่อน

    Comments 😅

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

    Comment

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

    So about the #include for stdio.h stdlib.h ctype.h andtime.h, i keep getting the red squiggly lines on the bottom saying they cant open source file, do you know how to fix that?

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

      same, i cant use any library in VS code

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

    How contact you

  • @nenjidesu
    @nenjidesu 4 หลายเดือนก่อน +1

    I want to add difficulties. I don’t know how to do that. 🥲
    good tuto though!