Skip to content

gerbilbyte/gerbtris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Gerbtris

The Tetris game written in bash

Program: Gerbtris Author: Gerbil (@M_C_Stott)

Version: 1.1 16/11/2020

Version: 1.0 02/10/2020

Gerbtris is the Tetris game witten in bash. Why have I done this? Why not? :P This is very basic as you can imagine. There are flaws. For example holding a key down may print it on the playing field. And each keypress activates the "move down" gravity function along with the movement. And it only rotates clockwise, I couldn't be bothered to do anti-clockwise too even though it would be really easy to do. And the scoring is constant - 10 points per line.

Controls: z | left arrow key : Move shape left x | right arrow key : Move shape right SPACE | up arrow key : Rotate shape clockwise m | down arrow key : Move shape down q : Quit game

Thanks and resources used: Rotations: https://code.likeagirl.io/rotate-an-2d-matrix-90-degree-clockwise-without-create-another-array-49209ea8b6e6 This is a brilliant resource written by Ngoc (Alex) Vuong (@Dragonzal) that perfectly explains how to programatically rotate an array. This is awesome! Thank you for writing this.

Also thanks to my good friend and colleague @csBlueChip for the awesome idea of getting the program to beep whenever a line is made. I salute you sir!

Enjoy the game.

About

The Tetris game written in bash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages