Subtitles section Play video Print subtitles I want to show an example of a coding prompt that O1 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 O1 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, the game Squirrel Finder basically has a koala that you can move using the arrow keys. Strawberries spawn every second and they bounce around, and you want to avoid the strawberries. After three seconds, a squirrel icon comes up and you want to find the squirrel to win. And there are a few other instructions like putting OpenAI 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 window and we'll see if it works. So you've seen there's instructions, 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 can see that the strawberries are appearing. And let's see if I can win by finding the squirrel. Well, looks like I won.
B1 US squirrel coding prompt final answer finder preview Video Game Coding with OpenAI o1 8 0 fpl98466 posted on 2024/09/21 More Share Save Report Video vocabulary