HomeSample Page

Sample Page Title


I Requested ChatGPT, Claude and DeepSeek to Construct Tetris
Picture by Creator

 

Introduction

 
It looks as if virtually each week, a brand new mannequin claims to be state-of-the-art, beating current AI fashions on all benchmarks.

I get free entry to the newest AI fashions at my full-time job inside weeks of launch. I sometimes don’t pay a lot consideration to the hype and simply use whichever mannequin is auto-selected by the system.

Nevertheless, I do know builders and mates who need to construct software program with AI that may be shipped to manufacturing. Since these initiatives are self-funded, their problem lies to find one of the best mannequin to do the job. They need to steadiness value with reliability.

On account of this, after the discharge of GPT-5.2, I made a decision to run a sensible check to know whether or not this mannequin was well worth the hype, and if it actually was higher than the competitors.

Particularly, I selected to check flagship fashions from every supplier: Claude Opus 4.5 (Anthropic’s most succesful mannequin), GPT-5.2 Professional (OpenAI’s newest prolonged reasoning mannequin), and DeepSeek V3.2 (one of many newest open-source options).

To place these fashions to the check, I selected to get them to construct a playable Tetris sport with a single immediate.

These had been the metrics I used to guage the success of every mannequin:

 

StandardsDescription
First Try SuccessWith only one immediate, did the mannequin ship working code? A number of debugging iterations results in greater value over time, which is why this metric was chosen.
Characteristic CompletenessHad been all of the options talked about within the immediate constructed by the mannequin, or was something missed out?
PlayabilityPast the technical implementation, was the sport truly easy to play? Or had been there points that created friction within the consumer expertise?
Price-effectivenessHow a lot did it value to get production-ready code?

 

The Immediate

 
Right here is the immediate I entered into every AI mannequin:

Construct a completely purposeful Tetris sport as a single HTML file that I can open instantly in my browser.

Necessities:

GAME MECHANICS:
– All 7 Tetris piece sorts
– Clean piece rotation with wall kick collision detection
– Items ought to fall mechanically, enhance the pace step by step because the consumer’s rating will increase
– Line clearing with visible animation
– “Subsequent piece” preview field
– Recreation over detection when items attain the highest

CONTROLS:
– Arrow keys: Left/Proper to maneuver, All the way down to drop sooner, As much as rotate
– Contact controls for cellular: Swipe left/proper to maneuver, swipe right down to drop, faucet to rotate
– Spacebar to pause/unpause
– Enter key to restart after sport over

VISUAL DESIGN:
– Gradient colours for every bit sort
– Clean animations when items transfer and contours clear
– Clear UI with rounded corners
– Replace scores in actual time
– Stage indicator
– Recreation over display screen with closing rating and restart button

GAMEPLAY EXPERIENCE AND POLISH:
– Clean 60fps gameplay
– Particle results when traces are cleared (elective however spectacular)
– Enhance the rating primarily based on variety of traces cleared concurrently
– Grid background
– Responsive design

Make it visually polished and really feel satisfying to play. The code needs to be clear and well-organized.

 

 

The Outcomes

 

// 1. Claude Opus 4.5

The Opus 4.5 mannequin constructed precisely what I requested for.

The UI was clear and directions had been displayed clearly on the display screen. All of the controls had been responsive and the sport was enjoyable to play.

The gameplay was so easy that I truly ended up taking part in for fairly a while and received sidetracked from testing the opposite fashions.

Additionally, Opus 4.5 took lower than 2 minutes to offer me with this working sport, leaving me impressed on the primary strive.

 

Tetris Gameplay Screen by Claude
Tetris sport constructed by Opus 4.5

 

// 2. GPT-5.2 Professional

GPT-5.2 Professional is OpenAI’s newest mannequin with prolonged reasoning. For context, GPT-5.2 has three tiers: Immediate, Considering, and Professional. On the level of writing this text, GPT-5.2 Professional is their most clever mannequin, offering prolonged considering and reasoning capabilities.

It’s also 4x dearer than Opus 4.5.

There was quite a lot of hype round this mannequin, main me to go in with excessive expectations.

Sadly, I used to be underwhelmed by the sport this mannequin produced.

On the first strive, GPT-5.2 Professional produced a Tetris sport with a structure bug. The underside rows of the sport had been exterior of the viewport, and I couldn’t see the place the items had been touchdown.

This made the sport unplayable, as proven within the screenshot under:

 

Tetris game built by GPT-5.2
Tetris sport constructed by GPT-5.2

 

I used to be particularly shocked by this bug because it took round 6 minutes for the mannequin to provide this code.

I made a decision to strive once more with this follow-up immediate to repair the viewport drawback:

The sport works, however there is a bug. The underside rows of the Tetris board are minimize off on the backside of the display screen. I can not see the items once they land and the canvas extends past the seen viewport.

