I Built Two GAMES with ChatGPT So Quick

Поделиться
HTML-код
  • Опубликовано: 8 июн 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

  • @Mac1355
    @Mac1355 Год назад

    amazing :D

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

  • @shashishekhar----
    @shashishekhar---- Год назад

    Chatgpt stuff aside, Nelson you are stil the coolest 😎

  • @NayyarAbbas-sh1vw
    @NayyarAbbas-sh1vw Год назад +3

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

  • @LesserKnownAJ
    @LesserKnownAJ Год назад +1

    imagine Nelson doing gaming streams 😂

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

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

  • @mehdi179
    @mehdi179 Год назад

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

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

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

  • @ataiabdiev2355
    @ataiabdiev2355 Год назад

    idea for the next video : Chat application using WebSockets

  • @puremindmin349
    @puremindmin349 Год назад +4

    AI - image of beast

  • @IcaroTargino123
    @IcaroTargino123 Год назад

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

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

  • @iankamandew9777
    @iankamandew9777 Год назад +1

    whatsbthe future like for programmers

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

  • @Total-Rock
    @Total-Rock Год назад +1

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

  • @EdrisRanjbar
    @EdrisRanjbar Год назад

    cool

  • @abbosbey9534
    @abbosbey9534 Год назад

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

  • @abdulfatorma348
    @abdulfatorma348 Год назад

    Amazing sir but how do install it on a windows computer

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

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

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

  • @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-il6eb1om3q
    @user-il6eb1om3q Год назад

    I love copy code

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

  • @KoAlmaskhan
    @KoAlmaskhan Год назад +1

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

  • @vasiadrobyshevskiy9081
    @vasiadrobyshevskiy9081 Год назад

    wow

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

  • @17_hariprasath.j41
    @17_hariprasath.j41 Год назад

    Which software do you use to write code. 🙂

    • @arefsa6
      @arefsa6 Год назад +1

      IntelliJ IDEA

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

  • @wilkyarny3012
    @wilkyarny3012 Год назад +2

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

  • @sudegul9975
    @sudegul9975 Год назад +2

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

  • @benorim
    @benorim Год назад

    We’re screwed

  • @user-vj5fo2ef1c
    @user-vj5fo2ef1c Год назад

    of two

  • @Abhinav-gr1bq
    @Abhinav-gr1bq Год назад

    source code?

  • @messengercreator
    @messengercreator 7 месяцев назад

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

  • @athul_antony7212
    @athul_antony7212 Год назад +1

    🇮🇳

  • @jop4846
    @jop4846 Год назад

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

  • @one_byte_nodirbek
    @one_byte_nodirbek Год назад +1

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

  • @user-ds8uf1et9p
    @user-ds8uf1et9p Год назад

    Well, we are finished

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

  • @patricioaguirre9388
    @patricioaguirre9388 Год назад +1

    Bye programming jobs 😂

    • @SheelByTorn
      @SheelByTorn Год назад +1

      not with that shitty unoptimized implementation 😂
      maybe in 30 years

  • @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);
    }
    }

  • @warclan5429
    @warclan5429 Год назад +1

    We are so fired as programmers!!

  • @Blitzfanger
    @Blitzfanger Год назад

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

  • @mohammedisarezwani
    @mohammedisarezwani Год назад +1

    New Disappointment for programmers especially new ones

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

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

  • @luigicorvino6166
    @luigicorvino6166 Год назад

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

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

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