OVERVIEW
o task allocation
o uml diagrams
o use case diagrams
o randomization algorithm
o rotation algorithm
Slide 3
Slide 3 text
TASK ALLOCATION
BRANDON
o layout
o theme music
o tetriminos
o randomization
o scoring
MAXWELL
o menus
o rotation
o hold, next
o levels
o game over
o sound effects
RANDOMIZATION 0 2
1 1
2 6
3 3
4 5
5 4
6 0
constructor
generate queue
next piece
fill array with
unique integers
last
Slide 9
Slide 9 text
RANDOMIZATION 0 2
1 1
2 6
3 3
4 5
5 4
6 0
constructor
generate queue
next piece
return last element
decrement last pointer
last
return 0
Slide 10
Slide 10 text
RANDOMIZATION 0 2
1 1
2 6
3 3
4 5
5 4
6 0
constructor
generate queue
next piece
return last element
decrement last pointer
last
return 4
Slide 11
Slide 11 text
RANDOMIZATION 0 2
1 1
2 6
3 3
4 5
5 4
6 0
constructor
generate queue
next piece
return last element
decrement last pointer
last
return 5
Slide 12
Slide 12 text
RANDOMIZATION 0 2
1 1
2 6
3 3
4 5
5 4
6 0
constructor
generate queue
next piece
return last element
decrement last pointer
last
return 3
Slide 13
Slide 13 text
RANDOMIZATION 0 2
1 1
2 6
3 3
4 5
5 4
6 0
constructor
generate queue
next piece
return last element
decrement last pointer
last
return 6
Slide 14
Slide 14 text
RANDOMIZATION 0 2
1 1
2 6
3 3
4 5
5 4
6 0
constructor
generate queue
next piece
return last element
decrement last pointer
last
return 1
Slide 15
Slide 15 text
RANDOMIZATION 0 2
1 1
2 6
3 3
4 5
5 4
6 0
constructor
generate queue
next piece
return last element
decrement last pointer
last
return 2
Slide 16
Slide 16 text
RANDOMIZATION 0 3
1 4
2 1
3 0
4 5
5 2
6 6
constructor
generate queue
next piece
fill array with
unique integers
last
Slide 17
Slide 17 text
ROTATION
algorithm
Slide 18
Slide 18 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
J-tetrimino
Slide 19
Slide 19 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
central mino index = 1
Slide 20
Slide 20 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
select mino 0
Slide 21
Slide 21 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
mino movement 1
Slide 22
Slide 22 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
mino movement 2
Slide 23
Slide 23 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
mino movement complete
Slide 24
Slide 24 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
select mino 2
Slide 25
Slide 25 text
0
1
3
2
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
mino movement 1
Slide 26
Slide 26 text
0
1
3
2
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
mino movement 2
Slide 27
Slide 27 text
0
1
3
2
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
mino movement complete
Slide 28
Slide 28 text
0
1
3
2
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
select mino 3
Slide 29
Slide 29 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
mino movement 1
Slide 30
Slide 30 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
mino movement 2
Slide 31
Slide 31 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
mino movement complete
Slide 32
Slide 32 text
0
1
2
3
ROTATION
begin
identify central mino
evaluate minos:
• check rotation path
• movement direction
• check if occupied
end
rotation complete
Slide 33
Slide 33 text
1
ROTATION
square radius 1
gives the direction to
move next when rotating
a mino
the center is the central
cell in the tetrimino
all cells rotate about the
central cell as if it were the
center of the diagram
works clockwise
Slide 34
Slide 34 text
1
ROTATION
square radius 2
gives the direction to
move next when rotating
a mino
the center is the central
cell in the tetrimino
all cells rotate about the
central cell as if it were the
center of the diagram
works clockwise
Slide 35
Slide 35 text
1
ROTATION
gives the direction to
move next when rotating
a mino
the center is the central
cell in the tetrimino
all cells rotate about the
central cell as if it were the
center of the diagram
works clockwise
movement direction