summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-12-20 10:13:00 +0000
committerIan C <ianc@noddybox.co.uk>2018-12-20 10:13:00 +0000
commit4cc6d2dad430552a7df8a71bf541742539993fae (patch)
treeb80734e570b925f7fb39e923deec1df131daa05e
parent3671091be220ebed449be036f0b94041155ef476 (diff)
Fixed warning and added README.
-rw-r--r--README31
-rw-r--r--csol.c3
2 files changed, 34 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..e3c6877
--- /dev/null
+++ b/README
@@ -0,0 +1,31 @@
+Building
+--------
+
+Simply type make on a UNIX system with a working CURSES library. The termcap
+library may need adding on some systems.
+
+Playing
+-------
+
+On starting you'll get a menu with a choice of Klondike games or to quit.
+
+On starting a game of Klondike, the following applies
+
+ * Use the cursor keys to move the cursor around.
+
+ * Press RETURN to select a bunch of cards to move. Press RETURN again
+ when you are where you want to move the cards.
+
+ * Use space to draw the next set of cards.
+
+ * Use 'S' to move a card from the drawn cards to the current column.
+
+ * Use 'P' to put the current card on the suits piles. If invalid it
+ will attempt to move the card from the drawn pile.
+
+ * Press '1', '2', '3' or '4' to move the top card from the hearts,
+ diamonds, spades or clubs suit pile respectively back onto the board.
+
+ * Press 'Q' to quit.
+
+The '?' key can be used to get help at anytime.
diff --git a/csol.c b/csol.c
index ea3d2ff..1444616 100644
--- a/csol.c
+++ b/csol.c
@@ -381,6 +381,9 @@ static int CanCardSitOnTop(Card card, Card on)
case Diamond:
ret = (on.suit == Spade || on.suit == Club);
break;
+
+ case NoSuit:
+ break;
}
}
}