logoalt Hacker News

senkotoday at 6:34 PM6 repliesview on HN

My fav coding benchmark for frontier models is to build a simple RTS game in one file (js/html/css). Claude Code with Opus 4.8 in ultracode mode nailed it, the best result so far:

https://bsky.app/profile/senko.net/post/3mmwnrkwboc2v

The prompt was: Create a simple but functional real time strategy (RTS) game similar to old WarCraft, StarCraft or Command & Conquer games. The player should be able to build buildings, create units, gather resources and should uncover the whole map. No AI or multiplayer needed. Use simple but nice-looking graphics. No sound. Implement everything in HTML/CSS/JS, everything in a single file (you can use 3rd-party js or css libraries/frameworks via CDN).


Replies

apitmantoday at 7:19 PM

I like that benchmark. You should throw the results up on GitHub pages so people can try out the games.

show 1 reply
jclaytoday at 7:00 PM

It almost appears as if the code was minified. The variable names are short and formatting looks like it's written to minimize whitespace. Did it write it in this compact format all on it's own?

show 2 replies
digdugdirktoday at 8:00 PM

Do you have a collection of these benchmark apps saved anywhere? I'd be particularly interested in seeing the relative cost differences between different models in a use case like this.

show 1 reply
elAhmotoday at 7:47 PM

What is ultracode mode?

show 3 replies
jryan49today at 8:06 PM

Kinda buggy, but impressively nonetheless. How long did it take?

show 1 reply
l3x4ur1ntoday at 7:40 PM

Played it to the end. Pretty neat!