Tetris Project

In Computer Science 233, I had a group project where we were tasked with making a game using Java. Our group chose to make a clone of Tetris.

My main role in the group was to create the class that handled output of the game state to the console. I wanted it to look decent, so I decided to use ANSI Escape Sequences in order to color text that represented each block.

ANSI Escape String Color
"\u001B[38;5;51m" Cyan
"\u001B[38;5;226m" Yellow
"\u001B[38;5;90m" Purple
"\u001B[38;5;40m" Green
"\u001B[38;5;196m" Red
"\u001B[38;5;21m" Blue
"\u001B[38;5;214m" Orange

The final output of my work is shown below.

Tetris Image

The code for this project is available on Github.