Lines Matching defs:shape
86 * A `shape' is the fundamental thing that makes up the game. There
95 * Except for 3 and 6, the center of each shape is one of the blots.
97 * described as offsets from the center. Shape 3 is the same under
99 * so that it `sticks out' upward and leftward. Except for shape 6,
101 * shape 6's center `wobbles' as it rotates, so that while it `sticks out'
109 * The shape is moved steadily downward until it collides with something:
110 * either another shape, or the bottom of the board. When the shape can
113 * these rows move down to make more room. A new random shape is again
115 * The game ends when the new shape will not fit at (1,5).
120 * so that each shape contains the index of the new shape obtained by
121 * rotating the current shape. Due to symmetry, each shape has exactly
126 struct shape {
128 int rot; /* index of rotated version of this shape */
132 extern const struct shape shapes[];
135 extern const struct shape *nextshape;
160 * When the shape comes to rest, and is integrated into the board,
161 * we score one point. If the shape is high up (at a low-numbered row),
162 * and the user hits the space bar, the shape plummets all the way down,
174 int fits_in(const struct shape *, int);
175 void place(const struct shape *, int, int);