正在加载视频...

视频加载失败

1. Realistic Physics Game (Hexagon Test) Prompt: Create a HTML, CSS, and javascript where a ball is inside a rotating hexagon. The ball is affected by Earth’s gravity and friction from the hexagon walls. The bouncing must appear realistic. → Tests physics simulation, code planning, and visual realism. ChatGPT...

562,694 次观看 • 11 个月前 •via X (Twitter)

0 条评论

暂无评论

原始帖子的评论将显示在这里

相关视频

Gemini 2.5 Flash demolishes my Galton Board test, I could not get 4omini, 4o mini high, or 03 to produce this. I found that Gemini 2.5 Flash understands my intents almost instantly, code produced is tight and neat. The prompt is a merging of various steps. It took me 5 steps to achieve this in Gemini 2.5 Flash, I gave up on OpenAI models after about half an hour. My iterations are obviously not exact. But people can test with this one prompt for more objective comparison. Please try this prompt on your end to confirm: -------------------------------------------------- Create a self-contained HTML file for a Galton board simulation using client-side JavaScript and a 2D physics engine (like Matter.js, included via CDN). The simulation should be rendered on an HTML5 canvas and meet the following criteria: 1. **Single File:** All necessary HTML, CSS, and JavaScript code must be within this single `.html` file. 2. **Canvas Size:** The overall simulation area (canvas) should be reasonably sized to fit on a standard screen without requiring extensive scrolling or zooming (e.g., around 500x700 pixels). 3. **Physics:** Utilize a 2D rigid body physics engine for realistic ball-peg and ball-wall interactions. 4. **Obstacles (Pegs):** Create static, circular pegs arranged in full-width horizontal rows extending across the usable width of the board (not just a triangle). The pegs should be small enough and spaced appropriately for balls to navigate and bounce between them. 5. **Containment:** * Include static, sufficiently thick side walls and a ground at the bottom to contain the balls within the board. * Implement *physical* static dividers between the collection bins at the bottom. These dividers must be thick enough to prevent balls from passing through them, ensuring accurate accumulation in each bin. 6. **Ball Dropping:** Balls should be dropped from a controlled, narrow area near the horizontal center at the top of the board to ensure they enter the peg field consistently. 7. **Bins:** The collection area at the bottom should be divided into distinct bins by the physical dividers. The height of the bins should be sufficient to clearly visualize the accumulation of balls. 8. **Visualization:** Use a high-contrast color scheme to clearly distinguish between elements. Specifically, use yellow for the structural elements (walls, top guides, physical bin dividers, ground), a contrasting color (like red) for the pegs, and a highly contrasting color (like dark grey or black) for the balls. 9. **Demonstration:** The simulation should visually demonstrate the formation of the normal (or binomial) distribution as multiple balls fall through the pegs and collect in the bins. Ensure the physics parameters (restitution, friction, density) and ball drop rate are tuned for a smooth and clear demonstration of the distribution. #OpenAI Sam Altman Greg Brockman AshutoshShrivastava Aidan McLaughlin

RameshR

247,923 次观看 • 1 年前

⚡ My first advanced simulation with Grok 3! Finally your OS windows act like REAL windows 🤣 As you know, I've spent more than 2 years sharing all kinds of simulations and mini-games made with Claude, ChatGPT (o3-mini-high), etc. It’s been ages since I last wrote a single line of code. But pretty often, once you hit over 1,000 lines, it turns into a debate against the LLM and you frequently get stuck in a loop that’s hard to break out of. Everyone was raving about Grok 3’s ability to generate code, but until now, I hadn’t really put it to the test. So I decided to challenge it with a prompt that both ChatGPT and Claude were seriously struggling with (debate loop). The initial prompt was: "Use Python and a 2D physics library to create a world where I can generate different static objects like squares, triangles, circles and rectangles. I should be able to move them with the mouse, rotate, scale, and delete them. The cool part is that we’ll see this world through 1 to N operating system windows. In other words, the windows will be like real windows! When one of these windows is active and I hit the spacebar, balls affected by physics should appear and interact with the static objects. You can start with placeholders, but later I'll send you a series of PNG images so they all become beautiful sprites." After a few iterations, I got the result you see in the video. Insane, right? 🤯 Now, with Grok, we have the power to create anything that pops into our mind with just a couple of prompts. It’s mind blowing. Ever since I was 9 and messing around with BASIC on my MSX, I've been hooked on visual simulations... And now I can create them using nothing but natural language. It's f***** amazing that we're living in this historic moment!

Javi Lopez ⛩️

209,470 次观看 • 1 年前