Video Game Coding with OpenAI o1

101.11k views305 WordsCopy TextShare
OpenAI
Say hello to OpenAI o1—a new series of AI models designed to spend more time thinking before they re...
Video Transcript:
I want to show an example of a coding prompt that 01 preview is able to do but previous models might struggle with and the coding prompt is to write the code for a very simple video game called squirrel finder and the reason 01 preview is better at doing prompts like this is when it wants to write a piece of code it thinks before giving the final answer so it can use the thinking process to plan out the structure of the code make sure it fits the constraints so let's try pasting this in and to give
a brief overview of the prompt um the game scroll finder basically has a koala that you can move using the arrow keys um strawberries spawn every second and they bounce around and you want to avoid the strawberries after 3 seconds a squirrel icon comes up and you want to find the squirrel to win and there are a few other instructions like um putting open AI in the game screen and displaying instructions before the game starts Etc so first you can see that the model thought for 21 seconds before giving the final answer and you can
see that during its thinking process it is gathering details on the game's layout mapping out the instructions setting up the screen Etc and so here's the code that it gave and I will paste it into a uh into a window and we'll see if it works [Music] so you see there's instructions um and let's try to play the game oh the squirrel came very quickly but oops this time I was hit by a strawberry let's try again you could see that the strawberries are appearing uh and let's see if I can win by finding the
squirrel looks like I won
Copyright © 2024. Made with ♥ in London by YTScribe.com