Тёмный

Code Tic Tac Toe in Java 

Kenny Yip Coding
Подписаться 32 тыс.
Просмотров 24 тыс.
50% 1

How to code a Tic Tac Toe game in Java for beginners! Learn how to create a game of Tic Tac Toe in Java using the awt and swing graphics library. Throughout the tutorial, you will learn how to create a graphical user interface (GUI) to display the Tic Tac Toe game, and check win or tie conditions using a 2D array.
Setup Java with Visual Studio Code:
• How to set up Java in ...
Code: github.com/ImK...
Website: www.kennyyipco...
Java Game Programming Projects Playlist:
• Java Game Programming ...
JavaScript Game Programming Projects Playlist:
• JavaScript Game Progra...
Subscribe for more coding tutorials 😄!

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

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@fersahahmet9597
@fersahahmet9597 Год назад
Thank you for your effort Kenny , this is a very good tutorial for an average programmer. Please keep up the good work like this one. I have subcribed recently and watching all of your prev. tutorials
@aravinds6406
@aravinds6406 9 месяцев назад
Very useful tutorial. The thing I like about the video is , each line of the code you explained what it does.
@olehliashyk6988
@olehliashyk6988 9 месяцев назад
Help me plz about tile in 12 minute on video. I do not write “tile” because I have an issue😢
@incarnateblizzard4874
@incarnateblizzard4874 2 месяца назад
you could also - to keep the code as much the same as possible change setWinner for anti-diagionally to this: for (int i = 0; i
@ValentyneMu
@ValentyneMu Месяц назад
Impossible to dislike this... YOU SAVED MY LIFE!!!
@prajwalkamble4913
@prajwalkamble4913 Месяц назад
Thank you for this amazing explanation 🎉
@philip3746
@philip3746 3 месяца назад
Great video, very clear. I am going to try to modify your code to where the computer can play one of the players. I have seen it done in Python so I will try in Java.
@Peleg-q7u
@Peleg-q7u 11 месяцев назад
you are a king i have no idea how to code and i just made a game
@NareshKumar-vt4sh
@NareshKumar-vt4sh 10 месяцев назад
Yeahhhh 🎉 thank you kenny. Pls be continue in java projects...
@ImHlkari
@ImHlkari 2 месяца назад
Super underrated
@pland4r133
@pland4r133 Год назад
keep up man uare the best keep going i'm learning so much from you
@FariaNourin-p3o
@FariaNourin-p3o Год назад
next time please add the replay button. im currently following your all game tutorial. so it will be very helpful.
@KennyYipCoding
@KennyYipCoding Год назад
I assume people will follow the tutorial to learn and later improve on the project. I purposely left out the replay button so that it would be something for you to figure out on your own. Shouldn't be too difficult since following the tutorial will teach you how to add a button, add an action listener to that button when clicked, and at the end of the video I also identified which variables you should update when resetting the game.
@lizarose3095
@lizarose3095 2 месяца назад
Thanks for the tutorial :-)
@user-ws1zq7vu5l
@user-ws1zq7vu5l Месяц назад
I am getting - Error: Could not find or load main class TicTacToe Caused by: java.lang.ClassNotFoundException: TicTacToe in my project can you tell how to resolve this problem
@factibul5595
@factibul5595 26 дней назад
Maybe you aren't have main class in your project
@peanut5280
@peanut5280 4 месяца назад
Sombody have a restart button?😢
@sadiulhakim7814
@sadiulhakim7814 2 месяца назад
Thanks
@Mago77_
@Mago77_ Год назад
Amazing!
@useruser15734
@useruser15734 Год назад
very cool explanation! Will there be more JavaScript content? will there be any JavaScript tutorials or maybe you will understand the algorithms and Data Structures in JavaScript? And yet, can I contact you personally, write to you?
@KennyYipCoding
@KennyYipCoding Год назад
Yes, there will be more JavaScript content in the future. Currently I’m just taking some time to focus on Java so that I can expand my content to those who prefer coding in Java. But I will continue to upload JS content
@KennyYipCoding
@KennyYipCoding Год назад
Unfortunately, I don’t do personal one on ones but I usually reply to comments/questions on my videos
@useruser15734
@useruser15734 Год назад
please tell me where did you learn javascript? maybe you can advise some literature on this programming language to read?! you really are the best at explaining anyone I've seen on RU-vid!!!!
@tayyabahamed3736
@tayyabahamed3736 Месяц назад
The code compiles and interprets but it doesnt give the output🥲 any solution??
@KennyYipCoding
@KennyYipCoding Месяц назад
I’m not sure what you’re referring to
@junaidsultanxyz
@junaidsultanxyz Месяц назад
did u set the visibility of ur jframe to true ?
@olehliashyk6988
@olehliashyk6988 9 месяцев назад
Why my Inteliji IDE has not see "tile"? on 12m14sec. Help me plz!!!!
@olehliashyk6988
@olehliashyk6988 9 месяцев назад
How to fix it?
@GodStories1306
@GodStories1306 Год назад
In java compiler main class" Public static void main (String [] args ) not found error is getting ?. Solution plz🙏
@KennyYipCoding
@KennyYipCoding Год назад
Are you using vs code?
@GodStories1306
@GodStories1306 Год назад
@@KennyYipCoding . No i am not using vs code... Will it work on it???
@KennyYipCoding
@KennyYipCoding Год назад
@@GodStories1306 no, it’s not necessary, but do you have a file with the main function?
@dannita246
@dannita246 8 месяцев назад
does this code work in ide on cellphone? like Jvdroid?
@ArrowO_76
@ArrowO_76 18 дней назад
I using Replit java on phone and it keeps come up with an errors! Am i doing something wrong? Is the video wrong? What is going on?! 😭
@KennyYipCoding
@KennyYipCoding 18 дней назад
You should code in a proper environment, there’s probably limitations coding on a website, especially on a phone
@KennyYipCoding
@KennyYipCoding 18 дней назад
Also you should read the errors, they tell you what’s wrong
@ArrowO_76
@ArrowO_76 18 дней назад
@@KennyYipCoding they dont tell me much sadly
@GodStories1306
@GodStories1306 Год назад
Why I can't see code on your site????
@KennyYipCoding
@KennyYipCoding Год назад
The GitHub link is in the video description
@user-Red_Haired1984
@user-Red_Haired1984 8 месяцев назад
playerX ? playerO : playerX; I've never seen this kind of code before. what is that mean? sorry, im a begginer of Java.
@KennyYipCoding
@KennyYipCoding 8 месяцев назад
it is the ternary operator syntax, you can mentally read the syntax like so: currentPlayer = is (currentPlayer == playerX) ? set to playerO : else set to playerX this syntax is shorthand for the following: if (currentPlayer == playerX) { currentPlayer = playerO; } else { currentPlayer = playerX; }
@user-Red_Haired1984
@user-Red_Haired1984 8 месяцев назад
@@KennyYipCoding Thank you for the explanation!
Далее
Code your FIRST GAME in Java
32:23
Просмотров 11 тыс.
Tic Tac Toe Game in Java - Full Tutorial with Source
51:39
Школьник угомонил бандита!
01:00
Code Flappy Bird in Java
54:02
Просмотров 87 тыс.
Java tic tac toe game ⭕
30:00
Просмотров 289 тыс.
Tic Tac Toe Java Game in Under 15 Minutes
17:16
Просмотров 107 тыс.
ASMR Programming - Flappy Bird - No Talking
1:15:51
Просмотров 849 тыс.
Code Black Jack in Java
58:39
Просмотров 31 тыс.
Java calculator app 🖩
34:36
Просмотров 428 тыс.
Java snake game 🐍
43:30
Просмотров 1,5 млн
Школьник угомонил бандита!
01:00