diff options
author | Ian C <ianc@noddybox.co.uk> | 2018-12-20 10:13:00 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2018-12-20 10:13:00 +0000 |
commit | 4cc6d2dad430552a7df8a71bf541742539993fae (patch) | |
tree | b80734e570b925f7fb39e923deec1df131daa05e | |
parent | 3671091be220ebed449be036f0b94041155ef476 (diff) |
Fixed warning and added README.
-rw-r--r-- | README | 31 | ||||
-rw-r--r-- | csol.c | 3 |
2 files changed, 34 insertions, 0 deletions
@@ -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. @@ -381,6 +381,9 @@ static int CanCardSitOnTop(Card card, Card on) case Diamond: ret = (on.suit == Spade || on.suit == Club); break; + + case NoSuit: + break; } } } |