Get Started. It's Free
or sign up with your email address
Rocket clouds
Tetris by Mind Map: Tetris

1. Collisions

1.1. Check whether block row is filled

1.2. Check whether piece is 'cemented' in

1.2.1. aka, whether the next block position is filled?

1.3. Check whether block is in the way, can't move into it

1.3.1. can-move-left?

1.3.2. can-move-right?

1.3.3. can-rotate-left?

1.3.4. can-rotate-right?

1.4. Check whether top block is above screen size

1.5. Check whether block is colliding with left or right side of the screen

1.6. Check whether 'can rotate'

2. Scoring

2.1. Add points when row is cleared (10 points per row?)

2.2. Need to keep track of score - possibly by including it as a number in world?

3. Game Movement

3.1. All functions will take a tetra, return a tetra

3.1.1. tetra-next: returns tetra 1 block lower

3.1.2. tetra-rotate-left: returns tetra rotated left

3.1.3. tetra-rotate-right: returns tetra rotated right

3.1.4. tetra-move-left: returns tetra moved 1 block left

3.1.5. tetra-move-right: returns tetra moved 1 block right

4. Rendering

4.1. Abstract per block?

4.2. Foldr

5. Types of Collisions (return Booleans

5.1. Collision1

5.1.1. Tetra hits ground, added to pile

5.1.1.1. Comparing Tetra, World-Size

5.1.2. Tetra hits list of blocks, added to pile

5.1.2.1. Comparing Tetra, Pile

5.2. Collision2

5.2.1. Tetra hits the wall

5.2.1.1. comparing tetra, world-size

5.3. Collision3

5.3.1. Tetra hits other blocks, left and right

5.3.1.1. comparing tetra, pile

5.4. Collision4

5.4.1. rotating tetra hits a block

5.4.1.1. comparing tetra, pile

5.5. collision?

5.5.1. Takes tetra, pile, name of function to run

5.5.1.1. Runs function on tetra, compares to pile and world-size

5.5.1.2. Ex. functions: tetra-next, tetra-rotate, etc.

6. Functions

6.1. Function to compare two lists of blocks (blockl-compare)

7. End-game?

8. Game Elements