26.08.2026
How to rediscover the joy of simple programming: writing a terminal game in Python
These days, you can put together a simple computer game in a matter of minutes: use a ready-made engine, integrate a library, or simply ask an AI to write the code. But I wanted to go back to basics and try to make do with the bare minimum of resources.
Hello! I’m Evgeny Bartenev, technical lead and author of the ‘Python Developer’ course at Praktikum. In this article, I’ll try to write a car racing game using around 50 lines of Python code. All the ‘graphics’ will consist of standard terminal characters, and along the way we’ll take a brief look at ANSI sequences, non-blocking input and how a terminal actually works.