I Built Two GAMES with ChatGPT So Quick

Ғылым және технология

In this video I show how I build snake and flappy bird with Java using ChatGPT.
OpenAI just released the new model called ChatGPT 4 and it is going to blow your mind. Seriously.
Enjoy.
#chatgpt4 #openai #java
Don't Forget to
===========================================
💯 Subscribe to Amigoscode - bit.ly/2HpF5V8
💯 Courses Available for free here - amigoscode.com/courses
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
⭐ Table Of Contents ⭐
===========================================
00:00 - Intro
00:27 - Snake
03:36 - Flappy Bird
06:12 - Outro
🙊 Here are the goods for all my videos video 🙊
► Recommended Books
===========================================
- Clean Code - amzn.to/2UGDPlX
- HTTP: The Definitive Guide - amzn.to/2JDVi8s
- Clean Architecture - amzn.to/2xOBNXW
► Computer and Monitor
===========================================
- New Apple MacBook Pro - amzn.to/3464Mmn
- Dell 27 INCH Ultrasharp U2719D Monitor - amzn.to/2xM3nW1
- Double Arm Stand Desk Mount - amzn.to/3aYKKfs
- USB C Hub Multiport Adapter - amzn.to/2Jz7NlL
► Camera Gear
=============================================
- Sony ILCE7M3B Full Frame Mirrorless Camera - amzn.to/346QIJn
- Sigma 16 mm F1.4 DC DN - amzn.to/2wbic3Q
- Sigma 33B965 30 mm F1.4 DC DC - amzn.to/39G37Fd
► IDE & Tools I use for coding 💻 🎒
===========================================
- ITerm
- VsCode
- GoLand
- IntelliJ Ultimate
- Sublime
P.S
===========================================
💯 Don't forget to subscribe | bit.ly/2HpF5V8
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
💯 Follow me on Instagram | bit.ly/2TSkA9w
❤️ Thanks for watching

