Tic Tac Toe Java Game in Under 15 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025

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

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

    DSA + interview preparation playlist: th-cam.com/play/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ.html

  • @rahulshrivastava3041
    @rahulshrivastava3041 ปีที่แล้ว +127

    just started the dsa course of kunal, can say it is the best we can have , kunal please complete it whenever you get the time. your teaching skills are mind blowing.

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

      In which year you are

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

      its incomplete

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

      @@ahmedzaidi4228 thats y he is requesting him to complete it lmao , maybe u didnt read

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

      hello sir I am a newbie in DSA so can you plz tell me that which topics of DSA completed by Kunal and which topics are incomplete in his DSA playlist
      thanks

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

      Bhai tune uska previous video nhi dekha kya? Usme saaf saaf bol diya...wo series complete nahi karega.... Apna personal time kyu de wo...aisa bol raha tha...

  • @pratyushkumar8351
    @pratyushkumar8351 ปีที่แล้ว +44

    Your DSA content is amazing please resume the course , eagerly waiting for it !

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

      Hi Pratyush, from where have you covered rest of the topics which were not taught in Kunal's DSA course?

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

      ​@@thr6453 cover it from codeforcause

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

      @@Kunaltwts hey guys what is DSA

  • @sandhiyas5828
    @sandhiyas5828 ปีที่แล้ว +28

    Kunal please complete this DSA course. We really need this course to finish completely .... your teaching style amazing.need videos on trees, graphs, and dynamic programming and some of the algorithms also

  • @sudhanshukushwaha6351
    @sudhanshukushwaha6351 ปีที่แล้ว +14

    need more such java DSA project. keep continuing legend😍

  • @RahulKumar-md5ml
    @RahulKumar-md5ml ปีที่แล้ว +16

    Plz keep Java project continue sir , the way u teach is amzingggg !!!!!!❤❤❤❤

  • @rakshitchennagiri734
    @rakshitchennagiri734 ปีที่แล้ว +18

    hey kunal, been following your dsa bootcamp for a while. the teaching has been excellent. Please do complete the course asap! eagerly waiting

  • @shwetaverma3154
    @shwetaverma3154 ปีที่แล้ว +8

    Kunal your way of teaching is amazing..plz complete the course.

  • @beerusgaming7
    @beerusgaming7 ปีที่แล้ว +41

    Your DSA course is amazing man. You're such a legend

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

      i really hope he completes that course ASAP

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

      bro its incomplete like wtf

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

      @@ahmedzaidi4228 u r not the only one who knows it xd

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

      ​@@chiragawasthi2261 hello sir I am a newbie in DSA so can you plz tell me that which topics of DSA completed by Kunal and which topics are incomplete in his DSA playlist
      thanks

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

      what about tree and graph tutorial?

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

    # GOD Of DSA
    Hi I am a 11yr exp java guy was searching for some free course on youtube for DSA came accross your course and i just feel love in it...all in one place that too with java...i must say you have done very awsome work...your name will be there on this earth as long as DSA will be asked in interviews...May God Vishnu Bless You :)

  • @StangeButCute
    @StangeButCute ปีที่แล้ว +8

    HELLO KUNAL, STILL WAITING FOR COURSE VIDEOS WHICH ARE STILL NOT UPLOADED. This course is really very good. Please upload the remaining videos also....

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

    Code (fork it to see the solution): replit.com/@KunalsReplit/TicTacToe
    Join Replit: join.replit.com/kunal-kushwaha

  • @priyojitsingha
    @priyojitsingha ปีที่แล้ว +13

    only after kunal's dsa course is complete I can die peacefully

    • @shreyxnsh.14
      @shreyxnsh.14 ปีที่แล้ว +13

      immortal

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

      hello sir I am a newbie in DSA so can you plz tell me that which topics of DSA completed by Kunal and which topics are incomplete in his DSA playlist
      thanks

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

      @@bipg480 I think trees, graphs and dynamic programming is not done till now, If I'm wrong anyone please correct it.

    • @Noname-sn6ty
      @Noname-sn6ty ปีที่แล้ว

      Congratulations on unlocking immortality

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

      Hi Priyojit, from where have you covered rest of the topics which were not taught in Kunal's DSA course?

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

    KK’s DSA series totally 🔥

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

    Kunal please complete this DSA course. We really need this course.. and your teaching style amazing..

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

    please let us know when ur going to complete the dsa playlist because just few important topics are remaining to complete the DSA playlist . Please Kunal do it for us . Lots of people loving this DSA cource and ur way of explaining the concepts is just mind blowing so we just want to learn the reaining topics from u only . Literally i don't want to switch to another channer for DSA after watching ur videos, please its a request by heart please just complete those topics .

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

    Hey @Kunal Kushwaha, Bhaiya please resume the dsa course, eagerly waiting for that!!!

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

    Kunal plz plz plz complete the dsa course.Your teaching is amazing. We really need this.

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

    Kunal, we are waiting for the next chapter : Trees. Please do it whenever you get time

  • @shree347
    @shree347 ปีที่แล้ว +14

    Need more Java tutorials like this

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

      isme java puri sikhayi h kya????????

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

      @@snehaagrawal6648 English please?

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

      Is this playlist is complete nad sufficient for learning java from scratch to advance

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

      @@snehaagrawal6648 you can learn from scratch to core Java concepts well. Java is completed upto core Java concepts.

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

      @@shree347 dsa is not completed in this series how many topics aree still yet to cover???

  • @ManishKumar-jz2jr
    @ManishKumar-jz2jr ปีที่แล้ว +2

    Hi sir. Please complete this course. You are great

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

    Hey Kunal please complete the DSA course ASAP.

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

      hello sir I am a newbie in DSA so can you plz tell me that which topics of DSA completed by Kunal and which topics are incomplete in his DSA playlist
      thanks

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

    Hey, Kunal please complete the DSA bootcamp........ eagerly waiting for the video since last month !!

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

    Eagerly waiting for your tree series😄

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

    he is going to complete this data structures bootcamp

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

    Love you kunal you are the best

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

    Please upload video on Tree graph in DSA series

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

      i tottaly agree with you brother its been a year we started this wonderful journey

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

    Lessss goooo! As always great work

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

    why did your android development community shut down? please help me out I am a first year trying to learn android development and have been watching your java DSA playlist for quite a while . I see you as my first mentor in my tech journey and hope your classroom community comes back again

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

    Please continue the the dsa bootcamp

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

    Amazing video Kunal Sir

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

    you are amazing teacher..! can you tell me by when all the videos will be uploaded of this course(playlist)?

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

    Please add trees and graph concepts also. We need it .your course is amazing.

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

    Kunal DSA ka next video upload karo bhai eagerly waiting ❤

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

    Thanks For your Efforts

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

    bhaiya plz i genuinly beg you to complete DSA course ASAP its been a year since we started this journey and now placements are within 2 months plz bhaiya

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

      hello sir I am a newbie in DSA so can you plz tell me that which topics of DSA completed by Kunal and which topics are incomplete in his DSA playlist
      thanks

  • @vishalkumar.s9679
    @vishalkumar.s9679 ปีที่แล้ว +1

    Thanks,continue the series

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

    the game is very cool , we can also add a function to check if the game is tie or not, currently if the game is tie and the board is full , still the loop keeps on going till infinite.
    public static boolean isFull(char[][] board) {
    for (int row = 0; row < board.length; row++) {
    for (int col = 0; col < board[row].length; col++) {
    if(board[row][col] == ' ') {
    return false;
    }
    }
    }
    return true;
    }
    this will check if the board is full then we are gonna break out of the loop printing the game is a tie
    if(isFull(board)) {
    System.out.println("Game is Tie");
    break;
    }
    //place this at the end of the while loop
    also we can add try catch block to check for index out of bounds exception generated when taking input.

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

    Please do some videos on trees, graphs, and dynamic programming also

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

    7:56 game is also over when all elements are placed

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

    thanks so much

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

    Thanks for sharing bahiya.

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

    Please do more like this

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

    please cover the graph and tree topic as soon as possible

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

    Please continue this series...

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

    please complete the dsa course

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

    Good one

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

    Great man

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

    @kunal Please tell us about your plans of completing it?

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

    Thank you guruji 🤲

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

    Please sir complete the course

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

    Kunal upload the dynamic programming videos trees videos

  • @_man.on.strings__
    @_man.on.strings__ ปีที่แล้ว

    ye kitne salo ki mehnt se ati h cheeze?? hats of man

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

    Eazii 🙌🏻🙌🏻

  • @SAURABHKUMAR-lw7dz
    @SAURABHKUMAR-lw7dz ปีที่แล้ว

    bhai you should complete the dsa course

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

    But what if all boxes fill ,the code will get infinity right ,I think you are not added draw match condition

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

    Nice

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

    Please upload more

  • @bala-OG
    @bala-OG ปีที่แล้ว

    Good video ✨

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

    Great video, but you forgot to check if the Board is full and when to terminate the game

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

    15:52 I don't want ex to win

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

    Please resume this course

  • @Prince-hy9ng
    @Prince-hy9ng ปีที่แล้ว +1

    Please kunal suggest which development is better for full stack development or any other course which is better

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

    Very interesting but you forgot the draw case

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

    Kunal when are you going to upload a topic about HashMap and HashSet

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

    plz complete your dsa course tree,graph and dp

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

    sir, please continue the dsa course

  • @AbhishekKumar-mv7pb
    @AbhishekKumar-mv7pb ปีที่แล้ว

    Kunal please complete dsa course I had stuck at stack and queues

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

    when you are going to upload trees lecture?

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

    When will the DSA bootcamp be completed🤔

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

    sir finally course kb tk complete hojaega complete.

  • @princevegeta-pj1ei
    @princevegeta-pj1ei ปีที่แล้ว

    complete DSA Course pls

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

    Ye kab complete hoga sir

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

    Is this last video of the series?

  • @NunavathRajendar-e3x
    @NunavathRajendar-e3x 9 หลายเดือนก่อน +1

    public class TicTakToe {
    public static void main(String[] args) {
    int n=4;
    char[][] ch=new char[n][n];
    TikTokToe(ch);
    display(ch);
    }
    private static void TikTokToe(char[][] ch) {
    Scanner sc=new Scanner(System.in);
    System.out.println("Lets start the game");
    boolean gameOver=false;
    boolean wrongEnter=false;
    char player='x';
    while(!gameOver) {
    System.out.println("Enter the ordinates of "+player);
    int row=sc.nextInt();
    int col=sc.nextInt();
    if(ch[row][col]!='x' && ch[row][col]!='o'){
    ch[row][col]=player;
    display(ch);
    wrongEnter=false;
    }else {
    System.out.println("Please Enter the right coordinates");
    wrongEnter=true;
    }
    gameOver=isGameOver(player,ch,row,col);
    if(gameOver) {
    System.out.println(player+" won");
    }
    if(!wrongEnter) {
    if(player=='x') {
    player='o';
    }else {
    player='x';
    }
    }
    }
    }
    private static boolean isGameOver(char player,char[][] ch,int row,int col) {
    // checking for row
    if(row>=0 && row=0 && col>> you can also use this code to play the game in any " N " size board . For simplicity of code i wrote it in a broad way you can also minimize it..

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

    When are you going to teach us trees and graph

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

    I have a doubt, in the code given for checking haveWon we are checking each row, column and diagonal but I think it's not necessary as the only possible win could be in the row, column or diagonal the player has made move in so i think we should only check that.
    I made the program that way and it works!!

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

    did you share this code somewhere for reference ?

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

    Great work plzz make some more videos in java series loved it

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

    BHAI SAAB AAP BHOOL GAYE H KI KOI COURSE START KIYA THA, kindly complete DSA+JAVA please.

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

    @kunal you are planning to finish this bootcamp on 2025 😢?

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

    Add the draw condition also

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

    1st person to see the video. :)

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

    Is he going to finish the DSA course?😍

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

      imo never, chutiya kaat dia bhai ne mera, m socha tha ki padha dega 3-4 months m, isse accha babbar bhaiya wale se padh lo.

  • @Mr_Eagle-m6n
    @Mr_Eagle-m6n ปีที่แล้ว

    Bhaiya i want to say that please complete the syllabus of the that you told ..we are waiting for the vedios.... Topics like dp tree graps etc .. we really really need it........ If it's take can you please something to mee please bhaiya.....🥺🥺 I am....such in trouble

  • @LavishGupta-wk3pk
    @LavishGupta-wk3pk ปีที่แล้ว +2

    I am starting kunal's DSA course.....
    So I want to know, how much percentage of his DSA course is complete???

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

      Approximately 40%

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

      I would say finish it, it's incomplete in term of few data structures but the learning experience with practice of current data structures would give you solid base to study remaining DS on your own

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

      start it blindly

    • @jagjitsingh-bp5vl
      @jagjitsingh-bp5vl ปีที่แล้ว

      Start it.. it's designed in a way that by the time you reach at the last video you will have a solid base to kick start on your own...

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

      isme java puri ho gyi kya

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

    Bro please upload Hashing videos we are waiting alot

  • @SachinKumar-zl8ke
    @SachinKumar-zl8ke ปีที่แล้ว +1

    Learn something new , 😊🎉
    In this project,
    player 1 vs cpu instead of 2 player . Is this possible

    • @MO-fg2cm
      @MO-fg2cm ปีที่แล้ว

      There might be some Tic tac toe API .... Check them out

  • @MO-fg2cm
    @MO-fg2cm ปีที่แล้ว +1

    Hey how to convert to GUI ...... I will try it out

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

    Need more videos

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

    U on stealth mode? Hehe. Have u used copilot b4

  • @DevRawal-u6c
    @DevRawal-u6c 6 หลายเดือนก่อน

    Bhaiya ye konsa app he jispe ap code kar rahe the please batado,🙏🙏

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

    Kunal what's your thought about Elon Musk's new decision with Twitter!!

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

    Need more projects

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

    Bro ur setup got changed, like in the starting videos ur mike was changing colour but now there's no mike

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

    What about conditions when there is a draw or no playable moves??

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

    Kunal bhai Binary Tree ka lecture daal do bhai please

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

    public static boolean isBoardFull(char[][] board) {
    for (int row = 0; row < board.length; row++) {
    for (int col = 0; col < board[row].length; col++) {
    if (board[row][col] == ' ') {
    // Found an empty space, so the board is not full
    return false;
    }
    }
    }
    // If no empty spaces were found, the board is full
    return true;
    }

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

    Hello bro good video, but the game not getting draw only win by x or by o
    i want to draw the game so what should i do help please
    anyone please

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

    😢bro please resume with trees, graphs and all placements will be held very soon