Тёмный

Claude 3.5 Sonnet Projects Tutorial: NEXT LEVEL AI Programming! 

All About AI
Подписаться 158 тыс.
Просмотров 36 тыс.
50% 1

To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/AllAboutAI . You’ll also get 20% off an annual premium subscription.
Claude 3.5 Sonnet Projects Tutorial: NEXT LEVEL AI Programming!
👊 Become a member and get access to GitHub and Code:
/ allaboutai
🤖 Great AI Engineer Course:
scrimba.com/learn/aiengineer?...
🔥 Open GitHub Repos:
github.com/AllAboutAI-YT/easy...
📧 Join the newsletter:
www.allabtai.com/newsletter/
🌐 My website:
www.allabtai.com
Today we use Claude 3.5 Sonnet projects to create a Flappy Bird Boss Battle Game. This is a full tutorial on how i used Claude 3.5 Projects to manage and write the code for the game. The AI Programming feels like next level using Claude 3.5 Sonnet. Check it Out!
00:00 Claude 3.5 Sonnet Projects Intro
02:00 Projects Setup
07:46 Brilliant.org
08:50 Setting up React App
11:08 First Test
12:08 Adding First Sprites and Hitbox
14:36 AI Opponent Setup
19:48 Adding Music and Sounds
24:49 Finishing up the Game
26:51 Playing the Final Game

