summaryrefslogtreecommitdiffstats
path: root/backgammon
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2013-09-13 20:46:50 +0000
committerjoerg <joerg@NetBSD.org>2013-09-13 20:46:50 +0000
commitd4cf33d69956e2422feab8c15e78d06c35f58059 (patch)
treed8304b5a9d92ff46ea8f56b06a849b04d8ab2c56 /backgammon
parentc5659a6489ac7b9cedfa265befaa5b680d36af23 (diff)
downloadbsdgames-darwin-d4cf33d69956e2422feab8c15e78d06c35f58059.tar.gz
bsdgames-darwin-d4cf33d69956e2422feab8c15e78d06c35f58059.tar.zst
bsdgames-darwin-d4cf33d69956e2422feab8c15e78d06c35f58059.zip
GC descr and helpm.
Diffstat (limited to 'backgammon')
-rw-r--r--backgammon/common_source/subs.c17
-rw-r--r--backgammon/teachgammon/teach.c12
2 files changed, 4 insertions, 25 deletions
diff --git a/backgammon/common_source/subs.c b/backgammon/common_source/subs.c
index 9a0a3723..e362e5ad 100644
--- a/backgammon/common_source/subs.c
+++ b/backgammon/common_source/subs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: subs.c,v 1.19 2012/10/13 19:19:39 dholland Exp $ */
+/* $NetBSD: subs.c,v 1.20 2013/09/13 20:46:50 joerg Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: subs.c,v 1.19 2012/10/13 19:19:39 dholland Exp $");
+__RCSID("$NetBSD: subs.c,v 1.20 2013/09/13 20:46:50 joerg Exp $");
#endif
#endif /* not lint */
@@ -47,19 +47,6 @@ static const char plred[] = "Player is red, computer is white.";
static const char plwhite[] = "Player is white, computer is red.";
static const char nocomp[] = "(No computer play.)";
-static const char *const descr[] = {
- "Usage: backgammon [-] [n r w b pr pw pb t3a]\n",
- "\t-\tgets this list\n\tn\tdon't ask for rules or instructions",
- "\tr\tplayer is red (implies n)\n\tw\tplayer is white (implies n)",
- "\tb\ttwo players, red and white (implies n)",
- "\tpr\tprint the board before red's turn",
- "\tpw\tprint the board before white's turn",
- "\tpb\tprint the board before both player's turn",
- "\tterm\tterminal is a term",
- "\tsfile\trecover saved game from file",
- 0
-};
-
void
errexit(const char *s)
{
diff --git a/backgammon/teachgammon/teach.c b/backgammon/teachgammon/teach.c
index 0fb58d50..f9805dc8 100644
--- a/backgammon/teachgammon/teach.c
+++ b/backgammon/teachgammon/teach.c
@@ -1,4 +1,4 @@
-/* $NetBSD: teach.c,v 1.23 2012/10/13 19:25:22 dholland Exp $ */
+/* $NetBSD: teach.c,v 1.24 2013/09/13 20:46:50 joerg Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,21 +39,13 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0
static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: teach.c,v 1.23 2012/10/13 19:25:22 dholland Exp $");
+__RCSID("$NetBSD: teach.c,v 1.24 2013/09/13 20:46:50 joerg Exp $");
#endif
#endif /* not lint */
#include "back.h"
#include "tutor.h"
-static const char *const helpm[] = {
- "\nEnter a space or newline to roll, or",
- " b to display the board",
- " d to double",
- " q to quit\n",
- 0
-};
-
static const char *const contin[] = {
"",
0