Tic Tac Toe in Java | How to create a Tic Tac Toe Game with a Graphical User Interface

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 38

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

    Let me know if you need any help with the code!

  • @mansur8091
    @mansur8091 3 роки тому

    Ah Thank you so much, such a brilliant game

  • @ascbrast
    @ascbrast 3 роки тому

    Really helped, thanks, dude!

  • @trantuananh4456
    @trantuananh4456 3 роки тому

    awesome , thanks for video .

  • @chaek_-in7oo
    @chaek_-in7oo 3 роки тому

    Hi, thank you for the great explanation of the code! Could you please explain how to change the code so that game is between a player and a computer?

    • @javacodingcommunity
      @javacodingcommunity  3 роки тому

      I have a video about it with Python, but the algorithm is the same. ua-cam.com/video/2Tr8LkyU78c/v-deo.html

  • @yashdahiwal4755
    @yashdahiwal4755 3 роки тому

    could not find or load main class java.???? error coming

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

    This code doesn't have any GUI?? if have ,why didn't it shows ?? Can you give me that code which have GUI interfaces?

  • @ianrudey3124
    @ianrudey3124 4 роки тому

    juicy tuitorial i wish it was with javafx

    • @javacodingcommunity
      @javacodingcommunity  4 роки тому

      Yeah, I was thinking about it. It was really simple so I just went with Swing. I'll make JavaFX in the future!!

    • @javacodingcommunity
      @javacodingcommunity  3 роки тому

      ua-cam.com/video/HBBtlwGpBek/v-deo.html check this out for JavaFX

  • @emmaguo619
    @emmaguo619 4 роки тому

    Thank you so much. Can you do more video about javaFX?

  • @akilcejku8245
    @akilcejku8245 4 роки тому

    I have java jdk do i need to install se or anything else

    • @javacodingcommunity
      @javacodingcommunity  4 роки тому

      Hello, hope this clarifies it for you: www.javatpoint.com/how-to-run-a-java-program-in-windows-10

    • @akilcejku8245
      @akilcejku8245 4 роки тому

      @@javacodingcommunity i have installed jdk 15 what changes has from se do i need to install se 15 or jdk 15 i dont understant this

    • @javacodingcommunity
      @javacodingcommunity  4 роки тому

      @@akilcejku8245 Yeah you just need JDK but also to configure some variables on your PC so you can run Java

    • @akilcejku8245
      @akilcejku8245 4 роки тому

      @@javacodingcommunity thanks so much

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

    The colours don't work, only see white?

  • @JacobLynn1
    @JacobLynn1 3 роки тому

    Only issue I see if that the two players can play on top of each other.

    • @javacodingcommunity
      @javacodingcommunity  3 роки тому

      Try changing the code so you can pick what to play :) good practice!

    • @JacobLynn1
      @JacobLynn1 3 роки тому

      @@javacodingcommunity I changed the code, also added a feature to choose who gets to start and then added AspectJ class. Now I am trying to see if I can really make the AspectJ class a "referee" the most difficult part is I do not know how to alter the main program based on a decision made in the AspectJ class. For example my AspectJ is looking for certain methods, when they do it records if there was a win, draw. Then I should allow the main method to close or start a new game.
      AspectJ is great at reading and logging events but not so great at effecting their outcome.

    • @javacodingcommunity
      @javacodingcommunity  3 роки тому

      @@JacobLynn1 Good job, that is how you learn from projects!

  • @ryanhernanchannel8223
    @ryanhernanchannel8223 3 роки тому

    Code for this one

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

      github.com/javacodingcommunity/TicTacToeJava/blob/master/Tic%20Tac%20Toe%20Java/Tic%20Tac%20Toe/src/ttt/tttGame.java