Please repair this by:
1. Ensuring the complete sport board matches within the viewport
2. Including correct centering so the total board is seen

The sport ought to match on the display screen with all rows seen.

 

After the follow-up immediate, the GPT-5.2 Professional mannequin produced a purposeful sport, as seen within the under screenshot:

 

Tetris Second Try by GPT-5.2
Tetris second strive by GPT-5.2

 

Nevertheless, the sport play wasn’t as easy because the one produced by the Opus 4.5 mannequin.

Once I pressed the “down” arrow for the piece to drop, the following piece would typically plummet immediately at a excessive pace, not giving me sufficient time to consider how you can place it.

The sport ended up being playable provided that I let every bit fall by itself, which wasn’t one of the best expertise.

(Observe: I attempted the GPT-5.2 Normal mannequin too, which produced related buggy code on the primary strive.)

 

// 3. DeepSeek V3.2

DeepSeek’s first try at constructing this sport had two points:

  • Items began disappearing once they hit the underside of the display screen.
  • The “down” arrow that’s used to drop the items sooner ended up scrolling the complete webpage fairly than simply transferring the sport items.

 

Tetris game built by DeepSeek V3.2
Tetris sport constructed by DeepSeek V3.2

 

I re-prompted the mannequin to repair this challenge, and the gameplay controls ended up working accurately.

Nevertheless, some items nonetheless disappeared earlier than they landed. This made the sport utterly unplayable even after the second iteration.

I’m positive that this challenge might be fastened with 2–3 extra prompts, and given DeepSeek’s low pricing, you may afford 10+ debugging rounds and nonetheless spend lower than one profitable Opus 4.5 try.

 

Abstract: GPT-5.2 vs Opus 4.5 vs DeepSeek 3.2

 

// Price Breakdown

Here’s a value comparability between the three fashions:
 

MannequinEnter (per 1M tokens)Output (per 1M tokens)
DeepSeek V3.2$0.27$1.10
GPT-5.2$1.75$14.00
Claude Opus 4.5$5.00$25.00
GPT-5.2 Professional$21.00$84.00

 

DeepSeek V3.2 is the most affordable various, and you may as well obtain the mannequin’s weights totally free and run it by yourself infrastructure.

GPT-5.2 is nearly 7x dearer than DeepSeek V3.2, adopted by Opus 4.5 and GPT-5.2 Professional.

For this particular process (constructing a Tetris sport), we consumed roughly 1,000 enter tokens and three,500 output tokens.

For every further iteration, we’ll estimate an additional 1,500 tokens per further spherical. Right here is the full value incurred per mannequin:

 

MannequinWhole PriceConsequence
DeepSeek V3.2~$0.005Recreation is not playable
GPT-5.2~$0.07Playable, however poor consumer expertise
Claude Opus 4.5~$0.09Playable and good consumer expertise
GPT-5.2 Professional~$0.41Playable, however poor consumer expertise

 

Takeaways

 
Primarily based on my expertise constructing this sport, I’d stick with the Opus 4.5 mannequin for each day coding duties.

Though GPT-5.2 is cheaper than Opus 4.5, I personally wouldn’t use it to code, for the reason that iterations required to yield the identical outcome would possible result in the identical sum of money spent.

DeepSeek V3.2, nonetheless, is much extra inexpensive than the opposite fashions on this checklist.

Should you’re a developer on a funds and have time to spare on debugging, you’ll nonetheless find yourself saving cash even when it takes you over 10 tries to get working code.

I used to be shocked at GPT 5.2 Professional’s incapability to provide a working sport on the primary strive, because it took round 6 minutes to assume earlier than arising with flawed code. In any case, that is OpenAI’s flagship mannequin, and Tetris needs to be a comparatively easy process.

Nevertheless, GPT-5.2 Professional’s strengths lie in math and scientific analysis, and it’s particularly designed for issues that don’t depend on sample recognition from coaching knowledge. Maybe this mannequin is over-engineered for easy day-to-day coding duties, and will as a substitute be used when constructing one thing that’s advanced and requires novel structure.

The sensible takeaway from this experiment:

  • Opus 4.5 performs finest at day-to-day coding duties.
  • DeepSeek V3.2 is a funds various that delivers cheap output, though it requires some debugging effort to succeed in your required consequence.
  • GPT-5.2 (Normal) didn’t carry out in addition to Opus 4.5, whereas GPT-5.2 (Professional) might be higher fitted to advanced reasoning than fast coding duties like this one.

Be happy to duplicate this check with the immediate I’ve shared above, and completely happy coding!
&nbsp
&nbsp

Natassha Selvaraj is a self-taught knowledge scientist with a ardour for writing. Natassha writes on every thing knowledge science-related, a real grasp of all knowledge subjects. You possibly can join together with her on LinkedIn or take a look at her YouTube channel.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles