NUD GOLF


An obvious thing to try is NUD GOLF.

This is a programming game where you try and write short computer programs in your golf language.

This one is for NUD. See the README (lengthy) or cheatsheet (brief)

Without more ado, challenge and solution the first.

If you submit challenges and solutions to me on the mastodon, I will add them to the git and write itch.io articles presenting them. Mastodon: https://mastodon.sdf.org/@screwtape

See everyone for Wednesday's/Tuesday Night's show. (See the mastodon.).

1. Challenge 1   screwlisp

Disaster! Using your NUD skillz, fix the typo!

'(welcome (foo foo foo ofo bar bar bar bar))

1.1. Screwlisp's solution   screwlisp

(progn
  (require :nud)

  (in-package :nud/user)
  (defvar *test1* '(welcome (foo foo foo ofo bar bar bar bar)))
  (gird *test1*)
  ^^ ^^ >> [ >> ] (loop :repeat 8 :do (progn >>) :finally (return *test1*)))
<colgroup> <col class="org-left" /> <col class="org-left" /> <col class="org-left" /> <col class="org-left" /> <col class="org-left" /> <col class="org-left" /> <col class="org-left" /> <col class="org-left" /> </colgroup>
FOO FOO FOO FOO BAR BAR BAR BAR

Full disclosure, I was surprised WELCOME vanished from my test1.

2. Challenge 2

Could be you

</div>

Author: Screwlisp

Created: 2025-01-20 Mon 14:56

Validate

Get lispmoo2

Comments

Log in with itch.io to leave a comment.

(4 edits)

https://codeberg.org/tfw/nud !

mkdir -p ~/common-lisp/
cd ~/common-lisp/
git clone https :// codeberg.org/tfw/nud.git
sbcl
(require :nud)
(in-package :nud/user)

Itch.io can't deal with https git urls in code blocks.