Blame


1 12687dd9 2023-08-04 jrmu ;; The first three lines of this file were inserted by DrScheme. They record metadata
2 12687dd9 2023-08-04 jrmu ;; about the language level of this file in a form that our tools can easily process.
3 12687dd9 2023-08-04 jrmu #reader(lib "htdp-advanced-reader.ss" "lang")((modname |32.3|) (read-case-sensitive #t) (teachpacks ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "teachpack" "htdp") (lib "gui.ss" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal #t #t none #f ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "teachpack" "htdp") (lib "gui.ss" "teachpack" "htdp")))))
4 12687dd9 2023-08-04 jrmu A solitaire board (board) is a (listof (listof booleans)), where true represents a filled square, false an empty square. In particular, for any given board, the n-th element is a list containing n booleans. For example, the representation of a equilaterial triangular board with 4 pegs to a side, missing the top peg:
5 12687dd9 2023-08-04 jrmu
6 12687dd9 2023-08-04 jrmu (list (list false)
7 12687dd9 2023-08-04 jrmu (list true true)
8 12687dd9 2023-08-04 jrmu (list true true true)
9 12687dd9 2023-08-04 jrmu (list true true true true))
10 12687dd9 2023-08-04 jrmu
11 12687dd9 2023-08-04 jrmu
12 12687dd9 2023-08-04 jrmu
13 12687dd9 2023-08-04 jrmu (listof (listof booleans))
14 12687dd9 2023-08-04 jrmu
15 12687dd9 2023-08-04 jrmu true represents a filled square, false an empty square