Update gitignore, add requirements to README, rework bob and build

This commit is contained in:
2025-02-14 21:41:21 +00:00
parent f0e7c9f3f0
commit f127e1e955
4 changed files with 19 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
TAGS TAGS
bin/ bin/
/system-index.txt

View File

@@ -16,3 +16,11 @@ Goals:
- Games may have up to 12 players - Games may have up to 12 players
- Games may include bots - Games may include bots
- Bots have different ranks of difficulty - Bots have different ranks of difficulty
Requirements:
- Steele Bank Common Lisp (http://www.sbcl.org/)
- Quick Lisp (https://www.quicklisp.org/beta/)
Run:
$ ./build
to compile the program.

View File

@@ -13,11 +13,12 @@
;;; Commentary: ;;; Commentary:
;; Little bit of code scaffolding that makes it easy to load or build the ;; Code scaffolding to make loading/building the system easy. Named after "Bob
;; system. Named after "Bob the Builder". ;; the Builder".
;;; Code: ;;; Code:
;; Try and push the current directory into the quicklisp project directories.
(pushnew (truename (uiop:getcwd)) (pushnew (truename (uiop:getcwd))
ql:*local-project-directories*) ql:*local-project-directories*)
@@ -27,9 +28,13 @@
(in-package :bob) (in-package :bob)
(defun init ()
(ql:quickload :cantedraw))
(defun load-all () (defun load-all ()
(ql:quickload :cantedraw :verbose t)) (init)
(asdf:load-system :cantedraw))
(defun build () (defun build ()
(load-all) (init)
(asdf:make :cantedraw)) (asdf:make :cantedraw))

1
build
View File

@@ -2,6 +2,7 @@
set -xe set -xe
rm -f ./bin/cantedraw
sbcl --non-interactive \ sbcl --non-interactive \
--load "./bob.lisp" \ --load "./bob.lisp" \
--eval "(bob:build)" --eval "(bob:build)"