summaryrefslogtreecommitdiffstats
path: root/backgammon/teachgammon/tutor.h
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2012-10-13 19:19:38 +0000
committerdholland <dholland@NetBSD.org>2012-10-13 19:19:38 +0000
commit83f2ef7227030c4b88ec1006e49d9304aa6f7be0 (patch)
tree0f69865c3aa850090b15e95a6ae7a6d599c95e11 /backgammon/teachgammon/tutor.h
parentf70c1c7e831fd972c1f452e87709f5fe158e6f4d (diff)
downloadbsdgames-darwin-83f2ef7227030c4b88ec1006e49d9304aa6f7be0.tar.gz
bsdgames-darwin-83f2ef7227030c4b88ec1006e49d9304aa6f7be0.tar.zst
bsdgames-darwin-83f2ef7227030c4b88ec1006e49d9304aa6f7be0.zip
Pass the move info around instead of using it as a global.
Diffstat (limited to 'backgammon/teachgammon/tutor.h')
-rw-r--r--backgammon/teachgammon/tutor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/backgammon/teachgammon/tutor.h b/backgammon/teachgammon/tutor.h
index 26e55e1f..203f0fca 100644
--- a/backgammon/teachgammon/tutor.h
+++ b/backgammon/teachgammon/tutor.h
@@ -1,4 +1,4 @@
-/* $NetBSD: tutor.h,v 1.10 2011/08/26 06:18:16 dholland Exp $ */
+/* $NetBSD: tutor.h,v 1.11 2012/10/13 19:19:39 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -31,6 +31,8 @@
* @(#)tutor.h 8.1 (Berkeley) 5/31/93
*/
+struct move; /* in back.h */
+
struct situatn {
int brd[26];
int roll1;
@@ -63,4 +65,4 @@ extern const struct situatn test[];
void leave(void) __dead;
-void tutor(void) __dead;
+void tutor(struct move *) __dead;