• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

bastet: Clone of the game Tetris in the terminal

by admin

“bastet” is a clone of the popular game Tetris that can be played directly in the terminal. It is designed to replicate the gameplay and mechanics of the original Tetris game while providing a text-based, command-line interface for a nostalgic gaming experience.

In “bastet,” players control the falling tetrominoes, which are geometric shapes made up of four squares arranged in different configurations. The goal is to manipulate and rotate these tetrominoes as they descend from the top of the terminal screen, with the objective of creating complete horizontal lines without any gaps. When a line is completed, it clears from the screen, allowing more room for further gameplay. The game continues until the stack of tetrominoes reaches the top of the screen, resulting in game over.

Like the classic Tetris game, “bastet” provides controls for moving the tetrominoes left or right, rotating them, and accelerating their descent. The controls are typically mapped to keyboard keys, allowing players to interact with the game through their terminal.

“Bastet” adds an additional twist to the gameplay by implementing an AI algorithm that intentionally selects the worst possible tetromino for the player at each step. This feature aims to challenge players by presenting them with more difficult and unpredictable gameplay scenarios.

Playing “bastet” in the terminal offers a lightweight and minimalist gaming experience, making it accessible on a wide range of systems, including remote servers, embedded systems, or even older computers. It provides a nostalgic feel reminiscent of the early days of gaming when text-based interfaces were prevalent.

To play “bastet,” users typically install the game on their system and execute it in a terminal window. The game interface appears in the terminal, and players can use the designated keys to control the tetrominoes and engage in the gameplay.

bastet Command Examples

1. Start a Tetris game:

# bastet

2. Navigate the piece horizontally:

[Left|Right] arrow key

3. Rotate the piece clockwise or counterclockwise:

[Spacebar|Up arrow key]

4. Soft drop the piece:

Down arrow key

5. Hard drop the piece:

Enter

6. Pause the game:

p

7. Quit the game:

Ctrl + C

Summary

In summary, “bastet” is a terminal-based clone of the classic game Tetris. It allows players to experience the addictive and strategic gameplay of Tetris within the text-based environment of a terminal. By providing a minimalist gaming experience, “bastet” offers a nostalgic throwback to early gaming and allows users to enjoy Tetris on various systems, including those with limited graphical capabilities.

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL : Move a Physical Volume from an existing Volume Group to another Volume Group
  2. jupytext Command Examples
  3. meld Command Examples
  4. sudoedit: command not found
  5. CentOS / RHEL : How to install a specific version of rpm package using YUM
  6. named-checkconf: command not found
  7. CentOS / RHEL : How to disable ssh for non-root users (allowing ssh only for root user)
  8. lwp-request Command Examples
  9. sshpass Command: Non-interactive Password Authentication with SSH
  10. “docker container” Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright