I tried ChatGPT and now we have Poker game for ESP32

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
jet GPT has been with us for some time I've heard stories that programmers are no longer needed that artificial intelligence has replaced them I'm not a professional programmer but programming this development board s is my side job so I wanted to check can artificial intelligence write code for this fellow the result of my research is this poker game on a breadboard when I was younger there were they were similar machines in bars this is not Texas Hold'em this is simple poker out of five cards I have to choose the cards I will hold using these push buttons and after the other cards have been replaced a check is made to see if I have won anything and if so points are added to my creditor score if I increase the stake or bet I will also increase points I can win artificial intelligence helped helped me in making this game but the question is how much you will find that very soon but first let's see who is sponsor of this video sponsor of this video is PCB way and our sponsor messages this project is too cool to be on birdboard and it deserves a custom PCB and PCB way is best choice for that task they produced all my pcbs and I hope they will produce this one don't forget to check their site because here you can find many interesting projects some of them are even mine and you can order your pcbs or they have also CNC or 3D printing service in this video I will tell you how I made this by the way this is currently my favorite board Lilly goatee display S3 with an AMOLED screen so this is an esp32 board and I use Arduino IDE to program it in the description you can find links and instructions how to use this board and of course don't forget to subscribe to this awesome Channel and if you want you can support my work by buying me a coffee the links are in the video description so I wanted to make a poker game I needed pictures of playing cards unfortunately I couldn't find uh find a free deck of cards so I bought a pictures on Etsy after a few hours of editing my pictures um they were ready in this folder I have all the cards stored in the correct size and in correct order I converted all Cards into code and store them in this large array each card is represented as a number card 0 is 2 of clubs card one is three of clubs and so on and then I decided that programming game logic would be good task for chat GPT and now I will show you my conversation with jet GPT I will not show whole conversation because it is too long we have a little fight and uh disagreement but overall I am quite happy how this work so we agreed about deck about uh cards order of cards and here are basic basic functions how which will shuffle my deck and pick five random cars cards for my hand no here I ask can you add function that deal five cards and here it is even with my bad English and a simple words chat GPT was able to understand what I want then I said great can you add function I want to pick which cars I want to held and here is new function now I want to replace cards that are not held and print my new hand and I have new uh new function and whole code during the conversation I was testing my code in a in online simulator I don't know so for example here was code you your current hand is 10 of space ten of clubs three of diamonds nine of Hearts ten of diamonds so I have one two three tens uh first select the cards you want to hold zero is no one is yes I want to hold first card I want to hold second card zero because third car I don't need four card I don't need and last card I want to hold one your new head is 10 of Spades 10 clubs King of Clubs two of clubs ten of diamonds and I have three of kinds of three tens so this was part which work worked great then I wanted to add Jokers as wild card but this was a little too complicate and after uh after some time I decided that I will not use Jokers and then I um did I ask it can I can you make me same code for Arduino IDE and here it is but now I am uploading that code to every time to real Arduino board and use a news serial monitor don't make sense so I also use the simulator called whoa creep I don't know how pronounce that and here is code and it works same your hand seven of Hearts nine and I need choose which to hold and this is called I used to make everything else so our chat GPT helped me with these functions with Shuffle functions select card to hold and most importantly this is I would lose so much time to make this function evaluate hand to check my winning do I have three of kind four of kind uh two pairs uh straight or Flash so these are functions which which are very hard to program because because cards are represented as s numbers so this is what chat GPT make made and this is what I made and now conclusion I refuse to use this tool for a long time I love to solve my problems myself but now I kind of like it hardest part of this project is solved by chat GPT function which will check what I have in hand could I make it myself yes but I would need hours to figure it out this way it was finished in a few seconds is this tool powerful yes it is can it replace programmers no weekend you will still need to do your part if you want to if you want your software to work will I use this in future maybe I will thank you please tell me what you think in the comments do you use chat GPT if you are new here don't forget to subscribe thank you and goodbye
Info
Channel: Volos Projects
Views: 13,061
Rating: undefined out of 5
Keywords:
Id: DS4HSX1Hso0
Channel Id: undefined
Length: 10min 30sec (630 seconds)
Published: Wed Sep 06 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.