-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpieces.h
28 lines (24 loc) · 1.14 KB
/
pieces.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/***************************************************************************\
|* *|
|* pieces.h: A version of Tetris to run on ordinary terminals, *|
|* (ie., not needing a workstation, so should available *|
|* to peasant Newwords+ users. This module contains the *|
|* definitions of the pieces. *|
|* *|
|* Author: Mike Taylor ([email protected]) *|
|* Started: Fri May 26 12:26:05 BST 1989 *|
|* *|
\***************************************************************************/
struct piece {
char app[3];
int points;
/* `5' below is the maximum number of squares in pieces of any set */
int index[NO_ORIENTS][5][2];
};
/*-------------------------------------------------------------------------*/
extern struct piece pieces3[]; /* Pieces for "t3" (Harv's idea) */
extern struct piece pieces4[]; /* Pieces for vanilla tetris */
extern struct piece pieces5[]; /* Pieces for "pentris" (Kenton's idea) */
extern struct piece pieces7[]; /* Pieces for "tnt" (Pete Favelle's idea) */
extern struct piece *pieces;
/*-------------------------------------------------------------------------*/