I challenged -> Claude 3.5 to follow -> these way to detailed instructions to create a simple 4X "play by mail" strategy game in Dart.
It spit out ~500 lines of Dart code which I had to stitch together because it wasn't able to create the code in one go. I had to fix its usage of dynamic
types with JSON decoding because I always enable strict-casts
in my analysis_options.yaml
, but otherwise there were no syntax errors. Compared to ChatGPT, Claude's style is a bit more "archaic", though.
Because I could have created the Dart code myself, I find it difficult to rate the AI's achievement. Do you find the result impressive? Please read my specification and try to come up with an implementation on your own.
Let's analyse -> Claude's code.
It created a Planet
, a Player
and a GameState
class for JSON serialization and a Game
class for implementing the game rules.