Rack-O Example 2

example game

$ python3 racko.py
Welcome to Solitaire Rack-O!

Here is your rack:
SLOT CARD
  10   28
   9    3
   8   19
   7   29
   6    2
   5   12
   4   33
   3   34
   2   37
   1   22

The face-up card is 38.
(D)raw, take the (F)aceup card, or (Q)uit? F
Choose a slot to exchange.
Which slot do you want to put it in? 10

Here is your rack:
SLOT CARD
  10   38
   9    3
   8   19
   7   29
   6    2
   5   12
   4   33
   3   34
   2   37
   1   22

The face-up card is 26.
(D)raw, take the (F)aceup card, or (Q)uit? F
Choose a slot to exchange.
Which slot do you want to put it in? 6

Here is your rack:
SLOT CARD
  10   38
   9    3
   8   19
   7   29
   6   26
   5   12
   4   33
   3   34
   2   37
   1   22

The face-up card is 10.
(D)raw, take the (F)aceup card, or (Q)uit? F
Choose a slot to exchange.
Which slot do you want to put it in? 4

Here is your rack:
SLOT CARD
  10   38
   9    3
   8   19
   7   29
   6   26
   5   12
   4   10
   3   34
   2   37
   1   22

The face-up card is 2.
(D)raw, take the (F)aceup card, or (Q)uit? F
Choose a slot to exchange.
Which slot do you want to put it in? 1

Here is your rack:
SLOT CARD
  10   38
   9    3
   8   19
   7   29
   6   26
   5   12
   4   10
   3   34
   2   37
   1    2

The face-up card is 1.
(D)raw, take the (F)aceup card, or (Q)uit? D
You drew a 23
Choose a slot to exchange or select 0 to discard.
Which slot do you want to put it in? 5

Here is your rack:
SLOT CARD
  10   38
   9    3
   8   19
   7   29
   6   26
   5   23
   4   10
   3   34
   2   37
   1    2

The face-up card is 35.
(D)raw, take the (F)aceup card, or (Q)uit? F
Choose a slot to exchange.
Which slot do you want to put it in? 9

Here is your rack:
SLOT CARD
  10   38
   9   35
   8   19
   7   29
   6   26
   5   23
   4   10
   3   34
   2   37
   1    2

The face-up card is 15.
(D)raw, take the (F)aceup card, or (Q)uit? F
Choose a slot to exchange.
Which slot do you want to put it in? 4

Here is your rack:
SLOT CARD
  10   38
   9   35
   8   19
   7   29
   6   26
   5   23
   4   15
   3   34
   2   37
   1    2

The face-up card is 13.
(D)raw, take the (F)aceup card, or (Q)uit? F
Choose a slot to exchange.
Which slot do you want to put it in? 3

Here is your rack:
SLOT CARD
  10   38
   9   35
   8   19
   7   29
   6   26
   5   23
   4   15
   3   13
   2   37
   1    2

The face-up card is 24.
(D)raw, take the (F)aceup card, or (Q)uit? D
You drew a 14
Choose a slot to exchange or select 0 to discard.
Which slot do you want to put it in? 0

Here is your rack:
SLOT CARD
  10   38
   9   35
   8   19
   7   29
   6   26
   5   23
   4   15
   3   13
   2   37
   1    2

The face-up card is 33.
(D)raw, take the (F)aceup card, or (Q)uit? F
Choose a slot to exchange.
Which slot do you want to put it in? 8

Here is your rack:
SLOT CARD
  10   38
   9   35
   8   33
   7   29
   6   26
   5   23
   4   15
   3   13
   2   37
   1    2

The face-up card is 27.
(D)raw, take the (F)aceup card, or (Q)uit? D
You drew a 6
Choose a slot to exchange or select 0 to discard.
Which slot do you want to put it in? 2

RACKO! You won in 11 turns!