How Do You Play Tertis In Command Prompt Mac


Playing Tetris on the command prompt of a Mac may not be the most glamorous way to enjoy this classic game, but it can certainly be a fun and nostalgic experience. As someone who loves both retro games and coding, I’ve always found it fascinating to explore the hidden gems of the command line interface. Today, I’m going to guide you through the steps of playing Tetris in the command prompt of a Mac, and share my personal insights and experiences along the way.

Getting Started

The first thing you’ll need to do is open the Terminal on your Mac. You can find it by going to your Applications folder, then opening the Utilities folder, and finally clicking on Terminal. Once the Terminal is open, you’ll see a blank screen with a blinking cursor, ready for your commands.

Now, we need to install a program called “tetris” in order to play the game. This can be done using the package manager Homebrew. If you don’t have Homebrew installed, you can easily do so by visiting their website (link: and following the installation instructions. Once Homebrew is installed, open the Terminal again and run the following command:

brew install tetris

This will download and install the Tetris program on your Mac.

Playing Tetris

With Tetris now installed, it’s time to start playing! In the Terminal, simply type the following command:


After pressing enter, the Tetris game will start, and you’ll see a grid with falling blocks. Use the arrow keys on your keyboard to move and rotate the blocks as they descend. The objective is to create complete horizontal lines by filling the gaps with the falling blocks. Each complete line will be cleared, giving you points and making room for more blocks.

As you progress in the game, the falling blocks will start to move faster, testing your reflexes and strategic thinking. The game will continue until the blocks reach the top of the grid, at which point it’s game over.

My Personal Experience

Playing Tetris in the command prompt takes me back to the early days of computing when graphical interfaces were a luxury. It’s a reminder of the simplicity and elegance of text-based games. Though the graphics may be basic, the gameplay remains just as addictive and challenging as ever.

I often find myself spending hours trying to beat my high score or attempting to achieve the coveted “tetris” by clearing four lines at once. It’s a great way to unwind and take a break from the digital noise of our modern world. Plus, it’s a fun conversation starter when friends come over and see me playing Tetris in the command prompt.


Playing Tetris in the command prompt of a Mac may not be the most conventional way to enjoy this iconic game, but it’s a unique and engaging experience that brings back the nostalgia of the early days of computing. It’s a testament to the enduring appeal of simple yet addictive gameplay. So, if you’re up for a challenge and want to experience Tetris in a whole new way, give it a try on your Mac’s command prompt!