diff options
| author | dholland <dholland@NetBSD.org> | 2010-03-29 03:51:55 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2010-03-29 03:51:55 +0000 |
| commit | 3c3f8c0880fed372a83ed917c866247edb974156 (patch) | |
| tree | 3f30a09a6be5d23ab795fef993a908ad3695c16d /gomoku/gomoku.h | |
| parent | e92892fbd077218b61c0a3325de6df66494b4589 (diff) | |
| download | bsdgames-darwin-3c3f8c0880fed372a83ed917c866247edb974156.tar.gz bsdgames-darwin-3c3f8c0880fed372a83ed917c866247edb974156.zip | |
Better user interface. From OpenBSD, written by Paul Janzen quite a
long time ago. A few minor adjustments by yours truly.
Diffstat (limited to 'gomoku/gomoku.h')
| -rw-r--r-- | gomoku/gomoku.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gomoku/gomoku.h b/gomoku/gomoku.h index bf83379a..bf97b1cf 100644 --- a/gomoku/gomoku.h +++ b/gomoku/gomoku.h @@ -1,4 +1,4 @@ -/* $NetBSD: gomoku.h,v 1.17 2009/08/12 06:19:17 dholland Exp $ */ +/* $NetBSD: gomoku.h,v 1.18 2010/03/29 03:51:55 dholland Exp $ */ /* * Copyright (c) 1994 @@ -42,9 +42,16 @@ #define BSZ 19 #define BSZ1 (BSZ+1) #define BSZ2 (BSZ+2) +#define BSZ3 (BSZ+3) +#define BSZ4 (BSZ+4) #define BAREA (BSZ2*BSZ1+1) -/* frame dimentions (based on 5 in a row) */ +#define TRANSCRIPT_COL 46 /* necessarily == 2*BSZ4 */ + +/* interactive curses stuff */ +#define BGOTO(y,x) move(BSZ - (y), 2 * (x) + 3) + +/* frame dimensions (based on 5 in a row) */ #define FSZ1 BSZ #define FSZ2 (BSZ-4) #define FAREA (FSZ1*FSZ2 + FSZ2*FSZ2 + FSZ1*FSZ2 + FSZ2*FSZ2) @@ -261,6 +268,7 @@ extern int debug; #define ASSERT(x) void bdinit(struct spotstr *); +int get_coord(void); int get_line(char *, int); void ask(const char *); void dislog(const char *); |
