From fb3a8a316c1960990044b83faf0ffc188d6400a6 Mon Sep 17 00:00:00 2001 From: Paul Janzen Date: Thu, 24 Sep 1998 06:45:09 +0000 Subject: NetBSD changes and a few obvious fixes --- games/tetris/shapes.c | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'games/tetris/shapes.c') diff --git a/games/tetris/shapes.c b/games/tetris/shapes.c index 8e4525cc911..f5d9f4e3d56 100644 --- a/games/tetris/shapes.c +++ b/games/tetris/shapes.c @@ -1,3 +1,4 @@ +/* $OpenBSD: shapes.c,v 1.3 1998/09/24 06:45:07 pjanzen Exp $ */ /* $NetBSD: shapes.c,v 1.2 1995/04/22 07:42:44 cgd Exp $ */ /*- @@ -57,25 +58,25 @@ #define BR B_COLS+1 /* bottom right */ struct shape shapes[] = { - /* 0*/ 7, TL, TC, MR, - /* 1*/ 8, TC, TR, ML, - /* 2*/ 9, ML, MR, BC, - /* 3*/ 3, TL, TC, ML, - /* 4*/ 12, ML, BL, MR, - /* 5*/ 15, ML, BR, MR, - /* 6*/ 18, ML, MR, /* sticks out */ 2, - /* 7*/ 0, TC, ML, BL, - /* 8*/ 1, TC, MR, BR, - /* 9*/ 10, TC, MR, BC, - /*10*/ 11, TC, ML, MR, - /*11*/ 2, TC, ML, BC, - /*12*/ 13, TC, BC, BR, - /*13*/ 14, TR, ML, MR, - /*14*/ 4, TL, TC, BC, - /*15*/ 16, TR, TC, BC, - /*16*/ 17, TL, MR, ML, - /*17*/ 5, TC, BC, BL, - /*18*/ 6, TC, BC, /* sticks out */ 2*B_COLS, + /* 0*/ { 7, { TL, TC, MR } }, + /* 1*/ { 8, { TC, TR, ML } }, + /* 2*/ { 9, { ML, MR, BC } }, + /* 3*/ { 3, { TL, TC, ML } }, + /* 4*/ { 12, { ML, BL, MR } }, + /* 5*/ { 15, { ML, BR, MR } }, + /* 6*/ { 18, { ML, MR, 2 } }, /* sticks out */ + /* 7*/ { 0, { TC, ML, BL } }, + /* 8*/ { 1, { TC, MR, BR } }, + /* 9*/ { 10, { TC, MR, BC } }, + /*10*/ { 11, { TC, ML, MR } }, + /*11*/ { 2, { TC, ML, BC } }, + /*12*/ { 13, { TC, BC, BR } }, + /*13*/ { 14, { TR, ML, MR } }, + /*14*/ { 4, { TL, TC, BC } }, + /*15*/ { 16, { TR, TC, BC } }, + /*16*/ { 17, { TL, MR, ML } }, + /*17*/ { 5, { TC, BC, BL } }, + /*18*/ { 6, { TC, BC, 2*B_COLS } }/* sticks out */ }; /* -- cgit v1.2.3