Skip to content

Mohamedbg23/Tetris-in-C-with-Ncurses-and-SDL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Game in C with SDL and Ncurses

Overview

This project is an implementation of the classic Tetris game in the C programming language following the MVC model, featuring two different interfaces: SDL and Ncurses. The game provides an engaging experience for players who enjoy the timeless challenge of arranging falling tetrominoes.

Table of Contents

Features

  • Classic Tetris gameplay
  • Two different interfaces: SDL and Ncurses
  • User-friendly controls
  • Score tracking and level progression

Prerequisites

Ensure you have the following dependencies installed on your system:

Installation

  1. Clone the repository:

    git clone https://github.com/Mohamedbg23/Tetris-in-C-with-Ncurses-and-SDL.git
    
  2. Compile the Files:

make

Usage

  • Run the SDL version:

./tetris sdl

  • Run the NCurses version:

./tetris txt

Instructions

  • ← and →: Move the piece ,

  • ↑: Rotate (clockwise?) the piece,

  • SPACE: Immediately drop the piece,

  • ESC: Exit the game prematurely,

  • P: Pause the game (any P to resume),

  • C: to put the current piece in a reseve for a later use.

    GitHub Gif

Contributing

  • Mohamed Boughariou
  • Tangi Le Henaff

About

Tetris in C with Ncurses and SDL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published