thecomputerguyjeff / tetris

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Tetris!!! This will be great.

Shape factory returns one of 7 shapes randomly. Grid has 10 columns and 40 legal rows, with 3 overflow rows. Game ends as soon as one shape is inside overflow rows. Algorythmically place each shape in grid, optimizing rules of tetris. return count of total shapes with the display of grid at the end.

Use factory patterns for shapes Use MVC patterns for overall. OOP single responsibility patterns for your functions

Rochel Shira has the shapes.

###example mock: CalculatorService calc = mock(CalculatorService.class);

    when(calc.add(any(),any())).thenReturn(7);

About