Тёмный

Tic Tac Toe Java Game - Build a Tic Tac Toe Game in 30 Minutes  

Alex Lee
Подписаться 413 тыс.
Просмотров 752 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 762   
@alexlorenlee
@alexlorenlee 11 месяцев назад
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
@SwiperANASS
@SwiperANASS 8 месяцев назад
drive.google.com/drive/folders/1PwkFRjycQ0H2duh0iOZ52W-GxTHcbmmO?usp=sharing
@chrysilius0
@chrysilius0 4 года назад
ARE YOU SERIOUS DUDE!?? HOWWW I LITERALLY GOT MY ASSIGNMENT OF MAKING TIC TAC TOE YESTERDAY AND I NEEDED HELP AND GUESSS WHAT.... YOU JUST MADE A WHOLE VIDEO ABOUT ITTTTT!!! THANK YOUUUUU
@onlyios9077
@onlyios9077 4 года назад
what year are you in?
@chrysilius0
@chrysilius0 4 года назад
@@onlyios9077 2008 Why?
@onlyios9077
@onlyios9077 4 года назад
@@chrysilius0 I'm In CS and never got such an assignement
@chrysilius0
@chrysilius0 4 года назад
@@onlyios9077 I'm actually doing java course
@usernameundefined123
@usernameundefined123 4 года назад
He did it after I submitted mine 😭😭
@angelsdemons8520
@angelsdemons8520 4 года назад
notice how he is making mistakes in middle and correcting them ,makes me realize that making little mistakes while programming is so common and normal ... it's as if he is talking to us while programming unlike some programmers who r like - " so we r gonna do this and that and tadda" , really makes me feel kinda dumb bcoz when I try to program I really do lots of small mistakes like Alex ... really very nice video .. enjoyed it ..
@coolfred9083
@coolfred9083 3 года назад
Yeah I think small mistakes are very common
@Maks-wp2wj
@Maks-wp2wj 3 года назад
Don't worry about making mistakes. If people didn't do them, what would be the usage of Stackoverflow then? There is a challange for doing 100 lines of code without any mistake, pretty hard tho.
@cacoca79
@cacoca79 3 года назад
hes not telling you we here to go to make the game
@ptcreborntm
@ptcreborntm 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-eeIbIJR0HqQ.html
@alexbaltimore
@alexbaltimore 2 года назад
Agile development best route! Make mistakes, debug, get feedback, and build a better application
@RajSingh-yj7zj
@RajSingh-yj7zj 4 года назад
I've got to say when I started learning Java certain things I found really tough but your channel help strengthen the areas I was weak and also gave me more passion to learn how to code. Thanks for all the lessons.
@supptk
@supptk 4 года назад
@Idk I just want to comment Riley And I left it at 69.😁
@RajSingh-yj7zj
@RajSingh-yj7zj 4 года назад
Riley you have done the world a great service
@Jechew
@Jechew 4 года назад
5:03 Cool, cool, cool. Save and run. And it still works. I felt that
@BeiggoMC
@BeiggoMC 4 года назад
Lol
@anlunjiang
@anlunjiang 4 года назад
Hi just pointing out a small bug: If you place a winning piece as the last move - it will still register as a Tie, since you put the last "else if" in the for loop on line 118. Put this check as a separate if statement outside the for loop and it solves it. Great video thanks for sharing
@peterszarvas94
@peterszarvas94 4 года назад
Thanks, I was also thinking how to solve this bug, but you answered.
@praneetkarna8498
@praneetkarna8498 4 года назад
Can you please explain why this bug comes up. Because before checkWinner() we do the putPiece() function which should automatically add the last position in our list of player positions. After that, the first if condition which prints "congrats" should be satisfied. Please explain where I am going wrong with this logic. Edit : I got why the bug appears. In the if condition, we go through all the possible winning arrangements inside the winning list. Therefore, if the last position is not part of the top row, then the tie condition will be satisfied before the win condition and "Tie" will be returned, breaking out of the checkWinner() method.
@Asdf-wm4ow
@Asdf-wm4ow 4 года назад
@@praneetkarna8498 Thank you for the edit now I understand also
@lamellama7450
@lamellama7450 4 года назад
Thx man I'm a newbie to the game creation part of java I just do like easy stuff for like to find the hypotenuse length or like trigonometry. This thing really triggered me when the winning piece was the last, but thx for ur fix, I can now proudly say my first successful game created was TiC tAc ToE
@سميححمدان-س1ق
@سميححمدان-س1ق 3 года назад
Thanks a lot.. 😊
@BlazerBoy1337
@BlazerBoy1337 6 месяцев назад
Kinda followed until about halfway through and then did this on my own. And then I modified it with the lists you added. Really cool tutorial, very easy to follow and understand!
@susmitapatro3082
@susmitapatro3082 3 года назад
Great explanation!! 🙌 Don't get disheartened if it takes more than 30 mins to learn . I'm a beginner. TBH it took me 6 hours and I'm proud of myself because this is my first mini project /game and i could totally understand and do it on my own .😇
@tabrezshaikh7705
@tabrezshaikh7705 4 года назад
HANDS DOWN SIMPLEST TIC TAC TOE PROGRAM + EXPLANATION. good work bruhh
@christianjmyhre
@christianjmyhre 3 года назад
I wish I could see this in c++ but this was great!
@shatha-u6q
@shatha-u6q 3 года назад
the fact that I spent 1HOUR in the first 6 minutes is absolutely mad
@Anila-te4fe
@Anila-te4fe 3 года назад
Trust the process :)
@kevinthegamedev9049
@kevinthegamedev9049 3 года назад
I had the same frustrating issue too. :(
@vivansheth1902
@vivansheth1902 3 года назад
same bro
@tobber5582
@tobber5582 3 года назад
3 hours
@vivansheth1902
@vivansheth1902 3 года назад
and after four hours my jdk was just a peice of shit cuz it showed 128 errors then i. decreased them to 0 and still they showed there's a syntax error and. when we check there were no red lines like it showed there was an error but at the same time showed there were none
@catombomb3003
@catombomb3003 Год назад
I liked the way you took care of overlapping moves. I was trying to code on my own whenever I could and then check how you did it. The way I did it worked too, but made the code quite lengthy and a bit repetitive. It was a good experience to learn how to code more efficiently!
@YTKP21
@YTKP21 3 года назад
Who knew that the game tic tac tow would be this hard lol. I just started coding juts like a month ago and beggining to undertsand arrays. Ur videos help out a ton! This video happened to be in my recommended so I clicked it. Amazing video!!! Keep up the good work! 👍
@carlosmurcia9379
@carlosmurcia9379 4 года назад
I love your teaching style! Really easy to understand and make seem less scary to code in Java!
@prawnydagrate
@prawnydagrate 4 года назад
I'm wanting to learn Java for Android app development, and your videos are kinda helpful for me. Thanks!
@biophilic23
@biophilic23 3 года назад
i have no words to describe how grateful i'm after watching your java tutorials. YOU ARE AWESOME
@JaketheSnakeh64
@JaketheSnakeh64 4 года назад
Awesome tutorial! I went through all of it with you. Please post more! From a teaching standpoint, I suggest placing stops in your videos. Good spots would be after you describe what the next step is. (Like: Prior to making a method, give the name of the method and pause for followers to develop their own pseudo code.) This involves users, allows you to get ideas from users, and makes this more of a teaching session. Best part is you can add these breaks in post.
@JewelFornillas
@JewelFornillas 3 года назад
Im learning java here and this is my first project :)
@__-cd1nd
@__-cd1nd 4 года назад
Nice one I’ll do it when I complete my java course and know all these statements. We have finished array and next we’ll learn classes , set, and get ... Thanks bro I like your way to teach ! I hope you can be something special in the future because you always inspiring me !
@alexlorenlee
@alexlorenlee 4 года назад
Thank you! Good luck in your classes!
@__-cd1nd
@__-cd1nd 4 года назад
Alex Lee omggg he’s replying again !!! Literally! I’m on the cloud nine 😭💜 Thanks , you too bro😻
@obidahasdia4095
@obidahasdia4095 4 года назад
@@alexlorenlee me too thanks
@__-cd1nd
@__-cd1nd 4 года назад
Obida Hasdia 🤩
@__-cd1nd
@__-cd1nd 4 года назад
Alexander Zavadsky Really man ...🤦🏻‍♀️ Ah shit .. here we go again
@tehminakakar8753
@tehminakakar8753 3 года назад
OMG This was the best tutorial I've ever seen over internet. I just love the way, he make things easy for beginner like me. Thank you so much.
@nithinputchakayala9032
@nithinputchakayala9032 4 года назад
Dude thank you very much. Literally got the same project. Thank you very much!!!!
@abhinavkrothapalli3224
@abhinavkrothapalli3224 4 года назад
Thanks a lot man! I appreciate this a lot, very helpful. :)
@mynameiscorenhel
@mynameiscorenhel 4 года назад
Code after fixing some bugs:- import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; import java.util.Scanner; public class TicTacToe { static ArrayList playerPositions = new ArrayList(); static ArrayList cpuPositions = new ArrayList(); public static void main(String[] args) { char[][] gameBoard = { { ' ', '|', ' ', '|', ' ' }, { '-', '+', '-', '+', '-' }, { ' ', '|', ' ', '|', ' ' }, { '-', '+', '-', '+', '-' }, { ' ', '|', ' ', '|', ' ' }, }; printGameBoard(gameBoard); while (true) { //**********************PLAYER***************************************** Scanner input = new Scanner(System.in); System.out.println("Enter your position from 1-9 :"); int playerPos = input.nextInt();// Entering your position while (playerPositions.contains(playerPos) || cpuPositions.contains(playerPos)) { System.out.println("this place has been taken please Enter different position :"); playerPos = input.nextInt(); // Rentering your position } playerPositions.add(playerPos); placePiece(gameBoard, playerPos, "player"); // send your position to put printGameBoard(gameBoard); // print Board after your position System.out.println(); String result = checkWinner(); if (result.length() > 0) { System.out.println(result); playerPositions.clear(); cpuPositions.clear(); resetGameBoard(gameBoard); printGameBoard(gameBoard); continue; } //**********************CPU******************************************** Random rand = new Random(); int cpuPos = rand.nextInt(9) + 1; while (playerPositions.contains(cpuPos) || cpuPositions.contains(cpuPos)) { cpuPos = rand.nextInt(9) + 1; // Rentering cpu position } cpuPositions.add(cpuPos); placePiece(gameBoard, cpuPos, "cpu");// Entering cpu position printGameBoard(gameBoard); System.out.println(); result = checkWinner(); if (result.length() > 0) { System.out.println(result); cpuPositions.clear(); playerPositions.clear(); resetGameBoard(gameBoard); printGameBoard(gameBoard); continue; } } } public static void printGameBoard(char[][] GBoard) { for (char[] G : GBoard) { for (char M : G) System.out.print(M); System.out.println(); } } public static void resetGameBoard(char[][] gameBo) { char Symbol = ' '; gameBo[0][0] = Symbol; gameBo[0][2] = Symbol; gameBo[0][4] = Symbol; gameBo[2][0] = Symbol; gameBo[2][2] = Symbol; gameBo[2][4] = Symbol; gameBo[4][0] = Symbol; gameBo[4][2] = Symbol; gameBo[4][4] = Symbol; } public static void placePiece(char[][] Gboard, int ps, String pl) { char Symbol = ' '; if (pl.equals("player")) Symbol = 'X'; else if (pl.equals("cpu")) Symbol = '0'; switch (ps) { case 1: Gboard[0][0] = Symbol; break; case 2: Gboard[0][2] = Symbol; break; case 3: Gboard[0][4] = Symbol; break; case 4: Gboard[2][0] = Symbol; break; case 5: Gboard[2][2] = Symbol; break; case 6: Gboard[2][4] = Symbol; break; case 7: Gboard[4][0] = Symbol; break; case 8: Gboard[4][2] = Symbol; break; case 9: Gboard[4][4] = Symbol; break; default: break; } } public static String checkWinner() { List frstrow = Arrays.asList(1, 2, 3); List scndrow = Arrays.asList(4, 5, 6); List thrdrow = Arrays.asList(7, 8, 9); List frstclm = Arrays.asList(1, 4, 7); List scndclm = Arrays.asList(2, 5, 8); List thrdclm = Arrays.asList(3, 6, 9); List frstcross = Arrays.asList(1, 5, 9); List scndcross = Arrays.asList(3, 5, 7); List winning = new ArrayList(); winning.add(frstrow);// 1 winning.add(scndrow);// 2 winning.add(thrdrow);// 3 winning.add(frstclm);// 4 winning.add(scndclm);// 5 winning.add(thrdclm);// 6 winning.add(frstcross);// 7 winning.add(scndcross);// 8 int i = 1; for (List l : winning) { if (playerPositions.containsAll(l)) return "Congratulation you Won!"; } for (List l : winning) { if (cpuPositions.containsAll(l)) return "Sorry you lost this time :("; } for (List l : winning) { if (!(playerPositions.containsAll(l)) && !(cpuPositions.containsAll(l)) && playerPositions.size() + cpuPositions.size() == 9) return "CAT!"; } return ""; } }
@ihauqpilitinmoq
@ihauqpilitinmoq Год назад
hello, i tried this code but there's an error in && playerPositions.size()+ cpuPositions.size() == 9) it says "illegal start of expression" can you help me plsss
@ihauqpilitinmoq
@ihauqpilitinmoq Год назад
pls help me this is my exam in programming 2
@adrianguillermo629
@adrianguillermo629 2 года назад
hey, your video is excellent. It's good for people to see the true process of a programmer making code, trial and error. The code I would have done differently without so much repetitive code and doing better practices, but it turned out very well in the end.
@manuelmojicas
@manuelmojicas 2 года назад
These were the best 30min Investment in my life. Thank you for the commitment my friend.
@westonpotgieter8131
@westonpotgieter8131 4 года назад
More short games please.
@romitmohane4891
@romitmohane4891 4 года назад
That helped me build tictactoe in PYTHON XD
@martingogaming1777
@martingogaming1777 3 года назад
How to program tic tac toe in script languages LOL
@nanonssmile
@nanonssmile 3 года назад
Can you share your python code? I'm really struggling...😰
@antwarior
@antwarior 3 года назад
@@nanonssmile have you gotten everything under control?
@nanonssmile
@nanonssmile 3 года назад
@@antwarior I really tried, many times... but then I gave up😅
@antwarior
@antwarior 3 года назад
@@nanonssmile bro don't give up lol, just stick with it, I'll tell you something i did, i had started playing this game called kerbal space program then i found out theres a programing language just for the game exclusively and once i downloaded it, (its called kos ksp) i learned how to fly my rockets autonomously and then thats when it hit me lol, programming has become so much easier to understand now that I've learned that kerbal space programing language and could see the result of my code in real time with the rocket, once i achieved orbit with no help and just me coding out my own code after learning kos, I've been back into programming ever since and everything looks way different than it did before, because i understand now whats going on, so don't give up bro, find alternative ways to learn coding just like i did and i promise you, you will be thankful you did, btw java is so easy, its pretty much the easiest language to learn and you'll see why once you learn how to code, you'll see how java is so much more easier than people make it out to be, trust me easiest language to learn by far and i highly recommend you stick with java
@hazedraisin2198
@hazedraisin2198 2 года назад
There’s nothing more satisfying than thinking of the same solution to the same problem at the same time as Alex
@bl6622
@bl6622 4 года назад
Hey one tip, when using switches, use case -> instead of :, you don't need breaks, you don't need returns and the Java Compiler compiles it much faster than the other variant. Only works in Jdk 13 though Edit: when switching between players, you could do it with a Boolean instead of a string and a equals method. I know this is just a simple tutorial and honestly it was great. I'm just here trying to help and improve the quality :)
@archangeltactics3802
@archangeltactics3802 4 года назад
i use : all the time imma try and switch it one day but I doubt it
@yuruji2189
@yuruji2189 4 года назад
I needed this so much. Thanks!
@croczgamings2828
@croczgamings2828 4 года назад
I used to suck in java now you are the almighty overlord in teaching lol Please like this comment i did your login and simple GUI tutorial video. My parents are proud
@peterswrath
@peterswrath 3 года назад
I honestly can't imagine watching anyone else for Java tutorials! Your videos helped me so much, and further made me want to develop games on my own.
@samaibrahim3652
@samaibrahim3652 Год назад
nah this man is a walking ick
@swatishambhavi3649
@swatishambhavi3649 4 года назад
Please make more such videos. You explain everything so nicely.
@manishmadan5543
@manishmadan5543 4 года назад
I have made this game earlier but you gave me better ideas to bring an update to my game and make it better. Thanks for the video Alex!
@rampage14x13
@rampage14x13 4 года назад
Im graduating next semester in cs and math and I still like watching all your videos even though Java is probably the language I know best lol
@MRodzor
@MRodzor 3 года назад
Started learning to code Java 4 days ago still confused af but decided to go along with this and see from what i've learnt and damn its starting to make sense now! Big ups much love!
@Conducttor
@Conducttor Год назад
As of Java 13, you can use much better looking and shorter, "enhanced" switch statements: switch (position) { case 1 -> board[0][0] = symbol; case 2 -> board[0][2] = symbol; case 3 -> board[0][4] = symbol; case 4 -> board[2][0] = symbol; case 5 -> board[2][2] = symbol; case 6 -> board[2][4] = symbol; case 7 -> board[4][0] = symbol; case 8 -> board[4][2] = symbol; case 9 -> board[4][4] = symbol; default -> {} } Mind the missing semi-colon after "default -> {}", it's mandatory.
@mb98765
@mb98765 4 года назад
i LOVE how slow-paced these are. some of the best tutorials I've seen
@dougie119
@dougie119 4 года назад
line 26 of your code should be playerPos not playerPositions. I was confused for a while because I was able to take the CPU positions in game. This was good for troubleshooting though!
@system.out.printlnsmartert5781
@system.out.printlnsmartert5781 3 года назад
I was having that issue too. ty for fixing it im not familiar enough yet to figure it out.
@gandhisFlipFlops
@gandhisFlipFlops 18 дней назад
You should make a C++ tutorial. I like your teaching style compared to some other channels where they go over important concepts too quickly and speak too fast sometimes.
@suriii978
@suriii978 10 месяцев назад
Wow just wow I'm so so glad that I got this wonderful opportunity to do intership in sustem trons
@phenomenon7030
@phenomenon7030 4 года назад
Hope you make long videos like thats more often, its am still learning java and this type of videos help me to recover all what a learn and learn more logic int these statements, also the things i didn't learn yet is becoming more familiar to me and doesn't have an issue with it in class THANK YOU SO MUCH I realy im thinking to do videos like in my own language after i learn java because alot of student that doesn't understan english very will struggle to find a learning videos
@NetITGeeks
@NetITGeeks 3 года назад
Thank you for helping me pass my Java class Alex and I love your intro song Kazura - My Way.
@kshitizkaushik8092
@kshitizkaushik8092 Год назад
bro you helped me alot, may you live long and beautiful life. amen
@MisterWealth
@MisterWealth 4 года назад
This tutorial is what the gang needs! Wahooooo
@pythondoesstuff2969
@pythondoesstuff2969 4 года назад
Wow I wrote my second java project with this....... Thanks. First was obviously hello world
@joeyphilipp4690
@joeyphilipp4690 4 года назад
Shouldn't the second while loop in main be like this? Just incase user selects a position where the cpu has already gone. while(playerPositions.contains(playerPos) || cpuPositions.contains(playerPos)){ System.out.println("Position taken! Enter a correct Position"); playerPos= scan.nextInt(); }
@lamellama7450
@lamellama7450 4 года назад
Yea I figured it out myself
@castles990
@castles990 4 года назад
Thats what i thought
@anonymousone1468
@anonymousone1468 3 года назад
Thank you for this comment. I was confused about how I should have rewritten this part.
@gourangakhande8036
@gourangakhande8036 2 года назад
great video showcasing how to code in stages while doing a big project.
@zelyxc7186
@zelyxc7186 4 года назад
Yo your video helped alot some how i learned making a card game by my self (took me a couple of hours but it turned ok ) just by watching how coding works on your video's keep up these video's!
@paoloberi
@paoloberi 3 года назад
Just what I was looking for, you rock and inspire men, keep it rolling
@NetITGeeks
@NetITGeeks 4 года назад
I found the user was able to input on top of what CPU had already entered. I don't know where I made the mistake because I have the code the same as yours. The CPU is not printing on top of the user but the user can print on top of the CPU. If the user tries to enter on top of the user's own input, that's when the Choose another position error message pops up. I don't know if this is a bug or problem with my code.
@rohitvyas7130
@rohitvyas7130 4 года назад
It is not your mistake. Alex has skipped that. So, just copy and paste this code in the while loop of the user😃😃. while(playerPositions.contains(playerPos) || cpuPositions.contains(playerPos)){ System.out.println("Position taken! Enter a correct Position"); playerPos= scan.nextInt(); }
@NetITGeeks
@NetITGeeks 4 года назад
@@rohitvyas7130 Thank you so much.... I am in my intro to Java class in school so I am learning loops this week. :)
@SDILUYNTsiu39fnd
@SDILUYNTsiu39fnd 2 года назад
I think you've could've made a nested for loop to iterate through the x and y indexes of the 2d array, instead of using a switch
@dannyluna3097
@dannyluna3097 Год назад
I used almost none of this but this inspired me to use what I needed too💀💀💀 let’s just say I used way to me if loops😭 (I really don’t mind because copy and paste is a king!!!)
@Nekyox_
@Nekyox_ 4 года назад
Arf, you should use % and / to set the symbol instead of your switch gameBoard[2 * ((pos - 1) / 3)][2 * ((pos - 1) % 3)]
@Luca-hn2ml
@Luca-hn2ml 4 года назад
Yea and there are other efficiency flaws in his code. For example the winning checks and the while loop for the cpu can be improved
@chriscarlisle8997
@chriscarlisle8997 4 года назад
Dude that's ingenious!
@marcusallen2485
@marcusallen2485 3 года назад
suggestion.... change the white places on the origional gameBoard to the corresponding numbers to know where you are playing
@thanos9704
@thanos9704 4 года назад
Thank you Alex lee Finally made my first *TicTacToe*
@aminajan2468
@aminajan2468 4 года назад
Keep up the good work man, I'm supporting you.
@yatrikamrutiya9376
@yatrikamrutiya9376 4 года назад
thankyouuu so much man !!! ....i've never seen someone explain java so easily
@_sf_editz1870
@_sf_editz1870 2 года назад
Pure talent man 😄 , god bless you
@GiacomoTorresComposer
@GiacomoTorresComposer 4 года назад
This is an incredible video, thank you for all the effort you put in.I know I cant ask you for more, but it would be great if you teaches us a little bit more about AI and the stuff you mentioned in the video.
@dontworrybecurly
@dontworrybecurly 2 года назад
yes!
@NiffirgkcaJ
@NiffirgkcaJ 7 месяцев назад
There are some bugs which I am unable to fix, but you're infinitely better than me! :D
@Meto31_
@Meto31_ 2 года назад
Bro u did the most brutal hardcode TicTacToe for Java I have ever seen
@matthieug5183
@matthieug5183 3 года назад
Awesome video for beginners in Java, thank you man !
@MinecraftStonewideos
@MinecraftStonewideos 4 года назад
The most important thing I learned from this video is While(true) and break; this is going to help me so much!
@TrackDamagerz
@TrackDamagerz 2 года назад
Beginner here, this was SUPER helpful, thank you! Subscribing now :)
@CJ-im3mi
@CJ-im3mi 4 года назад
That was really good man. Keep doing.. It will helps for java freshers... And i am waiting for next one.. 🖤
@MrAnonymous-j6l
@MrAnonymous-j6l 4 года назад
Smart kid. Keep up the good work!
@markbaker9593
@markbaker9593 2 года назад
Heads Up: The loop for checking a win has an error. It will only check one win scenario after 9 moves. Since there have been 9 moves, the third part triggers and shows a tie, regardless of the outcome. You need to move the tie check out of the loop and then it can run after all win scenarios are checked. (Thanks Alex for helping me get started with Java.)
@zk__27
@zk__27 Год назад
Hello, could you please explain why after 9 moves it only checks one win scenario?
@user-zf8gy1yw1p
@user-zf8gy1yw1p 4 года назад
.....best intro I've seen so far.
@fullmetaltheorist
@fullmetaltheorist 3 года назад
dude you are really helping me with my college work
@icedtea5143
@icedtea5143 3 года назад
Yo, you saved me like 6 hours of work and research there. Subbed!
@G11-j7x
@G11-j7x 4 года назад
Hey this is awesome man. Games and gui programs usually engage people and let them learn with exciement. My question is, with your experience, do you study and do the prrograms before making a video or do you just do it as you record? It seems very natural for you.
@severosjames4341
@severosjames4341 2 года назад
i learn a lot from you alex
@Officialace777
@Officialace777 3 года назад
Awesome program, works perfectly :) Thanks a lot😊
@monkeyseatcatfood
@monkeyseatcatfood 3 года назад
Super helpful tutorial, Alex Lee. Really appreciate the explanations you gave.
@CarlosMartinez-zu6xz
@CarlosMartinez-zu6xz 11 месяцев назад
Hello Alex on line 26 not sure if you corrected it afterwards but on that line it's supposed to be "playerPos" when you used "playerPosition". If it's not switched, it still let's player put X's where there are some O's. Amazing step by step though. I learned a lot from it. Also you probably won't see my message but i appreciate your videos.
@DavisTibbz
@DavisTibbz 3 года назад
This is fabulous! You are a great instructor.
@ahnafbataineh8319
@ahnafbataineh8319 4 года назад
i like how u divide ur method
@nityaranjan6714
@nityaranjan6714 3 года назад
Alex you missed one scenario where, if all the positions are filled and only last position is blank. Then user has to put X in last position and actually by putting X in last position he will win. But as we are having a condition if board is full then it will give us tie message, so its showing a tie. But actually Player wins that case
@arbelamram1898
@arbelamram1898 3 года назад
Thank you alex ! I appreciate the effort, very helpful!!
@mongaydiego
@mongaydiego 3 года назад
Thank you, thank you, thank you. Great code. Great program. Fun with Java!
@drip-y4w
@drip-y4w 2 года назад
This is awesome dude!!! I have learnt a lot from you
@cancergamingph8113
@cancergamingph8113 2 года назад
Me watched and download every single video you uploaded 😅
@japanhunter4807
@japanhunter4807 3 года назад
Thank you for your plain lesson! Making board game can expand knowledge of Array class.
@frenzygamer907
@frenzygamer907 4 года назад
is there really not a better way to check all the cases? so much code to do that... i have a similar program and did the same thing but its stressing me out because its so many “if” statements and im worried to put it on my resume in case its bad coding
@StriveforGainz
@StriveforGainz 2 года назад
Keep up the great work Alex!
@joyramsarkar9212
@joyramsarkar9212 4 года назад
You are A really AWESOME programmer !!!...we really appreciate the way(also style!) you are doing the coding...GOD Bless You ...love from India :)
@amberrose46
@amberrose46 4 года назад
So I'm following along with this, but for List topRow and all the others, it gives me an error saying "Type mismatch: cannot convert from List to List" did I do something wrong here?
@bearz_ftw126
@bearz_ftw126 4 года назад
lmao, I love this kid. the intro got me
@TMTallround
@TMTallround 4 года назад
love your videos man, i was wondering. will you ever make a junit video?
@essentialzmusic
@essentialzmusic 2 года назад
Buck all of your fav teachers...this boy is certified. Thanks cuhhhh 🤣💪
@Paersik
@Paersik 4 года назад
I'm so thankful for this video!
@netajinetha3689
@netajinetha3689 2 года назад
intro is ultimate :)
@taikez288
@taikez288 4 года назад
YOOOOO ALEX YOURE AMAZING BRO can you make a java calculator tutorial? love u man youre actually cool
@bugslayer-sama
@bugslayer-sama 3 года назад
This is really helpful, I learnt a lot from it. Keep up the good work
@sean3589
@sean3589 4 года назад
Great Video! I was wondering could you cover GUI too?
@krishna-tj9ut
@krishna-tj9ut Год назад
i cant thank you enough you are a great teacher
@EsraaAmour
@EsraaAmour 9 месяцев назад
thx for awesome explanation !! 🧡🧡
@exip9288
@exip9288 2 года назад
Sen var ya sen, sen adamın dibisin.
@flwer1
@flwer1 4 года назад
this was so fun to build! thank you, i'm so much more motivation for continued learning java ♥
@LisaMcGraw201
@LisaMcGraw201 2 года назад
Great Videos, I love your channel. It would be great if you could make the TicTacToe game using graphics, awt, swing. It would be a great lesson on extending and using canvas. Thanks again.
Далее
Abstract Class In Java Tutorial #79
8:55
Просмотров 541 тыс.
История Hamster Kombat ⚡️ Hamster Academy
04:14
Avaz Oxun - Yangisidan bor
14:29
Просмотров 285 тыс.
Java tic tac toe game ⭕
30:00
Просмотров 290 тыс.
Learn Java in 14 Minutes (seriously)
14:00
Просмотров 4,7 млн
Java GUI Tutorial - Make a Login GUI #100
19:49
Просмотров 555 тыс.
HashMap Java Tutorial #50
11:42
Просмотров 412 тыс.
Create Rock Paper Scissors in Java in 10 Minutes
10:24
Просмотров 115 тыс.
Java pong game 🏓
1:07:44
Просмотров 293 тыс.
Tic Tac Toe Game in Java - Full Tutorial with Source
51:39
Tic Tac Toe Java Game in Under 15 Minutes
17:16
Просмотров 109 тыс.
История Hamster Kombat ⚡️ Hamster Academy
04:14