Наука

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 91   
@NischGTM
@NischGTM 5 дней назад
I'm an OpenAI fan, but Claude is really becoming my goto LLM. It's just so much better
@mc9723
@mc9723 5 дней назад
Be just an AI fan and it's hard to lose!
@scufskin2690
@scufskin2690 4 дня назад
I'm just extremely happy that something like Claude 3.5 has come along, the reaction from OpenAi will be crazy, look at what Claude 3.5 can do, the reaction from Openai will be crazy...
@IAMALLMUSIC
@IAMALLMUSIC 2 дня назад
What about the lack of internet access and the need to provide your cell number to register?
@JieBetaReviews
@JieBetaReviews День назад
Not that strange, Claude is the project of the GPT-3 head of research who quit OpenAI and started his own company called Anthropic!
@abramjones9091
@abramjones9091 4 дня назад
I am not a coder and I'm building a dynamic socioeconomic game with Claude, it's incredible
@AllAboutAI
@AllAboutAI 2 дня назад
Cool! love it :)
@geoxeph
@geoxeph 4 дня назад
I followed your approach and adapted it to make it my own. I created a playable side scroller with controller support too. I used Udio for background music of level, Elevenlabs for sound effects, Ideogram and GIMP for image assets. I did this in just few hours too! 🤯
@AllAboutAI
@AllAboutAI 2 дня назад
Awsome :) love it! thnx for tuning in!
@thenizimexperience9183
@thenizimexperience9183 День назад
@zubbyemodi6356
@zubbyemodi6356 5 дней назад
Nice to see you've unlocked the power of Claude Projects! It's such a productivity multiplier
@AllAboutAI
@AllAboutAI 2 дня назад
yeah, looking forward to exploring more :) tnx for tuning in
@YoreHistory
@YoreHistory 5 дней назад
I was able to make the basics of a traditional roguelike. I am now learning so much using AI as a tutor advisor. Adding features every day so much fun.
@AllAboutAI
@AllAboutAI 2 дня назад
love it :)
@trader548
@trader548 3 дня назад
The real power comes when LLMs like Claude 3.5 Sonnet work together as multiple agent instances. With the agents being connected to tools like IDE, compilers, mid-Journey, etc, the multiple agents can evolve the project development on their own and only need to human to verify their output.
@AllAboutAI
@AllAboutAI 2 дня назад
yeah, will be interesting too see where there this goes :)
@thenizimexperience9183
@thenizimexperience9183 День назад
Yeaaassss ...My thoughts exactly. I can imaging 3 hour would turn into 30 minutes or less. I want to create Fortnite and Counter strike type games.
@kristianlavigne8270
@kristianlavigne8270 8 часов назад
Coming soon 😅🎉❤
@eddybreezy
@eddybreezy 5 дней назад
This was great! Awesome workflow. While I may not work the exact same as you, this illustrates how easy it is for folks to jump in.
@AllAboutAI
@AllAboutAI 2 дня назад
thnx :) glad you enjoyed it!
@TheDjarEl
@TheDjarEl День назад
This is just insane ! thanks for showing all this
@MrGaborKukucska
@MrGaborKukucska 5 дней назад
Thanks for sharing 🎉 Claude with projects is pretty impressive.
@andreialcaza
@andreialcaza 5 дней назад
I like how this project turned out .
@AllAboutAI
@AllAboutAI 2 дня назад
thnx :)
@jarnleikr
@jarnleikr 5 дней назад
Great video, I love the the combo of code and creativity 😀 I have to try this approach for some other games! (In Swift though ;-)
@thelalomorales
@thelalomorales 2 дня назад
you are connecting all kinds of stuff! i love it!
@AllAboutAI
@AllAboutAI 2 дня назад
thnx :)
@Ms.Robot.
@Ms.Robot. 5 дней назад
Another Ai tut masterpiece drops 😮😮😮 sweeet ❗
@lokeshart3340
@lokeshart3340 5 дней назад
It's quite nice with artificats.
@KolTregaskes
@KolTregaskes 2 дня назад
Really great video. I think this demonstrates to us non-coders how easy it is to create code. Thank you very much.
@AllAboutAI
@AllAboutAI 2 дня назад
thnx for tuning in :)
@kaashayee
@kaashayee День назад
When you upload to your knowledge base, does that count against your context window?
@AhmedVonKabs
@AhmedVonKabs 2 дня назад
You nailed it
@edgarl.mardal8256
@edgarl.mardal8256 5 дней назад
Hei, fikk aldri svar fra deg sist gang, men ville høre om du er kjent med rasa, og om du har erfaring med å legge inn NorBERT large module via huggingface? Jeg vil sette opp min AI salgs bot i vapi med rasa, og bruke NorBERT large model ettersom vapi egentelig ikke støtter norsk, men står fast med å få integrering av custome model.
@lokeshart3340
@lokeshart3340 5 дней назад
😂😂 he is so focused while playing.
@AllAboutAI
@AllAboutAI 2 дня назад
haha
@1986xuan
@1986xuan 2 дня назад
I’ve never seen you playing so intensely your own created flappy game at the beginning of the video 😂😂😂
@AllAboutAI
@AllAboutAI 2 дня назад
haha
@grafikaboskanal6779
@grafikaboskanal6779 4 дня назад
Your game reminds me of the game Yie Ar Kung-Fu for the Commodore C64! I hope that it will soon be possible for everyone to create games/programs for the old box
@PaulRichardson_Canada
@PaulRichardson_Canada 5 дней назад
This is only what well see on youtube for a while now. Oh look this is Ai that did this.
@paul1979uk2000
@paul1979uk2000 4 дня назад
I do like what A.I. is allowing us to do, but I think the real game changer is going to be once A.I. tools are integrated into the tools set like programming languages or game engines and so on, more so if it's a specialised A.I. model designed for the given task, which more likely means a locally run model. For now, it all feels experimental and a slap on approach, but once integrated, which will only happen once A.I. is a lot more accessible at a local level, that's the game changer. Fortunately, that's happening, AMD, Intel and ARM's players are setting up the ground works with APU's that have access to a decent amount of A.I. capability, but more importantly, far more memory access, this is important, because if developers are going to integrate A.I. into a lot of core apps that we use, they will only do so once the hardware is there to run it, and are likely only going to do so with locally run models on the hardware as they have more control over it, not to mention security concerns that many will have with online models, especially when working on a project.
@thenizimexperience9183
@thenizimexperience9183 День назад
I've been playing with the idea of GPU mining rig converted just for this purpose. 🦾
@gabrieleferrari2266
@gabrieleferrari2266 3 дня назад
Thanks
@kamelirzouni4730
@kamelirzouni4730 5 дней назад
Thanks, Awesome ! I really liked how you managed 'Project Knowledge'. For me, it's the most difficult part to handle. It would be very beneficial if you could dedicate a video just to this part to optimize interactions and avoid the chat usage quota.
@poisonza
@poisonza 5 дней назад
i dont think there is good solution out there other than calling via api and managing the context directly. I am waiting for open source port of Claude's artifact functionality where we have control over what is sent to llm. something like promt2ui
@kamelirzouni4730
@kamelirzouni4730 5 дней назад
@@poisonza Sure, the API is a solution, but I've read some posts saying they managed to get results with just a few prompts, and from what I've seen, the 'Project Knowledge' part has something to do with it. And for the open source, I completely agree!
@thenizimexperience9183
@thenizimexperience9183 День назад
Yeah this has been my problem. But I didn't even know about this Project side of this. I've just started using Anthropic. I'm like a sponge on it now...lol
@playthisnote
@playthisnote 5 дней назад
It just seems like we could give the api a command list to operate functions. All the same ingredients for a game. It tells you the steps similar each time. With the operation list it would be like a hand shake for agreement. When you make images store them here like this. When you make scripts store them like this. It can come up with idea and as long as it understands how you want to handle the files well everything is auto. With api.
@playthisnote
@playthisnote 5 дней назад
Im starting to think about a “start off” auto game maker with public test function. So basically a community created game. With the fact some human criticism is needed. A platform that can evaluate each section and AI could update according to popular demand. Well every move could be a poll like voting structure from initial idea list to completion.. Ehh sounds time consuming doesn’t it.
@playthisnote
@playthisnote 5 дней назад
As an example, The ai could get used to popular function request. Like the complaint about volume. At that point the ai should notice volume levels and automatically intergrate or atleast have it as a top poll choice to vote on. (Volume level slider)
@thenizimexperience9183
@thenizimexperience9183 День назад
@@playthisnote I'm down for this community building idea❤🦾
@NO-mi5mf
@NO-mi5mf 5 дней назад
Have you tried cursor with Claude tho??
@AllAboutAI
@AllAboutAI 2 дня назад
not yet, will tho :) tnx
@HimanshuChanda
@HimanshuChanda 4 дня назад
This video is lit 🎉
@AllAboutAI
@AllAboutAI 2 дня назад
thnx man :)
@kkollsga
@kkollsga 3 дня назад
Anthropic take my money! OpenAI the ball is in your court…
@thenizimexperience9183
@thenizimexperience9183 День назад
ikr.... I wish I was apart of there in house build team. We need to build a squad.
@TheBuzzati
@TheBuzzati 5 дней назад
I do love Claude 3.5. but they brag about the affordability of the model, and then are much more strict with use limits than gpt4o which is a bummer... I can't really reliably use this for work unless I buy like 5 accounts
@RoeJoganShorties
@RoeJoganShorties 4 дня назад
Isnt buying 5 accounts also worth it? I have never coded before and I build an entire custom webshop using Claude wich wouldve cost me thousands of dollars to implement by a dev.
@TheBuzzati
@TheBuzzati 4 дня назад
@@RoeJoganShorties Yep, probably in the long run. I think at that point I'd just use the API and pay a few hundred dollars per project and just have the peace of mind that it would get done. These are personal projects, btw - I imagine someone using this for their coding job would get away with having it as an assistant when they need it, and not use it as much as me.
@mesopable
@mesopable 4 дня назад
I wonder if AI is able to add juice into the game. Tween animations, particles etc...
@Festivejelly
@Festivejelly 2 дня назад
Hrm I dont seem to have access to projects on my Claude.
@sunnyahmed5935
@sunnyahmed5935 2 дня назад
i am very afraid to see this. i am just learning to code. should i continue to learn coding ? i want to be python full stack developer with react as frontend framework
@thenizimexperience9183
@thenizimexperience9183 День назад
If you use Ai you already are a python full stack developer. React and any other framework.
@micbab-vg2mu
@micbab-vg2mu 5 дней назад
great:)
@testales
@testales 4 дня назад
It might generate even better variable names if you fix the typo in your system prompt. ;-)
@VaibhavShewale
@VaibhavShewale 3 дня назад
claude reading all community opinion
@j0hnc0nn0r-sec
@j0hnc0nn0r-sec 4 дня назад
I was locked out of Claude! Emailed them when it happened 2weeksback and nothing! 🤫 Has anyone else had this problem? How did you resolve?
@cnk8766
@cnk8766 День назад
I want to live in a world where AI is fully developed and very useful for humans. There should be many companies mastering AI so no monopoly
@timtensor6994
@timtensor6994 4 дня назад
A noob question, is it the free version or is it the paid claude version?
@cryptodude_btc
@cryptodude_btc 4 дня назад
Claude Projects require paid version
@marccastlerock6997
@marccastlerock6997 4 дня назад
I always try to do some crossword, but I never succeed. Graphically yes, but the words never fit together
@edgarl.mardal8256
@edgarl.mardal8256 3 дня назад
Try getting this script to work and play your game, challenge: import numpy as np import cv2 import pyautogui import time from collections import deque import random import torch import torch.nn as nn import torch.optim as optim # Define the DQN model class DQN(nn.Module): def __init__(self, input_shape, n_actions): super(DQN, self).__init__() self.conv = nn.Sequential( nn.Conv2d(input_shape[0], 32, kernel_size=8, stride=4), nn.ReLU(), nn.Conv2d(32, 64, kernel_size=4, stride=2), nn.ReLU(), nn.Conv2d(64, 64, kernel_size=3, stride=1), nn.ReLU() ) conv_out_size = self._get_conv_out(input_shape) self.fc = nn.Sequential( nn.Linear(conv_out_size, 512), nn.ReLU(), nn.Linear(512, n_actions) ) def _get_conv_out(self, shape): o = self.conv(torch.zeros(1, *shape)) return int(np.prod(o.size())) def forward(self, x): conv_out = self.conv(x).view(x.size()[0], -1) return self.fc(conv_out) # Game Environment class class GameEnvironment: def __init__(self, screen_region): self.screen_region = screen_region def get_screen(self): screen = np.array(pyautogui.screenshot(region=self.screen_region)) screen = cv2.cvtColor(screen, cv2.COLOR_RGB2GRAY) screen = cv2.resize(screen, (84, 84)) return np.expand_dims(screen, axis=0) def take_action(self, action): # Implement action execution here # This could involve clicking at specific coordinates or sending keypresses pass def get_reward(self): # Implement reward calculation here # This could involve analyzing the game state or score return 0 # Reinforcement Learning Agent class RLAgent: def __init__(self, state_shape, n_actions, memory_size=10000, batch_size=32, gamma=0.99, epsilon=1.0, epsilon_decay=0.995, epsilon_min=0.01): self.state_shape = state_shape self.n_actions = n_actions self.memory = deque(maxlen=memory_size) self.batch_size = batch_size self.gamma = gamma self.epsilon = epsilon self.epsilon_decay = epsilon_decay self.epsilon_min = epsilon_min self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu") self.model = DQN(state_shape, n_actions).to(self.device) self.target_model = DQN(state_shape, n_actions).to(self.device) self.optimizer = optim.Adam(self.model.parameters()) self.criterion = nn.MSELoss() def remember(self, state, action, reward, next_state, done): self.memory.append((state, action, reward, next_state, done)) def act(self, state): if np.random.rand() self.epsilon_min: self.epsilon *= self.epsilon_decay def update_target_model(self): self.target_model.load_state_dict(self.model.state_dict()) # Main training loop def train_agent(episodes, max_steps): screen_region = (0, 0, 800, 600) # Adjust this to match your game window env = GameEnvironment(screen_region) state_shape = (1, 84, 84) n_actions = 4 # Adjust this based on the number of possible actions in your game agent = RLAgent(state_shape, n_actions) for episode in range(episodes): state = env.get_screen() total_reward = 0 for step in range(max_steps): action = agent.act(state) env.take_action(action) next_state = env.get_screen() reward = env.get_reward() done = False # Implement a way to determine if the game is over agent.remember(state, action, reward, next_state, done) agent.replay() state = next_state total_reward += reward if done: break if episode % 10 == 0: agent.update_target_model() print(f"Episode: {episode}, Total Reward: {total_reward}, Epsilon: {agent.epsilon}") # Save the trained model torch.save(agent.model.state_dict(), "trained_model.pth") if __name__ == "__main__": train_agent(episodes=1000, max_steps=500)
@heww3960
@heww3960 4 дня назад
If i would be a owner of a big game or movie-studio, i would be concerned. They are simple games now, but the writing on the wall is clear as long as the progress keep going forward. Sure they have their trademarks, and they will try to milk them as much as possible, but otherwize they are probably f****d long term.
@zeroxd.cypher3899
@zeroxd.cypher3899 4 дня назад
i pay for open ai...and lately Claude sonnet has me questioning why I am paying for them... if this is what Anthropic has can't wait to see what open ai does cause they need somethign way better than this or it's time to move on for me.
@nil7118
@nil7118 3 дня назад
It's just not enough for me with 200k tokens. I want to make an near infinite repayable text fantasy rpg with classes, crafting, etc in just one prompt but I know it would take tens of millions of tokens lol.
@dabberdaffy256
@dabberdaffy256 4 дня назад
Chat length is horrendous
@therealjaycole6464
@therealjaycole6464 4 дня назад
For real
@TheAlastairBrown
@TheAlastairBrown 3 дня назад
That's on the free tier though right? I think when you use "projects" as a paid plan it doesn't work in the same way.
@yohvh
@yohvh День назад
The only downside about Claude is not being able to generate images like OpenAI.
@apheX512
@apheX512 4 дня назад
Kindalikerightkinda?
@vjzb3
@vjzb3 4 дня назад
Made a couple of videos showing how you can do this same Claude 3.5 Sonnet development but inside of your IDE (Cursor) instead! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-x3TRq9N5T-Q.html Awesome video though, I'm glad to see how somebody would do this using Anthropic's Projects feature!
@ITR
@ITR 4 часа назад
You spent half a day to use Claude to get that level of gameplay, instead of just programming it yourself in what, 4 hours? The game kinda sucks, and primarily using AI means you basically don't know the codebase at all. Even if people suck at programming and would spend a week on programming this, they would learn so much more on spending a week doing that instead of using Claude. Honestly, I was interested in seeing what "Next level AI Programming" would be, since I thought maybe AI had finally gotten better at it, but ig it still sucks.
@VirgilKrell
@VirgilKrell 4 дня назад
man you really need to add a brief channel open transition, your videos always pop right to you talking in a really hard sort of way
@BeefCurd
@BeefCurd 5 дней назад
Claude is trash. youre paid for scamming people. Claude has a interaction limit. After paying for claude, i asked it 8 question and it said that i could not ask it another question until 4 hours later. All day i prompt chat gemini, and midjourney. 8 questions for Claude. That isnt usable.
@tooimpacted
@tooimpacted 5 дней назад
Really 🤨
@nexusknight7
@nexusknight7 5 дней назад
@@tooimpacted Yes: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-EghpdIk3pLU.html
@YoreHistory
@YoreHistory 5 дней назад
I wonder if they stealth increased the limit today. I was programming and never saw the 10 message remaining limit. I was annoyed at the limit (and still am) but to call it trash is a bit much. Its superior to Openai in coding. I have both and the difference is noticeable.
Далее
The End Of Jr Engineers
30:58
Просмотров 82 тыс.
Can We Save Goku In 5 SECONDS⁉️😰 #dbz #goku
00:15
Claude 3.5 Sonnet vs GPT-4o: Side-by-Side Tests
25:10
Can AI code Flappy Bird? Watch ChatGPT try
7:26
Просмотров 9 млн
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 187 тыс.
Why Donut Media Is Falling Apart: An Explainer
17:07
Просмотров 182 тыс.
Claude 3.5 is the new KING of AI 👑 Beats GPT4o
10:58
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Просмотров 34 тыс.