#tootcoding #NicCLIM ( #gamedev #devlog ) #programming #fedi #McCLIM #commonLisp

In this article I am further investigating collaborative fediversal learning and programming.

(ql:quickload :mcclim)
(compile-file #P"~/Downloads/nicclim.lisp" :load t)
(in-package :nic)
(require 'bordeaux-threads)
(require 'uiop)
(uiop:chdir "~/GAME/") ; you do you.
(rect-file 'garden 5 5 '(soil))
(bt:make-thread
(lambda ()
(in-package :nic)
(enclose-map 'garden)))

https://screwlisp.small-web.org/tootcoding/nicclim-0/

#tootcoding #commonLisp
(loop
:for cmd
:in (list '(com-set-cur1 grass)
'(com-l) '(com-j) '(com-push-cur1))
:do
(execute-frame-command *nic* cmd)
(sleep 1))
#tootcoding #commonLisp
(uiop:run-program "gimp")
;; I saved IMGS/SOIL.PNG and IMGS/GRASS.PNG .
(loop
:for cmd
:in (list '(com-set-cur1 imgs/grass.png)
'(com-swap)
'(com-set-cur1 grass)
'(com-set-bitmap))
:do
(execute-frame-command *nic* cmd)
(sleep 1))
(loop
:for cmd
:in (list '(com-set-cur1 imgs/soil.png)
'(com-swap)
'(com-set-cur1 soil)
'(com-set-bitmap))
:do
(execute-frame-command *nic* cmd)
(sleep 1))
#tootcoding #commonLisp
(loop
:for cmd
:in (list '(com-set-cur1 grass)
'(com-l) '(com-j) '(com-push-cur1)
'(com-h) '(com-push-cur1))
:do
(execute-frame-command *nic* cmd)
(sleep 1))

#tootcoding #commonLisp
(execute-frame-command *nic* '(writef garden))

EDIT:
On disk, GARDEN is now:
(SOIL) (SOIL) (SOIL) (SOIL) (SOIL)
(SOIL) (SOIL GRASS) (SOIL) (SOIL) (SOIL)
(SOIL) (SOIL) (SOIL) (SOIL GRASS) (SOIL GRASS)
(SOIL) (SOIL) (SOIL) (SOIL) (SOIL)

@screwlisp you are yak shaving. do the logic first. art probably lives in your head until then
@iacore Mm, I'm writing a decision tree for automatically laying out logic and fiercely procrastinating. I agree with you that I am not at risk of winning a Nobel by copying a handful of vi commands into basically-a-spreadsheet. However I think that having something like this is an important reasoning target amoung reasons to be clear that nothing like trying-to-generate-ANSI-CL is intended. Also lisp game jam is happening in a week of which movin' stuff around a grid with pictures would be ok.
@iacore I mean logically planting vegetables, but I don't use SAT solvers much (...until now!)
@iacore by the way, what did you think about https://chaos.social/@ChuckMcManis/115431431667801043 ?
Chuck (@[email protected])

@[email protected] I think you overstate my qualifications but, as you know, I always have an opinion 😄 A quick two part answer: 1/2 The current wave of "AI" stuff is trying to apply it to things it can never do successfully without some form of reasoning ability, and no amount of memorization and training will spontaneously create reasoning. The best you can hope for is that the task your asking it to do has been done before and its in the model. ...

chaos.social