User input is shown in bold.

Main deck: [24] [A♥]
Foundation : [] [] [] [] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 
Pile 4: xx xx xx 9♥ 
Pile 5: xx xx xx xx 6♦ 
Pile 6: xx xx xx xx xx 9♣ 
Pile 7: xx xx xx xx xx xx A♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 0
  Place A♥ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 10

Main deck: [23] [4♠]
Foundation : [] [] [A♥] [] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 
Pile 4: xx xx xx 9♥ 
Pile 5: xx xx xx xx 6♦ 
Pile 6: xx xx xx xx xx 9♣ 
Pile 7: xx xx xx xx xx xx A♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 7
  Which card (0 for bottom)? 6
  Place A♠ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 11

Main deck: [23] [4♠]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 
Pile 4: xx xx xx 9♥ 
Pile 5: xx xx xx xx 6♦ 
Pile 6: xx xx xx xx xx 9♣ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 4
  Which card (0 for bottom)? 3
  Place 9♥ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 3
Invalid move!

Main deck: [23] [4♠]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 
Pile 4: xx xx xx 9♥ 
Pile 5: xx xx xx xx 6♦ 
Pile 6: xx xx xx xx xx 9♣ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 6
  Which card (0 for bottom)? 5
  Place 9♣ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 3

Main deck: [23] [4♠]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 
Pile 5: xx xx xx xx 6♦ 
Pile 6: xx xx xx xx 5♦ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 0
  Place 4♠ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 6

Main deck: [22] [Q♣]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 
Pile 5: xx xx xx xx 6♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? d

Main deck: [21] [10♣]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 
Pile 5: xx xx xx xx 6♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? d

Main deck: [20] [8♠]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 
Pile 5: xx xx xx xx 6♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 0
  Place 8♠ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 4

Main deck: [19] [5♠]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 8♠ 
Pile 5: xx xx xx xx 6♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 0
  Place 5♠ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 5

Main deck: [18] [7♥]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 8♠ 
Pile 5: xx xx xx xx 6♦ 5♠ 
Pile 6: xx xx xx xx 5♦ 4♠ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 0
  Place 7♥ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 4

Main deck: [17] [4♦]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 8♠ 7♥ 
Pile 5: xx xx xx xx 6♦ 5♠ 
Pile 6: xx xx xx xx 5♦ 4♠ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 0
  Place 4♦ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 5

Main deck: [16] [3♦]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 8♠ 7♥ 
Pile 5: xx xx xx xx 6♦ 5♠ 4♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 0
  Place 3♦ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 6

Main deck: [15] [2♥]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 8♠ 7♥ 
Pile 5: xx xx xx xx 6♦ 5♠ 4♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 3♦ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 0
  Place 2♥ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 6

Invalid move!
Main deck: [15] [2♥]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 8♦ 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 
Pile 4: xx xx xx 9♥ 8♠ 7♥ 
Pile 5: xx xx xx xx 6♦ 5♠ 4♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 3♦ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 1
  Which card (0 for bottom)? 0
  Place 8♦ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 3

Main deck: [15] [2♥]
Foundation : [] [] [A♥] [A♠] 
Pile 1: 
Pile 2: xx K♠ 
Pile 3: xx xx 10♦ 9♣ 8♦ 
Pile 4: xx xx xx 9♥ 8♠ 7♥ 
Pile 5: xx xx xx xx 6♦ 5♠ 4♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 3♦ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 2
  Which card (0 for bottom)? 1
  Place K♠ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 1

Main deck: [15] [2♥]
Foundation : [] [] [A♥] [A♠] 
Pile 1: K♠ 
Pile 2: 7♠ 
Pile 3: xx xx 10♦ 9♣ 8♦ 
Pile 4: xx xx xx 9♥ 8♠ 7♥ 
Pile 5: xx xx xx xx 6♦ 5♠ 4♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 3♦ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck? m
Take from which pile (0 for main deck)? 2
  Which card (0 for bottom)? 0
  Place 7♠ where (1-7 for tableau piles, 8-11 for foundation piles ♣,♦,♥,♠)? 3

Main deck: [15] [2♥]
Foundation : [] [] [A♥] [A♠] 
Pile 1: K♠ 
Pile 2: 
Pile 3: xx xx 10♦ 9♣ 8♦ 7♠ 
Pile 4: xx xx xx 9♥ 8♠ 7♥ 
Pile 5: xx xx xx xx 6♦ 5♠ 4♦ 
Pile 6: xx xx xx xx 5♦ 4♠ 3♦ 
Pile 7: xx xx xx xx xx Q♠ 
(M)ove a card or (D)raw next card from main deck?