Blocks game with ai? Yes

🧩 How I Bring My Favorite Game to Life with AI

It all started when I got hooked on a cool and clever puzzle game on Telegram. The premise is simple but addictive: you’re given three blocks to choose from, and you have to arrange them in a row. It required a fair amount of thinking—the more points you get, the better!

But at some point, the game got blocked… 💔 But I really wanted to play! And then the thought occurred to me: What if I made something like this just for myself? To while away the time on the road and exercise my brain a bit.


🛠️ From Idea to Code

I went to GitHub in search of similar projects. Some were good, some not so good, and some were missing the necessary features. I eventually found a project that was perfect for mobile, but it had a major problem: utterly inconvenient controls.

I wanted to add three simple buttons to control the blocks, but digging into someone else’s code and understanding their logic was a real drag. It was practically impossible.

🤖 AI to the rescue

Who saved the day? Artificial intelligence, of course! I approached Google’s Gemini with a clear brief: Add controls and three buttons.

The AI ​​handled it brilliantly. But I went further and decided to maximize usability: instead of regular buttons, we implemented three fully functional joysticks to make controlling the blocks from a smartphone as fun and intuitive as possible.


✨ What’s the end result?

It’s the perfect time killer! The game runs smoothly, it’s a joy to play, and the controls are now a dream.

The project is completely open source. You can follow the link, test it out, and play:

🔗 Project Link / Play Here

⭐️ Did you like the project? > If you enjoyed the game or the story behind its creation, I’d be thrilled to receive a star on GitHub! It’s a great incentive to continue developing the project.

Thank you all, have a nice day and enjoy the game! See you at the top of the leaderboard! 😉