Пікірлер: 91

  • @shehzadamalang969
    @shehzadamalang969 Жыл бұрын

    I also never expect this 😱😱😱 OMG this is super

  • @lesvanbelkum1903
    @lesvanbelkum1903 Жыл бұрын

    @Amigoscode after you wrote the code in IntelliJ, what did you run the code in to get it to play?

  • @tadeo_portillo

    @tadeo_portillo

    Жыл бұрын

    F6

  • @NayyarAbbas-sh1vw
    @NayyarAbbas-sh1vw Жыл бұрын

    Gaming and software companies absolutely salivating seeing AI get better at code

  • @yntkts3529
    @yntkts3529 Жыл бұрын

    ASSALAMUALAIKUM......🙏 SALAM FROM INDONESIA CITIZEN I LOVE YOU BROTHER. 🙏 You are my motivation because I am after graduating from university I can work as a COMPUTER SCIENCE worker AND I hope to be able to WORK IN EUROPE LIKE YOU IN THE UK ONCE AGAIN THANK YOU FOR THE ONLINE EDUCATION....... 😎🙏 I hope you continue to be a useful and wealthy person. btw I SUBSCRIBE YOU OLD HEHEH 😅🙏 I WOULD GO ASSALAMUALAIKUM 👋

  • @IcaroTargino123
    @IcaroTargino123 Жыл бұрын

    "The snake is growing now" kkkkkk... Elementary School just won't leave me

  • @lukten
    @lukten Жыл бұрын

    Perfect for EA sports games or COD franchise where you can ask the AI to update the graphics and or add a team or weapon! BAM

  • @Apopjak
    @Apopjak Жыл бұрын

    I started programming recently, now I dont even know if it is worth it to continue :D

  • @kundaimusindo5658

    @kundaimusindo5658

    Жыл бұрын

    you should continue, just make sure you know how best take advantage of ChatGPT

  • @NayyarAbbas-sh1vw

    @NayyarAbbas-sh1vw

    Жыл бұрын

    nah, programmers are all sick rn

  • @onurislak

    @onurislak

    Жыл бұрын

    you are lucky you can learn a lot of things from chat gpt4.

  • @sainishwanth1477

    @sainishwanth1477

    Жыл бұрын

    ChatGPT ain't replacing anyone, definitely nobody who's a good programmer. The thing can only scrape whatever you provide it with, it has 0 logical thinking. Have u seen it's leetcode performace? It can barely solve new medium problems, anything that came out after 2021, it fails miserably at, it's code is worse than a joke. Your average dev can solve them if given time. Why? Because we can think logically, AI's won't come close to that for a while, if ever since they can never be sentient. Human touch will always be needed in any field where new problems arise everyday and one needs to solve them logically. At the end of the day it will always be an assistant and nothing else.

  • @GFunkEra1992

    @GFunkEra1992

    Жыл бұрын

    guys let's be honest, I am a junior dev with a long road of learnig ahead of me but chat gpt is not even in it's final form. maybe in a decade even citzen developer would be able to create anything complex with programming. Coding is evolving and you rather evolve with your time or stay behind. Obviously if you can be very good in a couple of years that's great but there is no deniying that at some point chat gpt is going to take over.

  • @LesserKnownAJ
    @LesserKnownAJ Жыл бұрын

    imagine Nelson doing gaming streams 😂

  • @Mac1355
    @Mac1355 Жыл бұрын

    amazing :D

  • @shashishekhar----
    @shashishekhar---- Жыл бұрын

    Chatgpt stuff aside, Nelson you are stil the coolest 😎

  • @_wizard123
    @_wizard123 Жыл бұрын

    do i really need to practice coding ever again ?? fuck i spent a long time studying coding and now u can pull out codes in a minute

  • @sismiwoolf4786

    @sismiwoolf4786

    Жыл бұрын

    Pas poussé le bouchon trop loin, tu dois comprendre le code qu'il te retourne, tu gagne du temps de frappe avec le risque du style infligé, qui oblige à estimer, si l'on s'investi ou revenir sur une autre solution.

  • @ataiabdiev2355
    @ataiabdiev2355 Жыл бұрын

    idea for the next video : Chat application using WebSockets

  • @compilejs110
    @compilejs110 Жыл бұрын

    I am still waiting for him to say, "ok guys this was joke, chatGPT can give some code to create game but there will some error you and need to fix it and Java dev job is not in danger."

  • @diegov9799
    @diegov9799 Жыл бұрын

    will be a good tool for the programmers and will change our day to day. An idea for a video will be how a programmer can be take advantage of chatgtp.

  • @JorgetePanete

    @JorgetePanete

    Жыл бұрын

    gpt*

  • @dd1.d
    @dd1.d Жыл бұрын

    every time I asked anything about java like errors or strange behaviors and how to solve them, it failed. also not good at writing tests. it wont cover every possibilities but generally it helps a lot. it is like smart search engine. well let's just not forget, these ai stuff are tools not replacements

  • @puremindmin349
    @puremindmin349 Жыл бұрын

    AI - image of beast

  • @varishtyagi1469
    @varishtyagi1469 Жыл бұрын

    Hii Everyone I am in second year and I love coding before launch chatgpt because my motivation break into many tiny pices. So i am very confuse that i continueue coding or not because chatgpt probabily replace programmer job and definitely it decrease huge number of developers job.What i decide?

  • @mehdi179
    @mehdi179 Жыл бұрын

    Machallah. Nice. I use chatgpt with reactjs and express projects ;) Nelson Jamal :)

  • @86Calikidd
    @86Calikidd Жыл бұрын

    As a channel that markets itself (and your supplemental products) toward Jr. Developers, I find this a bit counterintuitive, and possibly discouraging to your ideal audience. Perhaps a follow-up detailing why it's still worth it to learn coding in a post-ChatGPT world could be useful?

  • @hakanwz

    @hakanwz

    Жыл бұрын

    Maybe, but that would be a good thing right? Maybe it's better they don't start becoming a developer if it means they will be jobless after 5 years

  • @86Calikidd

    @86Calikidd

    Жыл бұрын

    @@hakanwz I see your point. That said, how does furthering that view help this channel? It seems to me that the end of that career path would have a similar effect on the value proposition of this channel and those like it.

  • @JorgetePanete

    @JorgetePanete

    Жыл бұрын

    The same way you have to learn math even if it's done by a calculator

  • @abelmengesha3773
    @abelmengesha3773 Жыл бұрын

    ChatGPT would be a thing only if you can give it your own game idea and then it brings it to life. There're thousands of Snake and Flappy bird game clones online, which GPT's training data is aware of. No doubt that A.I has evolved a lot though. Let's not forget just a year ago, A.I used to confuse Obama for a cat. 🤣

  • @schoolofdank5736

    @schoolofdank5736

    Жыл бұрын

    AI has been in development in the 90s just because someone trained their ML to confuse the prediction of a person is a perfectly normal for a program that is trying to literally replicate human learning.

  • @Total-Rock
    @Total-Rock Жыл бұрын

    I am learning Java now in my study's can give a tips

  • @abdulfatorma348
    @abdulfatorma348 Жыл бұрын

    Amazing sir but how do install it on a windows computer

  • @iankamandew9777
    @iankamandew9777 Жыл бұрын

    whatsbthe future like for programmers

  • @shehzadamalang969
    @shehzadamalang969 Жыл бұрын

    Please make some more videos about ChatGPT please please please

  • @mykhailo6919
    @mykhailo6919 Жыл бұрын

    Tried to create tree vue for vue3. Not to much help

  • @KoAlmaskhan
    @KoAlmaskhan Жыл бұрын

    now we just need 3D animation makers and thats all.

  • @abbosbey9534
    @abbosbey9534 Жыл бұрын

    will chatgpt put developers whithout of work? ?? !! thanks for answer

  • @EdrisRanjbar
    @EdrisRanjbar Жыл бұрын

    cool

  • @galaxian_hitchhiker
    @galaxian_hitchhiker Жыл бұрын

    Thank god I’m in embedded systems that you need to be more specific for the hardware and the system you are working on. So I still have time to be replaceable by an ai. 😅

  • @samad8906
    @samad8906 Жыл бұрын

    Can u pls provide the code , it'll really be help full thankyou

  • @onebigsnowball
    @onebigsnowball Жыл бұрын

    It's funny how he emphasizes the fact that it's java even though the original flappy bird was written in java and a lot of the official snake games too

  • @pisky5067

    @pisky5067

    Жыл бұрын

    And biggest game of all time was written in Java...

  • @user-gppIIhgfllujd
    @user-gppIIhgfllujd Жыл бұрын

    @Amigoscode Assalamu alaikum wa rahmatullahi wa barakatu brother! I have a question, how to start the path from scratch without entering the university? I want to study Embedded Systems Development. I don’t know what to study, how to study .... May ALLAH bless you

  • @wilkyarny3012
    @wilkyarny3012 Жыл бұрын

    We are all deprecated...I just started and it's already the end

  • @lapcell
    @lapcell Жыл бұрын

    😂 fun ... and unbelevable at same time

  • @vasiadrobyshevskiy9081
    @vasiadrobyshevskiy9081 Жыл бұрын

    wow

  • @17_hariprasath.j41
    @17_hariprasath.j41 Жыл бұрын

    Which software do you use to write code. 🙂

  • @arefsa6

    @arefsa6

    Жыл бұрын

    IntelliJ IDEA

  • @user-il6eb1om3q
    @user-il6eb1om3q Жыл бұрын

    I love copy code

  • @sudegul9975
    @sudegul9975 Жыл бұрын

    it is not a new thing you can also do the same thing by using chatgpt 3

  • @benorim
    @benorim Жыл бұрын

    We’re screwed

  • @messengercreator
    @messengercreator7 ай бұрын

    and I'll challenge u AI CHAT DEEPAI only create whole game

  • @user-vj5fo2ef1c
    @user-vj5fo2ef1c Жыл бұрын

    of two

  • @jop4846
    @jop4846 Жыл бұрын

    No!! this it the type of things the are scary amazing. but yeah 😔 😔.

  • @Abhinav-gr1bq
    @Abhinav-gr1bq Жыл бұрын

    source code?

  • @user-ds8uf1et9p
    @user-ds8uf1et9p Жыл бұрын

    Well, we are finished

  • @semilife
    @semilife Жыл бұрын

    This is the future, embrace it. I generated a similar set of code using chatgpt 3.5 and simply dropped it into a java IDE, compiled and ran as is. Worked straight off. Amazing. Heres the java source code it made for me, other than re-ording of curly braces this as is import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.ArrayList; import java.util.Random; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.Timer; public class Snake extends JPanel implements ActionListener, KeyListener { private static final long serialVersionUID = 1L; private static final int WIDTH = 500; private static final int HEIGHT = 500; private static final int DOT_SIZE = 10; private static final int RAND_POS = 49; private static final int DELAY = 100; private static final int MAX_DOTS = 900; private static final int x[] = new int[MAX_DOTS]; private static final int y[] = new int[MAX_DOTS]; private int dots; private int apple_x; private int apple_y; private char direction = 'R'; private boolean inGame = true; private Timer timer; private int score = 0; public Snake() { addKeyListener(this); setBackground(Color.black); setFocusable(true); setPreferredSize(new Dimension(WIDTH, HEIGHT)); initGame(); } private void initGame() { dots = 1; for (int i = 0; i x[i] = 50 - i * DOT_SIZE; y[i] = 50; } locateApple(); timer = new Timer(DELAY, this); timer.start(); } @Override protected void paintComponent(Graphics g) { super.paintComponent(g); doDrawing(g); } private void doDrawing(Graphics g) { if (inGame) { g.setColor(Color.red); g.fillOval(apple_x, apple_y, DOT_SIZE, DOT_SIZE); for (int i = 0; i if (i == 0) { g.setColor(Color.green); } else { g.setColor(Color.yellow); } g.fillOval(x[i], y[i], DOT_SIZE, DOT_SIZE); } } else { gameOver(g); } } private void gameOver(Graphics g) { String msg = "Game Over"; g.setColor(Color.white); g.drawString(msg, (WIDTH - g.getFontMetrics().stringWidth(msg)) / 2, HEIGHT / 2); timer.stop(); } private void checkApple() { if ((x[0] == apple_x) && (y[0] == apple_y)) { dots++; locateApple(); } } private void move() { for (int i = dots; i > 0; i--) { x[i] = x[(i - 1)]; y[i] = y[(i - 1)]; } switch (direction) { case 'U': y[0] -= DOT_SIZE; break; case 'D': y[0] += DOT_SIZE; break; case 'L': x[0] -= DOT_SIZE; break; case 'R': x[0] += DOT_SIZE; break; } } private void checkCollision() { for (int i = dots; i > 0; i--) { if ((i > 4) && (x[0] == x[i]) && (y[0] == y[i])) { inGame = false; } } if (y[0] >= HEIGHT) { inGame = false; } if (y[0] inGame = false; } if (x[0] >= WIDTH) { inGame = false; } if (x[0] inGame = false; } if (!inGame) { timer.stop(); } } private void locateApple() { Random rand = new Random(); apple_x = rand.nextInt(RAND_POS) * DOT_SIZE; apple_y = rand.nextInt(RAND_POS) * DOT_SIZE; } @Override public void actionPerformed(ActionEvent e) { if (inGame) { checkApple(); checkCollision(); move(); } repaint(); } @Override public void keyPressed(KeyEvent e) { int key = e.getKeyCode(); if ((key == KeyEvent.VK_LEFT) && (direction != 'R')) { direction = 'L'; } if ((key == KeyEvent.VK_RIGHT) && (direction != 'L')) { direction = 'R'; } if ((key == KeyEvent.VK_UP) && (direction != 'D')) { direction = 'U'; } if ((key == KeyEvent.VK_DOWN) && (direction != 'U')) { direction = 'D'; } } @Override public void keyReleased(KeyEvent e) { } @Override public void keyTyped(KeyEvent e) { } public static void main(String[] args) { JFrame frame = new JFrame("Snake"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setResizable(false); frame.add(new Snake()); frame.pack(); frame.setLocationRelativeTo(null); frame.setVisible(true); } }

  • @lionofzion9284
    @lionofzion9284 Жыл бұрын

    I don't really understand why you are promoting ChatGPT every time? I thought you would like to teach people how to think by themselves on programming.

  • @one_byte_nodirbek
    @one_byte_nodirbek Жыл бұрын

    I hated it. I may loose my job in future...

  • @warclan5429
    @warclan5429 Жыл бұрын

    We are so fired as programmers!!

  • @athul_antony7212
    @athul_antony7212 Жыл бұрын

    🇮🇳

  • @PianoTortuga
    @PianoTortuga Жыл бұрын

    I don"t know if this is the best time to learn programming or the worst time, AI will take over the world. With this tool you can write a program in minutes that would take you days to write otherwise.

  • @NathanHedglin

    @NathanHedglin

    Жыл бұрын

    That is already true. Atari games took hundreds of dev hours to make. I can make them in a day by myself. Tools get more powerful but the problems also get more difficult.

  • @mohammedisarezwani
    @mohammedisarezwani Жыл бұрын

    New Disappointment for programmers especially new ones

  • @patricioaguirre9388
    @patricioaguirre9388 Жыл бұрын

    Bye programming jobs 😂

  • @SheelByTorn

    @SheelByTorn

    Жыл бұрын

    not with that shitty unoptimized implementation 😂 maybe in 30 years

  • @Blitzfanger
    @Blitzfanger Жыл бұрын

    У тя там грязно

  • @luigicorvino6166
    @luigicorvino6166 Жыл бұрын

    I hate this shit, can't even be sure I'll keep my job after spending my life learning this stuff

  • @amitkumargupta-
    @amitkumargupta- Жыл бұрын

    this is the clickbait all youtubers are doing to increase engazement.

  • @hakanwz

    @hakanwz

    Жыл бұрын

    How is this clickbait, he shows what is in the title

  • @mechwarrior4793
    @mechwarrior4793 Жыл бұрын

    GPT is nothing more than a glorified search engine, it’s just a model trained on data. Good as a tool, not as a replacement

  • @TheBlackManMythLegend
    @TheBlackManMythLegend Жыл бұрын

    on a side note what happen to your teeth

  • @fluex4046
    @fluex4046 Жыл бұрын

    i hate chatgpt :(

  • @messengercreator

    @messengercreator

    7 ай бұрын

    u don't worry about that ur problem is answer now I'll introducing AI CHAT DEEPAI the AI CHAT DEEPAI is so powerful and much better than OPENAI since start 2015-2018 and u can show ur picture and video and anything u want

  • @DC-yw5yg
    @DC-yw5yg Жыл бұрын

    Lmfao at 2:47

  • @user-oz9lw5rr6u
    @user-oz9lw5rr6u Жыл бұрын

    Hi, Amigos, Can I repost your video to a Chinese video platform, such as bilibli..., and I will indicate the original video link.

Келесі