ChatGPT vs DeepSeek AI-generated code is evolving rapidly, but which model writes better C++ for game development? In this experiment, I put ChatGPT o3-mini-high and DeepSeek to the test with the same prompt: create a C++ game development project using SFML. Both AI models attempted to generate an infinite platformer where the player can move, jump, and defeat enemies.

I walked through ,reviewing their coding approaches, debugging issues, and configuring the development environment in VSCode with vcpkg. While ChatGPT o3 provided a more structured implementation with smoother gameplay, DeepSeek struggled with infinite level generation and enemy behavior.

Write a simple 2D platform-style game using SFML, where the player controls a square that can move left, right, and jump, similar to Mario. The level should be procedurally generated and infinite, with the game recording the maximum distance the player travels forward.

Both AIs tackled the challenge differently, so let’s break it down and compare their results.


📺 Watch the Full Video

🎥 YouTube Video: Watch Here


🖥️ AI-Generated Code

ChatGPT’s Approach

ChatGPT provided a well-structured C++ implementation using SFML, with clear logic for:

The result? A playable and smooth experience with a structured game loop.

DeepSeek’s Approach

DeepSeek also generated a working platformer but had some key issues:

Both AIs showed an impressive understanding of SFML and C++, but ChatGPT’s result was more polished and functional out of the box.


⚙️ Setting Up the Project

I used VSCode with vcpkg to set up the project:

  1. Created a new folder: GPTVsDeepSeek
  2. Initialized a CMake project
  3. Configured vcpkg for SFML dependencies
  4. Installed SFML and updated CMakeLists.txt
  5. Built both AI-generated codes for testing

If you want a detailed setup guide, check out my full VSCode + SFML setup tutorial.


🏆 Final Verdict: Which AI Did Better?

After running both AI-generated projects, ChatGPT vs DeepSeek had a clear winner. ChatGPT o3 provided a more polished and playable experience, while DeepSeek struggled with several critical issues.

ChatGPT o3’s Strengths:

DeepSeek’s Issues:

Final Thoughts

ChatGPT o3 outperformed DeepSeek, delivering a more structured and polished experience. While both AIs showed a solid understanding of game development, ChatGPT o3’s implementation felt significantly more refined.

🚀 Winner: ChatGPT o3-mini-high!


📂 Get the Full Source Code

🔗 GitHub Repository: View the Code

You can download and test both AI-generated projects for yourself!


🔥 What’s Next?

Should I test these AIs with Raylib or SDL next? Let me know in the comments!

For more AI coding experiments, subscribe to my YouTube channel: Rambod Dev.

C++ Project Setup Made Simple: Raylib, CMake, and VS Code Guide in less than 5 minutes Essential – Rambod


February 2025 – AI Coding Evolution Continues 🚀

Leave a Reply

Your email address will not be published. Required fields are marked *

1 × three =