diff options
Diffstat (limited to 'games/gomoku/makemove.c')
-rw-r--r-- | games/gomoku/makemove.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/games/gomoku/makemove.c b/games/gomoku/makemove.c index d48594063cc..2a4a27da00a 100644 --- a/games/gomoku/makemove.c +++ b/games/gomoku/makemove.c @@ -1,4 +1,4 @@ -/* $OpenBSD: makemove.c,v 1.1 1996/12/16 06:56:08 downsj Exp $ */ +/* $OpenBSD: makemove.c,v 1.2 1996/12/21 21:17:51 tholo Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -56,6 +56,7 @@ int weight[5] = { 0, 1, 7, 22, 100 }; * WIN The the winning move was just played. * TIE The game is a tie. */ +int makemove(us, mv) int us, mv; { @@ -213,13 +214,14 @@ makemove(us, mv) /* * fix up the overlap array due to updating spot osp. */ +void update_overlap(osp) struct spotstr *osp; { register struct spotstr *sp, *sp1, *sp2; register int i, f, r, r1, d, d1, n; int a, b, bmask, bmask1; - struct spotstr *esp; + struct spotstr *esp = NULL; char *str; for (r = 4; --r >= 0; ) { /* for each direction */ |