estelendur d4be579a9f Initial commit il y a 9 ans
..
.settings d4be579a9f Initial commit il y a 9 ans
bin d4be579a9f Initial commit il y a 9 ans
src d4be579a9f Initial commit il y a 9 ans
.DS_Store d4be579a9f Initial commit il y a 9 ans
._.DS_Store d4be579a9f Initial commit il y a 9 ans
._README.txt d4be579a9f Initial commit il y a 9 ans
.classpath d4be579a9f Initial commit il y a 9 ans
.project d4be579a9f Initial commit il y a 9 ans
README.txt d4be579a9f Initial commit il y a 9 ans

README.txt

README.TXT

Tetris

The board and pieces:
I implemented the board as an array of Color objects, with the default value of gray. Each piece has two arrays of ints, x and y, which collectively represent the location of the piece on the board, a color, and access to the board array. Each piece subclass has its own rotate method and specialized constructor to initialize its position. All pieces have methods in common for moving left, right, and down, and for collision detection, as well as a method to put the piece 'on the board'.

The game itself:
The controls are: up to rotate, down to move down one space, left to move left, right to move right, and space bar to pause. Scoring is very simple: 100 points are granted per line cleared. Speed goes up linearly with level, which changes every 10 lines.