Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

Tetris by Mind Map: Tetris
0.0 stars - reviews range from 0 to 5

Tetris

Collisions

Check whether block row is filled

Check whether piece is 'cemented' in

aka, whether the next block position is filled?

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

can-move-left?

can-move-right?

can-rotate-left?

can-rotate-right?

Check whether top block is above screen size

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

Check whether 'can rotate'

Scoring

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

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

Game Movement

All functions will take a tetra, return a tetra

tetra-next: returns tetra 1 block lower

tetra-rotate-left: returns tetra rotated left

tetra-rotate-right: returns tetra rotated right

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

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

Rendering

Abstract per block?

Foldr

Types of Collisions (return Booleans

Collision1

Tetra hits ground, added to pile, Comparing Tetra, World-Size

Tetra hits list of blocks, added to pile, Comparing Tetra, Pile

Collision2

Tetra hits the wall, comparing tetra, world-size

Collision3

Tetra hits other blocks, left and right, comparing tetra, pile

Collision4

rotating tetra hits a block, comparing tetra, pile

collision?

Takes tetra, pile, name of function to run, Runs function on tetra, compares to pile and world-size, Ex. functions: tetra-next, tetra-rotate, etc.

Functions

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

End-game?

Game Elements