@@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.
Let me know if you need any help with the code!
Code please
@@ryanhernanchannel8223 github.com/javacodingcommunity/TicTacToeJava/blob/master/Tic%20Tac%20Toe%20Java/Tic%20Tac%20Toe/src/ttt/tttGame.java
@@javacodingcommunity THANK YOU SO MUCH
ARE THIS THE ALL CODE? ARE THESE CODE HAVE GUI?
@@ryanhernanchannel8223 not all but some :D
Ah Thank you so much, such a brilliant game
glad I could help
Really helped, thanks, dude!
Glad I could help :)
Thank you! But it is without GUI :(
awesome , thanks for video .
Glad you liked it!
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?
I have a video about it with Python, but the algorithm is the same. ua-cam.com/video/2Tr8LkyU78c/v-deo.html
could not find or load main class java.???? error coming
This code doesn't have any GUI?? if have ,why didn't it shows ?? Can you give me that code which have GUI interfaces?
juicy tuitorial i wish it was with javafx
Yeah, I was thinking about it. It was really simple so I just went with Swing. I'll make JavaFX in the future!!
ua-cam.com/video/HBBtlwGpBek/v-deo.html check this out for JavaFX
Thank you so much. Can you do more video about javaFX?
Sure thing :D It's coming in the future!
ua-cam.com/video/HBBtlwGpBek/v-deo.html check this out for JavaFX
I have java jdk do i need to install se or anything else
Hello, hope this clarifies it for you: www.javatpoint.com/how-to-run-a-java-program-in-windows-10
@@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
@@akilcejku8245 Yeah you just need JDK but also to configure some variables on your PC so you can run Java
@@javacodingcommunity thanks so much
The colours don't work, only see white?
yeahh I have the same problem
Did you figure it out?
@@javacodingcommunity nah I still haven’t figured it out but it’s also bc I forgot about it 💀
Only issue I see if that the two players can play on top of each other.
Try changing the code so you can pick what to play :) good practice!
@@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.
@@JacobLynn1 Good job, that is how you learn from projects!
Code for this one
github.com/javacodingcommunity/TicTacToeJava/blob/master/Tic%20Tac%20Toe%20Java/Tic%20Tac%20Toe/src/ttt/tttGame.java