C++ Tutorial 15 - Making simple Tic Tac Toe game (Part 1)

  Рет қаралды 289,553

NVitanovic

NVitanovic

Күн бұрын

Пікірлер: 266
@VintageLJ
@VintageLJ 8 жыл бұрын
TURN THE MUSIC DOWN
@KillerZero259
@KillerZero259 8 жыл бұрын
Yes, please turn down the music
@MarysJanuszPazdzioch
@MarysJanuszPazdzioch 5 жыл бұрын
@MasterEverything We are talking about beginning of the tutorial.
@penlavits3305
@penlavits3305 5 жыл бұрын
Was about to say the same.
@anonymoususer7663
@anonymoususer7663 3 жыл бұрын
@MasterEverything don't ask stupid questions quit being an idiot.
@whistlingwhistler9583
@whistlingwhistler9583 9 жыл бұрын
the music is a bit to loud at the start and couldn't hear the first part of the tutorial.
@Impulse_Photography
@Impulse_Photography 6 жыл бұрын
I couldn't even hear a word he was saying - - he should just kill that music altogether - its about the program not the cool "LOUD" music effects.
@rbb7977
@rbb7977 5 жыл бұрын
yOUR FACE IS LOUD!
@bdnoob3768
@bdnoob3768 8 жыл бұрын
The moment after 3:48 made me laugh to tears for about 5min. I wasn't laughing at you, but the comedy of the whole situation: "When we run the program, it will display..." BIP BIP BIP ... *gibberish* ... BIP BIP ... trumpet. Classic.
@rijadheco
@rijadheco 5 жыл бұрын
That is a real world example of C++ and why it is a better programming language to learn and I mean "learn " ,It doesn't forgive, wrong code logic but syntax fine ? Fine let me bring you all the mess I can and you will learn after this mistake.Trust me you learn then :D
@GamerTheTurtle
@GamerTheTurtle 4 жыл бұрын
@@rijadheco careful, you'll get gatekeepers that keep trying to one up eachother before one tells you to learn binary first
@bern1223
@bern1223 4 жыл бұрын
I did this as an assignment like two years ago and have been beating around the bush coming back to it. I'm pleasantly surprised to now know it wasn't as bad as I remember! Thanks NVitanovic!
@Ryudan13
@Ryudan13 7 жыл бұрын
Fantastic Tutorial Sir! You made a very engaging lesson that employs coding, matrices, overwriting objects, and he he... debugging :)
@smettyboo
@smettyboo 6 жыл бұрын
Maybe some suggestions: This is a shorter way for the input function. With division and modulo, you can get the row and the column: void Input() { int a=0; int row,col; cout > a; row = (a-1) / 3; col = (a-1) % 3; matrix[row][col] = player; } And for the Win function, you can check the 3 row/column win in a loop: char Win() { char Winner = 'N'; for(int i = 0;i < 3;i++) // check if rows/columns are equal { if (matrix[i][0] == matrix[i][1] && matrix[i][0] == matrix[i][2]) Winner = matrix[i][0]; if (matrix[0][i] == matrix[1][i] && matrix[0][i] == matrix[2][i]) Winner = matrix[0][i]; } // check the two diagonal win possibilities if (matrix[0][0] == matrix[1][1] && matrix[0][0] == matrix[2][2]) Winner = matrix[0][0]; if (matrix[0][2] == matrix[1][1] && matrix[2][0] == matrix[1][1]) Winner = matrix[0][2]; return Winner; }
@ivan0799
@ivan0799 4 жыл бұрын
I have been trying to do something similar for the win function, thanks
@MarysJanuszPazdzioch
@MarysJanuszPazdzioch 5 жыл бұрын
Another way you can check matrix.There is no need for checking 'X' and 'O' because after input we know who is playing now -then we check if won ( if won gameover = true so next loop wont happen) -then return player so we can print out in main who won. Thanks for your tutorial. You really use basic tools so I can understand what you are doing:-) if((matrix[0][0] == matrix[0][1]) && (matrix[0][1] == matrix[0][2])) gameover = true; else if(matrix[1][0] == matrix[1][1] && matrix[1][1] == matrix[1][2]) gameover = 1; else if(matrix[2][0] == matrix[2][1] && matrix[2][1] == matrix[2][2]) gameover = 1; else if(matrix[0][0] == matrix[1][1] && matrix[1][1] == matrix[2][2]) gameover = 1; else if(matrix[2][0] == matrix[1][1] && matrix[1][1] == matrix[0][2]) gameover = 1; else if(matrix[0][0] == matrix[1][0] && matrix[1][0] == matrix[2][0]) gameover = 1; else if(matrix[0][1] == matrix[1][1] && matrix[1][1] == matrix[2][1]) gameover = 1; else if(matrix[0][2] == matrix[1][2] && matrix[1][2] == matrix[2][0]) gameover = 1; return player;
@bryliang
@bryliang 9 жыл бұрын
For the win function, would it be easier to use 'switch' statement rather than using a bunch of if's?
@Philogy
@Philogy 9 жыл бұрын
13:51 you could just do if..... == player and put that before the toggleplayer() because only the current player will have inputed something
@radekmojzis9829
@radekmojzis9829 9 жыл бұрын
Instead of writting that chain of 10 else if you could do easily this a--; matrix[a/3][a%3] = player; just saying... you can use nice 2 lines of code instead of 10 else if... or this situation would be a good example for a switch use. but no offence, you are doing a great job.
@nol2222
@nol2222 8 жыл бұрын
Is that even more efficient, than using switch statements? Sry for the dumb question...
@smithcodes1243
@smithcodes1243 8 жыл бұрын
Awesome dude !
@TehJMc
@TehJMc 8 жыл бұрын
How would you prevent overlaps using this instead, i'm finding it rather troublesome in figuring out?
@radekmojzis9829
@radekmojzis9829 8 жыл бұрын
a--; if(matrix[a/3][a%3] != 'X' && matrix[a/3][a%3] != 'O' ) {matrix[a/3][a%3] = player} else{cout
@TehJMc
@TehJMc 8 жыл бұрын
Works like a charm
@drishtisaraf8357
@drishtisaraf8357 3 жыл бұрын
It was an amazing video though I have a doubt. What if it's a draw? How are we going to terminate the loop?
@ahmadzubair3691
@ahmadzubair3691 8 жыл бұрын
Oh man amazing ....this is very easy way to make a tic tac toe game ....i am second semester right now and i have to make a game without graphics ...and i tried alot but their is error every time ...but this video gave me a huge hint to make a game tic tac toe easily ... Thanks man ....😊
@austangbadboi2187
@austangbadboi2187 2 жыл бұрын
Awesome tutorial!! However is there a way to make it so that if a square has already been taken, the opposition can't take it anyways?
@elias19
@elias19 8 жыл бұрын
First, i want to thank you for your amazing job making this beautifull videos. PLEASE, INCLUDE YOUR VIDEOS IN A PLAYLIST TO MAKE YOUR CHANNEL MORE ORGANIZED
@NVitanovic
@NVitanovic 8 жыл бұрын
Thanks for the support, I've created a few playlists. Just check the channel directly.
@quanix1982
@quanix1982 9 жыл бұрын
Why not just check if the 3 positions of the line in the matrix have the same values and then return that value as a winner? For example: if (matrix[0][0] == matrix[0][1] && matrix[0][0] == matrix[0][2]) return matrix[0][0]; Makes the code a lot shorter.
@InfernalJoy
@InfernalJoy 9 жыл бұрын
Erwin Bakkum it will show some error....i was doing this thing in my program and it was showing some errors... thats y i watch this video :)
@TheAtomicMango
@TheAtomicMango 7 жыл бұрын
Quanix Studio might be because it's comparing locations as opposed to what's in them
@karlhoehenstain4939
@karlhoehenstain4939 10 жыл бұрын
Thank you very much. Excellent tutorial on C ++. The best of its kind on the web It would be interesting if you could add two tutorials, with the following topics: 1. Having a simple C ++ program that calculates, for example, c = a + b - Produce the corresponding DLL file, suitable to be exported to a file Exel (64 bits). - Declare the DLL (with its path) in VB _ Excel in a way that can be used in the book Excel (64 bits). - In two cells in a worksheet in the workbook Excel (64 bits) define the value of "a" and "b". - From another cell, call the DLL function to obtain c = a + b. 2. Same as above, but for Excel 32bit. Using a DLL in Excel and 32/64 bit issue is quite unclear to many people, among which I include myself Regards Carlos
@MarysJanuszPazdzioch
@MarysJanuszPazdzioch 5 жыл бұрын
Thanks for this tutorial mate. I've got strange problem.When I run that code on Visual Studio it doesn't show me matrix in while loop.I need to force to shut console but running that on Code::Blocks I haven't noticed any issues.Hmm?
@keenskee
@keenskee 7 жыл бұрын
update your input with (no need of multiple if): i = (a-1) % 3; j = (a-1-i) / 3; matrix[j][i] = player;
@crystalkirana5109
@crystalkirana5109 6 жыл бұрын
Can you tech me how to get that recipe? I mean how to practice our habit to use math beside using multiple function?
@AndruRomin
@AndruRomin 3 жыл бұрын
Just a friendly suggestion. Lower the volume of the music in the beginning. Cut the time in half from 40 seconds to no more then 12. Fade out the music and start your dialogue after...
@Sk-hm9qj
@Sk-hm9qj 2 жыл бұрын
Thank you so much Sir It's video help me to slove my confusion
@TheIronHeadRat
@TheIronHeadRat 10 жыл бұрын
Thank you for this tutorial.
@ratonpramanik
@ratonpramanik 8 жыл бұрын
I saw your every tutorial. And its better tutorial ever i see. Thanks for channel and videos. I requested you to plz upload some videos on car race. This is highly requested :)
@nilslorand
@nilslorand 9 жыл бұрын
If I type anything with system("cls");, it says that system was not declared in this scope (Codeblocks)
@shreyasrajapurkar3816
@shreyasrajapurkar3816 9 жыл бұрын
+Nils Lorand you need to include windows.h for that and it should work just fine. just #include :)
@nilslorand
@nilslorand 9 жыл бұрын
oh... ok :D
@djouze00
@djouze00 9 жыл бұрын
+Nils Lorand Why include windows.h ? It's just include the stdlib.h !
@valizeth4073
@valizeth4073 6 жыл бұрын
the system commands are in the windows "api" so you'll have to include
@parthmadan7212
@parthmadan7212 2 жыл бұрын
My program works well except it doesn’t ‘break’ after the user wins. It declares who wins after all the rows and columns are filled. I tried everything to fix it :( Please help me!!!
@gillolface3435
@gillolface3435 4 жыл бұрын
Is there a way that all the lines of if else can be reduced. Im thinking of something like a for loop. But Im not experienced enough with using loops to know if it'll work.
@martinezdecap
@martinezdecap 5 ай бұрын
Such a good video. Thank you
@azadpreetkaur916
@azadpreetkaur916 2 жыл бұрын
Thanks you soo much!! It helped me a LOT! :))
@oguzhanyilmaz
@oguzhanyilmaz 6 жыл бұрын
Your channel is sooo helpful, thankyou
@nymeriablack5244
@nymeriablack5244 3 жыл бұрын
really helpful stuff out here
@tamasfreiberger1184
@tamasfreiberger1184 9 жыл бұрын
At checking if a player has won, would it work like this? char Win() { if(matrix[0][0] == matrix[1][0] == matrix[2][0]) return matrix[0][0]; ... } ?
@A1exGx
@A1exGx 8 жыл бұрын
No, c++ doesn't allow writing comparisons as you'd do in math, say for comparing more than 2 elements. That's why you have to compare each of them individually, like 1 with 2 and 2 with 3.
@infinteuniverse
@infinteuniverse 5 жыл бұрын
I haven't watched the video. I recently made a tic tac toe game on the console app. Could I use some of the same functions if I tried to make the same program in Visual Studio?
@infinteuniverse
@infinteuniverse 5 жыл бұрын
Interesting. The hardest part is making a function to check the win conditions. I wanted to see if I could use my code to make a graphical display for the game. My code is just a console app as well haha.
@yeshjadhav8082
@yeshjadhav8082 7 жыл бұрын
Is this compare with vector programming .
@pavankumarb2582
@pavankumarb2582 4 жыл бұрын
Which app Ur using bro to do coading
@adityagawade7593
@adityagawade7593 6 жыл бұрын
very very very awesome tutorial .....excellent explanation sir....i found it very helpful
@MrAnt6000
@MrAnt6000 6 жыл бұрын
Thank you lot after seeing this tutorial i made the sudoku game pls make more games tutorial
@muhammadbinattique7167
@muhammadbinattique7167 2 жыл бұрын
whatever number i press, the program only prints X at the field and O is not being printed. Its just X everywhere.
@17osefalfanfadhil30
@17osefalfanfadhil30 5 жыл бұрын
Great Tutorial !!!! Loved it, Subscribed
@DCG_42
@DCG_42 9 жыл бұрын
I have question on how the char does it know when the char is x or when the char is O I am little bit confuse
@jpkprogrammingtutor7256
@jpkprogrammingtutor7256 9 жыл бұрын
+sharingandc I do not understand your question. Also "char" does not know anything... did you mean variable? On which line or at which time in the video this happens?
@rickyfatty363
@rickyfatty363 2 жыл бұрын
I know this is 7 years late. There is a global variable char player = 'x'; so player who uses x always goes first the while loop in main is in the oreder while (1) { input(); Draw(); TogglePlayer(); } so what ever player x types first is where x goes then the program shows the result then TogglePlayer(); executes void TogglePlayer() { if (player == 'x') player = 'O'; else player = 'x'; } since you stated with char player = 'x'; it will swithc player to O on your next run through the function togglePlayer will execute and swith char back to x.
@prateeksingh5728
@prateeksingh5728 10 жыл бұрын
i need tu kno which software are u using in this video......
@FBHKHAN
@FBHKHAN 10 жыл бұрын
He is using Microsoft Visual Studio
@megamantis6606
@megamantis6606 9 жыл бұрын
Hello exactly what project type are you using? Im using visual studio 2013 by the way. Is it console application you are using?
@MrAlper778
@MrAlper778 9 жыл бұрын
he is using the same program
@azadpreetkaur916
@azadpreetkaur916 2 жыл бұрын
i'm from germany and i needed this for my IT homework. What do you mean wit toggle player? It is just a name or has it a meaning? but thank you very much, you explained it very well and in detail. I understood it. Thank youu
@rasith_reacts_RR
@rasith_reacts_RR 5 жыл бұрын
could you please explain the Void toggleplayer function I couldn't understand that
@furqanalibutt6241
@furqanalibutt6241 4 жыл бұрын
how about if we have to play game against computer any help?
@jasonbolton2067
@jasonbolton2067 8 жыл бұрын
If 'X' or 'O' decide to go where the other has already gone, how might one prevent that.
@juice3702
@juice3702 4 жыл бұрын
You can make a global bool matrix so every value is false initially and then as you put the Xs ans Os the values switch to true. When choosing your number (though i went by typing the coordinates, i find numbering the matrix silly) the code has to verify if the value at the same coordinates in the bool matrix is 0, if it's false then you're good to go as the position is empty, but if it's true there's already something there and you have to choose another position. This solves both the probles of putting Xs over Os and Os over Xs, as well as putting Xs over Xs and Os over Os.
@rorshankcon2708
@rorshankcon2708 8 жыл бұрын
Why not use a break to do the check on the matrix points?
@LorenHelgeson
@LorenHelgeson 8 жыл бұрын
Thanks for the excellent tutorial. Subscribed!
@geoffl
@geoffl 6 жыл бұрын
I tried using a for loop in char Win(). It did not work well. Why did you skip that?
@ReNe851000
@ReNe851000 9 жыл бұрын
Hello NVitanovic, I already checked my code several times and I still can't figure out why my player 'O' cannot win. Also, the system does not close so it keeps showing the name of the game and the instructions every time I enter a number. Can you please guide me on fixing this. I am using code blocks, Thanks!
@AmitSingh-ck3rp
@AmitSingh-ck3rp 3 жыл бұрын
Thank you for this.
@zzz7011
@zzz7011 7 жыл бұрын
how u make text bigger in the game because it so small.
@dobby1313
@dobby1313 4 жыл бұрын
Dumb question but I thought you had to declare a function then define it. I thought the declaration told the computer how to call it in main. Could someone please explain how that works
@ahsam9580
@ahsam9580 7 жыл бұрын
Can you write this program again with the input of name from the user?
@COdExPerT777
@COdExPerT777 7 жыл бұрын
I'm getting an error when checking the win. In the if statements I'm getting an error C2106 and it says that value most be modifiable. It doesn't like the matrix part apparently. Can someone help me out?
@iTzNickGaming
@iTzNickGaming 8 жыл бұрын
Hey, I need help and this for my computer science class. My teacher wants me to make a single player mode for tic tac toe meaning it will be the player the vs the computer. Any ideas to help me out??
@Abdullah_Haruna
@Abdullah_Haruna 4 жыл бұрын
sorry i'm late but you would need to add an a.i. that is not too easy and not too hard.
@haiderhassan6534
@haiderhassan6534 7 жыл бұрын
Dear brother I have a problem when I put '"1" and any other number by the player1 it is converted into " X" but if I put the same number for player2 then the X converted into "O" what i can do for this problem plz help me ........
@aaroncruz2610
@aaroncruz2610 4 жыл бұрын
how do i make it if there is a tie
@sffsfssfsffs8936
@sffsfssfsffs8936 6 жыл бұрын
how can i do this with struct?please help me
@nandanidalsaniya3251
@nandanidalsaniya3251 4 жыл бұрын
Tysm for this idea n tutorial
@harryvaneyk7096
@harryvaneyk7096 10 жыл бұрын
i dont think you made it so a player cant take a spot that is taken
@muskets5718
@muskets5718 6 жыл бұрын
Harry van Eyk just do if a == 1 && (matrix[0][0] != ‘X’ && matrix[0][0] != ‘O’)
@juice3702
@juice3702 4 жыл бұрын
A global bool matrix with false for empty positions and true for occupied positions should solve the problem
@abhinandankaranth8597
@abhinandankaranth8597 2 жыл бұрын
my first game thank for the tutorial
@anonymoususer7663
@anonymoususer7663 3 жыл бұрын
You don't need else if. You can just use a bunch of if statements.
@mushtaqafridi6756
@mushtaqafridi6756 5 жыл бұрын
Why you not use switch instead of if else condition
@kleandojaupaj7819
@kleandojaupaj7819 9 жыл бұрын
it says TogglePlayer was not declared in this scope can u help plz??
@owaisishtiaq5779
@owaisishtiaq5779 8 жыл бұрын
What's the use of a Draw( ) function ? can u please tell me.
@jasonbolton2067
@jasonbolton2067 8 жыл бұрын
Draw first writes the name of the game for the player, then iterates through and displays both dimensions of the array using the for loops
@owaisishtiaq5779
@owaisishtiaq5779 8 жыл бұрын
Thank you
@owaisishtiaq5779
@owaisishtiaq5779 8 жыл бұрын
How can we make the game without uaing functions
@owaisishtiaq5779
@owaisishtiaq5779 8 жыл бұрын
I mean how can we make the without Using* functions. Did u hav any tutorial of it😃
@dantecorso7109
@dantecorso7109 9 жыл бұрын
they sei ther was a problem on system("cls"); the error message say error stray"\240'in program ??????????
@ianzhang4914
@ianzhang4914 9 жыл бұрын
don't be sorry I learned a lot form you. you should be proud
@mikeknight42
@mikeknight42 9 жыл бұрын
OMG TY SO MUCH .. i have been sick recently and i missed the class on arrays .. ty youtube you saved my butt again (dat j variable though... kinda confusing but i am noobish) *EDIT* actually ur variable choice is just utter bad practice .... probably just cause you arent solving an irl problem though
@godussopsama144
@godussopsama144 3 жыл бұрын
Nice 😀❤️
@KralOnur
@KralOnur 9 жыл бұрын
hey, can you write tictactoe with different commandss
@archievethinking4692
@archievethinking4692 6 жыл бұрын
thank you sir it should be very benificial for me
@yaswanthynsv9425
@yaswanthynsv9425 8 жыл бұрын
can i use #include ?
@Unusedmaterial
@Unusedmaterial 8 жыл бұрын
yaswanth ynsv its only used in turboc. Do not use it.
@yaswanthynsv9425
@yaswanthynsv9425 8 жыл бұрын
Unusedmaterial thanks good to know ....hey can you suggest a good tutorial book for me? i want to learn C++ easily.
@nilslorand
@nilslorand 9 жыл бұрын
Can you somehow change the color of the text?
@MrAlper778
@MrAlper778 9 жыл бұрын
+Nils Lorand Yes you can
@yoshiman84156
@yoshiman84156 8 жыл бұрын
+Nils Lorand yes you can! #include then when you want to change the color do something like this system("color 0D"); its hex if you want to know the colors go to cmd and type in help color
@nilslorand
@nilslorand 8 жыл бұрын
Funny How I'm no Longer into Programming ^^ But still Thanks!
@yoshiman84156
@yoshiman84156 8 жыл бұрын
I love programming I know python vary well and C++. I'm making a game in java now
@nilslorand
@nilslorand 8 жыл бұрын
Good Luck!
@gfaso5097
@gfaso5097 7 жыл бұрын
Nice video!
@destinliburd5455
@destinliburd5455 7 жыл бұрын
i dont understand why there would be 8 if statements for placing X, if there are 9 possible positions where X could be placed..
@valizeth4073
@valizeth4073 6 жыл бұрын
why are u using global varibles?
@karlstelzer1646
@karlstelzer1646 6 жыл бұрын
thank you for the tutorial!
@safisafwan8598
@safisafwan8598 6 жыл бұрын
nice one but how to make it short using 2d or 3d arrays
@zaidnaseer4476
@zaidnaseer4476 4 жыл бұрын
Could someone please write the intro which was obscured by the music
@dantealighieri536
@dantealighieri536 8 жыл бұрын
matrix[0][a-1] = player; Is easier and more efficient than writing if statements for each integer. I'm only at 7:46 so I hope you notice this or explain why you didn't do that
@dantealighieri536
@dantealighieri536 8 жыл бұрын
Also coming from years of only scripting experience, your tutorials are helping me to pick this new horizon of "programming" up ridiculously fast to the point where I'm already catching your mistakes and finding ways to make code more efficient. Thank you so much.
@johnwayne2700
@johnwayne2700 8 жыл бұрын
Superb one-liner, but to be able to get it this way, you have to know the elements of the array are allocated on the stack contiguously. So matrix[0][4] is the same as matrix[1][0].
@summanbutt295
@summanbutt295 7 жыл бұрын
What to do if we want to draw the game like no player can win in this game?
@strodeum6460
@strodeum6460 9 жыл бұрын
What ide do you use?
@player1coding958
@player1coding958 8 жыл бұрын
+Strodeum He is using Visual Studios
@Noah-di3iu
@Noah-di3iu 9 жыл бұрын
You should teach us to write a program that lets us play with the computer
@InfernalJoy
@InfernalJoy 9 жыл бұрын
Cool guy 14 YEAH THIS IS A BETTER IDEA :)
@jpkprogrammingtutor7256
@jpkprogrammingtutor7256 9 жыл бұрын
+Noah8368 AI (artifial intelligence) tic tac toe?
@InfernoTNT
@InfernoTNT 8 жыл бұрын
how do u make the entire enviromment black?
@AaronTheYoonicorn
@AaronTheYoonicorn 8 жыл бұрын
+InfernoTNT tools > options > general > color theme
@Philogy
@Philogy 9 жыл бұрын
and the paste bin isnt working
@bhoopendrasharma9474
@bhoopendrasharma9474 6 жыл бұрын
Thank you for the video, I was expecting some kind of algorithm implementation like 'MinMax' or 'alpha Beta'...
@DavePoo
@DavePoo 5 жыл бұрын
You don't need MinMax or any other fancy algorithm to play tic-tac-toe as a perfect game can be played without any look ahead. You consider all your available moves and pick the best one, there is no need to look at possible counter moves.
@RandomBeefAR
@RandomBeefAR 6 жыл бұрын
thnx for ur hard work for us srs dude thnx
@sieghart1931
@sieghart1931 3 жыл бұрын
very nice
@ahmedsohail9855
@ahmedsohail9855 7 жыл бұрын
If u can make with 1d arraay
@adrikagupta5573
@adrikagupta5573 4 жыл бұрын
I have modified the code in some parts. But I am stuck due to a bug that I am not able to fix. The problem is that I want to convert 1 to '1'. But when I am using code like int a = 1; char p =char(1); The p is the character whose ASCII value is 1 and not '1' which is what I want. Anybody has an idea?
@inx1819
@inx1819 4 жыл бұрын
is it always a one digit number? if yes you could probably do something like this: char digits[] = {'0', '1, '2', '3', '4', '5', '6', '7', '8', '9'}; char x = digits[a];
@alen7648
@alen7648 6 жыл бұрын
How can I contact you ?
@nashrulnazrin9051
@nashrulnazrin9051 7 жыл бұрын
how to do if want to have 5games? please reply
@yazanqwaider8977
@yazanqwaider8977 7 жыл бұрын
very very good
@benhardsim8629
@benhardsim8629 6 жыл бұрын
anyone can explain me what is return 'x' for ??
@davidilunga2384
@davidilunga2384 5 жыл бұрын
Big Hint!, lifesaver you are
@amirkaric6313
@amirkaric6313 8 жыл бұрын
hy bro, could i get the code?
@aashikyadav2860
@aashikyadav2860 8 жыл бұрын
whenever i use the same number for X and O.. it gets overwritten.. so need to solve the problem
@alibajwa1302
@alibajwa1302 8 жыл бұрын
i have a soultion
@madhurjyadas9828
@madhurjyadas9828 4 жыл бұрын
What if the match is drawn!
@soulintent7052
@soulintent7052 6 жыл бұрын
the intro music kills! can i download this music?
@mohasquare769
@mohasquare769 6 жыл бұрын
thanks a lot
@thewiedzmin6062
@thewiedzmin6062 5 жыл бұрын
Is this a music channel first coding second?!
C++ Tutorial 15 - Making simple Tic Tac Toe game (Part 2)
9:35
NVitanovic
Рет қаралды 86 М.
C++ TIC TAC TOE game for beginners ⭕
19:09
Bro Code
Рет қаралды 37 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Tic Tac Toe in p5.js (Coding Challenge 149)
24:01
The Coding Train
Рет қаралды 1,4 МЛН
Tic Tac Toe Game in C++
20:20
Kenny Yip Coding
Рет қаралды 14 М.
Let's Create a Compiler (Pt.1)
1:11:03
Pixeled
Рет қаралды 583 М.
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 168 М.
C Tic Tac Toe game ⭕
20:08
Bro Code
Рет қаралды 178 М.
Minimax Algorithm for Tic Tac Toe (Coding Challenge 154)
26:33
The Coding Train
Рет қаралды 824 М.
Code-It-Yourself! Flappy Bird (Quick and Simple C++)
18:59
javidx9
Рет қаралды 240 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН