Java Project Tutorial - How To Create Squid Game Glass Bridge In Java NetBeans [ With Source Code ]

  Рет қаралды 74,936

1BestCsharp blog

1BestCsharp blog

Күн бұрын

Пікірлер: 24
@Domo22xD
@Domo22xD 3 жыл бұрын
Here is console version: import java.util.Random; import java.util.Scanner; public class JumpGame { private static final Random random = new Random(); private static final Scanner sc = new Scanner(System.in); public static void main(String[] args) { String input; int life = 10; int goal = 10; int glass; while(goal > 0 || life > 0){ // input = player(); input = ai(); glass = rand(); if(input.equals("left") && glass == 0){ goal--; display(life,goal); } else if(input.equals("right") && glass == 1){ goal--; display(life,goal); } else { life--; display(life,goal); } } } private static void display(int life, int goal){ if(life == 0 || goal == 0){ System.out.println("Game end!"); System.out.println("People left: " + life); System.out.println("Moves left: " + goal); System.exit(0); } else { System.out.println("People left: " + life); System.out.println("Moves left: " + goal); } } private static int rand(){ return random.nextInt(2); } // Player private static String player(){ return sc.next(); } // AI bot private static String ai(){ String direction; int AIMove = rand(); if(AIMove == 0){ direction = "left"; } else { direction = "right"; } return direction; } }
@ThaRoboForm
@ThaRoboForm 3 жыл бұрын
Good instructions. It's easy to follow. Awesome
@the7avadabetheme440
@the7avadabetheme440 3 жыл бұрын
i love your channel,Great video! Thank you
@hubcreek6957
@hubcreek6957 3 жыл бұрын
Super good... Subscribed. Thanks
@milaazul712
@milaazul712 3 жыл бұрын
I liked it so much.... thank you
@delaaprilianti3089
@delaaprilianti3089 2 жыл бұрын
hello i have followed it correctly, but my jbutton play again is not working please help
@folaadtv9943
@folaadtv9943 3 жыл бұрын
omg😇 awesome work
@yosepsetiawan7598
@yosepsetiawan7598 2 жыл бұрын
can you help me to send the source code
@jhonreybalbastro4535
@jhonreybalbastro4535 2 жыл бұрын
Hi Sir. Good day! I'm a Computer Science student and I have one project to submit to my professor. The project is to make or create a simple game. So, I already found your game and I really like it but my problem is I can't get the source code of it. Can I request to get the source code of your nice game? Thank you so much sir. I'm looking forward to hear from you.
@amnaarshad1892
@amnaarshad1892 2 жыл бұрын
where do i find the images which is used in this game?
@1BestCsharpblog
@1BestCsharpblog 2 жыл бұрын
from pixabay
@amnaarshad1892
@amnaarshad1892 2 жыл бұрын
It was a great video but my play again button is not working i’ll be very great full if you can help me.
@impekatemplates2849
@impekatemplates2849 3 жыл бұрын
Wow i love it
@norauretemplates2570
@norauretemplates2570 3 жыл бұрын
Jesus!!!!! Love it
@yosepsetiawan7598
@yosepsetiawan7598 2 жыл бұрын
can you help me to send the source code
@e-series5961
@e-series5961 3 жыл бұрын
13
@mohamedzoghpy7682
@mohamedzoghpy7682 3 жыл бұрын
brllant
@jhonreybalbastro4535
@jhonreybalbastro4535 2 жыл бұрын
Hi sir, I already done following your video but it seems the jLabels (Tiles doesn't have footprint when I clicked it.) I already send you a message in your Instagram account and I already followed you there. Also, I already subscribed to your KZbin channel. Please help me sir. Thank you so much.
@jhonreybalbastro4535
@jhonreybalbastro4535 2 жыл бұрын
Hi Sir. Good day! I'm a Computer Science student and I have one project to submit to my professor. The project is to make or create a simple game. So, I already found your game and I really like it but my problem is I can't get the source code of it. Can I request to get the source code of your nice game? Thank you so much sir. I'm looking forward to hear from you.
@1BestCsharpblog
@1BestCsharpblog 2 жыл бұрын
source code link in the video description
@jhonreybalbastro4535
@jhonreybalbastro4535 2 жыл бұрын
​@@1BestCsharpblog Can you help me sir because I already created and design it using JFRAME not NetBeans. We are using JFrame to design and Jcreator to edit the code of it. Honestly, I'm not smart in coding sir because I'm new and I'm still learning. I hope you can able to help me this time sir. Thank you very much. :)
@jhonreybalbastro4535
@jhonreybalbastro4535 2 жыл бұрын
Can you help me sir because I already created and design it using JFRAME not NetBeans. We are using JFrame to design and Jcreator to edit the code of it. Honestly, I'm not smart in coding sir because I'm new and I'm still learning. I hope you can able to help me this time sir. Thank you very much. :)
@jhonreybalbastro4535
@jhonreybalbastro4535 2 жыл бұрын
Sir can you please help on my project. I’ll just need to pass my subject.😢
@jhonreybalbastro4535
@jhonreybalbastro4535 2 жыл бұрын
Hi sir, I already done following your video but it seems the jLabels (Tiles doesn't have footprint when I clicked it.) I already send you a message in your Instagram account and I already followed you there. Also, I already subscribed to your KZbin channel. Please help me sir. Thank you so much.
Making Minecraft from scratch in 48 hours (NO GAME ENGINE)
16:38
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Squid Game vs Hamsterious: All Amazing Challenge
13:52
Hamsterious
Рет қаралды 61 МЛН
SQUID GAME, but the Roles are Reversed (Cartoon Animation)
11:55
GameToons
Рет қаралды 18 МЛН
Google Gemini Tried Chess. HUGE Mistake.
20:44
GothamChess
Рет қаралды 479 М.
Beating 5 Scam Arcade Games with Science
18:05
Mark Rober
Рет қаралды 100 МЛН