I Built Two GAMES with ChatGPT So Quick

Поділитися
Вставка
  • Опубліковано 31 тра 2024
  • 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 Рік тому +1

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

  • @yntkts3529
    @yntkts3529 Рік тому +1

    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 👋

  • @NayyarAbbas-sh1vw
    @NayyarAbbas-sh1vw Рік тому +3

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

  • @Apopjak
    @Apopjak Рік тому +51

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

    • @kundaimusindo5658
      @kundaimusindo5658 Рік тому +33

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

    • @NayyarAbbas-sh1vw
      @NayyarAbbas-sh1vw Рік тому +4

      nah, programmers are all sick rn

    • @onurislak
      @onurislak Рік тому +5

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

    • @sainishwanth1477
      @sainishwanth1477 Рік тому +20

      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 Рік тому +1

      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.

  • @shashishekhar----
    @shashishekhar---- Рік тому

    Chatgpt stuff aside, Nelson you are stil the coolest 😎

  • @varishtyagi1469
    @varishtyagi1469 Рік тому +1

    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 :)

  • @IcaroTargino123
    @IcaroTargino123 Рік тому

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

  • @LesserKnownAJ
    @LesserKnownAJ Рік тому +1

    imagine Nelson doing gaming streams 😂

  • @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

  • @ataiabdiev2355
    @ataiabdiev2355 Рік тому

    idea for the next video : Chat application using WebSockets

  • @dd1.d
    @dd1.d Рік тому +5

    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

  • @Mac1355
    @Mac1355 Рік тому

    amazing :D

  • @puremindmin349
    @puremindmin349 Рік тому +4

    AI - image of beast

  • @abbosbey9534
    @abbosbey9534 Рік тому

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

  • @86Calikidd
    @86Calikidd Рік тому +5

    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 Рік тому +2

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

  • @iankamandew9777
    @iankamandew9777 Рік тому +1

    whatsbthe future like for programmers

  • @_wizard123
    @_wizard123 Рік тому +8

    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.

  • @Total-Rock
    @Total-Rock Рік тому +1

    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

  • @shehzadamalang969
    @shehzadamalang969 Рік тому

    Please make some more videos about ChatGPT please please please

  • @diegov9799
    @diegov9799 Рік тому +4

    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.

  • @compilejs110
    @compilejs110 Рік тому +1

    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."

  • @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

  • @abelmengesha3773
    @abelmengesha3773 Рік тому +10

    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.

  • @lapcell
    @lapcell Рік тому

    😂 fun ... and unbelevable at same time

  • @mykhailo6919
    @mykhailo6919 Рік тому

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

  • @samad8906
    @samad8906 Рік тому

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

  • @KoAlmaskhan
    @KoAlmaskhan Рік тому +1

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

  • @17_hariprasath.j41
    @17_hariprasath.j41 Рік тому

    Which software do you use to write code. 🙂

    • @arefsa6
      @arefsa6 Рік тому +1

      IntelliJ IDEA

  • @wilkyarny3012
    @wilkyarny3012 Рік тому +2

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

  • @user-il6eb1om3q
    @user-il6eb1om3q Рік тому

    I love copy code

  • @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. 😅

  • @vasiadrobyshevskiy9081
    @vasiadrobyshevskiy9081 Рік тому

    wow

  • @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...

  • @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 < dots; 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 < dots; 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] < 0) {
    inGame = false;
    }
    if (x[0] >= WIDTH) {
    inGame = false;
    }
    if (x[0] < 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);
    }
    }

  • @benorim
    @benorim Рік тому

    We’re screwed

  • @sudegul9975
    @sudegul9975 Рік тому +2

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

  • @user-vj5fo2ef1c
    @user-vj5fo2ef1c Рік тому

    of two

  • @messengercreator
    @messengercreator 7 місяців тому

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

  • @Abhinav-gr1bq
    @Abhinav-gr1bq Рік тому

    source code?

  • @athul_antony7212
    @athul_antony7212 Рік тому +1

    🇮🇳

  • @jop4846
    @jop4846 Рік тому

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

  • @lionofzion9284
    @lionofzion9284 Рік тому +4

    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 Рік тому +1

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

  • @mohammedisarezwani
    @mohammedisarezwani Рік тому +1

    New Disappointment for programmers especially new ones

  • @user-ds8uf1et9p
    @user-ds8uf1et9p Рік тому

    Well, we are finished

  • @Blitzfanger
    @Blitzfanger Рік тому

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

  • @patricioaguirre9388
    @patricioaguirre9388 Рік тому +1

    Bye programming jobs 😂

    • @SheelByTorn
      @SheelByTorn Рік тому +1

      not with that shitty unoptimized implementation 😂
      maybe in 30 years

  • @warclan5429
    @warclan5429 Рік тому +1

    We are so fired as programmers!!

  • @PianoTortuga
    @PianoTortuga Рік тому +1

    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 Рік тому +1

      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.

  • @amitkumargupta-
    @amitkumargupta- Рік тому +2

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

    • @hakanwz
      @hakanwz Рік тому +3

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

  • @luigicorvino6166
    @luigicorvino6166 Рік тому

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

  • @mechwarrior4793
    @mechwarrior4793 Рік тому +1

    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

  • @fluex4046
    @fluex4046 Рік тому

    i hate chatgpt :(

    • @messengercreator
      @messengercreator 7 місяців тому +1

      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

  • @TheBlackManMythLegend
    @TheBlackManMythLegend Рік тому

    on a side note what happen to your teeth

  • @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.

  • @DC-yw5yg
    @DC-yw5yg Рік тому

    Lmfao at 2:47