Skip to content

Deatherd/Brick-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrickGame Tetris

Tetris Game Screenshot

Table of Contents

Overview

This project implements the classic Tetris game in C language following the original BrickGame console specifications. The implementation consists of two main components:

  1. A core game logic library using finite-state machines
  2. A terminal-based interface using ncurses

The game faithfully recreates the original Tetris experience with all standard pieces, controls, and mechanics.

Features

Core Gameplay

  • All 7 classic Tetris pieces (I, J, L, O, S, T, Z)
  • Piece rotation and horizontal movement
  • Hard drop (instant fall) mechanic
  • Next piece preview
  • Line clearing with proper block collapsing
  • Game over when pieces reach the top

Controls

  • Start/Pause: 's' key

  • Quit: 'q' key

  • Move Left: left arrow key

  • Move Right: right arrow key

  • Soft Drop: down arrow key

  • Hard Drop: space bar

  • Rotate: up arrow key

  • Scoring system with progressive points for multiple lines

  • Persistent high score storage

  • Level progression with increasing speed

  • Clean terminal interface with color support

Prerequisites

  • GCC compiler (C11 standard)
  • ncurses library
  • check library for tests (optional)

Building from Source

git clone https://github.com/Deatherd/Brick-Game.git
cd Brick-Game/src
make tetris EXTENDED=1
./tetris

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published