Mazes written lisp

@clewis clewis authored on 18 Dec 2023
.gitignore attempting to calc distances and proper way of calling 1 year ago
README.md initial commit from former fossil repo 1 year ago
binary-tree.lisp initial commit from former fossil repo 1 year ago
distance-grid.lisp displays distance value of each cell if distance 1 year ago
distances.lisp refactored distances class and cell::distances method as defined in the book 1 year ago
grid.lisp random function retains state unless called with (make-random-state t) 1 year ago
mazes.asd displays distance value of each cell if distance 1 year ago
mazes.lisp displays distance value of each cell if distance 1 year ago
package.lisp initial commit from former fossil repo 1 year ago
side-winder.lisp initial commit from former fossil repo 1 year ago
statements.lisp refactored distances class and cell::distances method as defined in the book 1 year ago
README.md

mazes

Curtis Lewis defgeneric@protonmail.com

Maze examples from Mazes For Programmers written in Common Lisp


Notes:


2023-04-15 08:07:33 Saturday

Attempting to make a branch in fossil. Apparently I need to make a change first. Thus the reason for this comment.

2023-03-24 Friday


(defgeneric link ((current-cell cell) (neighbor-cell cell) (bidi t)) (:documentation "Links current cell with neighbor cell. If bidi (bi-directional) is true both cells are updated"))

Execution of a form compiled with errors. Form: (DEFGENERIC LINK ((CURRENT-CELL CELL) (NEIGHBOR-CELL CELL) (BIDI T)) (:DOCUMENTATION "Links current cell with neighbor cell. If bidi (bi-directional) is true both cells are updated")) Compile-time error:

Required argument is not a symbol: (CURRENT-CELL CELL)


2023-03-26 09:30:29 Sunday

Can not use constants to create array... (setf matrix (make-array '(rows cols) :initial-element nil))

ref: https://stackoverflow.com/questions/19085980/why-cant-constants-be-used-as-array-dimensions-in-common-lisp-type-specifiers

Last sentence in user797257 response

1st tried '(,rows ,cols) then got an error unquote not backquoted

Finally `(,rows ,cols)