Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Anchaus/BrickGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brick Game

About project

Implementation of most popular games of Brick Game: Tetris, Snake and Speed Race with three alternative GUI: cli, desktop and web. All games have same API so every option of GUI can be used for every game.
Development of project consists of three subprojects: Tetris with cli GUI, snake with desktop GUI and Speed Race with web GUI. For now only Tetris subproject is developed.

Brick Game interface description

BrickGame interface consist of game field with size 10x20 cells, sidebar with game information (score, high score, next figure, level, speed and pause indicator) and panel with description of control buttons.

Tetris

About project

Implementation of Tetris game on C programming language. The project has two parts: library implementing the logic of the tetris game, and a terminal interface using ncurses library. In future projects more games will be developed which will be able to use that terminal interface. Logic of the game was formalized by finite-state machine conception. There is schematic view of finite-state machine of tetris in repository.

Gameplay

In the project there are implementation of following mechanics:

  • Rotations of figures
  • Horizontal moving of figures
  • Acceleration of figure's fall
  • Figure stops when reach bottom border and next spawns
  • Destruction of filled rows with scoring points
  • Level mechanic boosts figure's fall
  • End of the game when the top border is reached
  • High score is stored between program runs

Preview

Installation

Install dependencies

sudo apt install libncurses5-dev libncursesw5-dev

install game

make install

After this executable file named 'tetris' will appear in build directory of the project

Developer

Licence

Project BrickGame is distributed under the MIT licence

About

Implementation of the tetris game on C language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors