8000 GitHub - Wey4t/C-TETRIS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Wey4t/C-TETRIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Game

A Tetris implementation built in C using the ncurses library for terminal-based gameplay.

Installation

On macOS, install the required dependencies using Homebrew:

brew install ncurses

On Ubuntu or Debian systems, install the development libraries:

sudo apt-get install libncurses5-dev libncursesw5-dev

Building the Game

The project includes a Makefile for simplified building. Navigate to the project directory and execute the build command:

make

This command compiles all source files and creates the executable named tetris.

Running the Game

Start the game by executing the compiled binary:

./tetris_ncurses

Alternatively, use the Makefile to build and run in one step:

make run

Controls

The game uses keyboard controls for all interactions:

  • W or w: Rotate the current piece clockwise
  • A or a: Move piece left
  • D or d: Move piece right
  • S or s: Soft drop (faster descent)
  • Space: Hard drop (instant placement)
  • Q or q: Quit the game

Play

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0