Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Post Code

Name: Anonymous 2011-03-04 21:33

One recurring complaint is that nobody talks about code on /prog/. So everyone write go and write some code, any code, that does something, anything, and post it. A small explanation wouldn't go amiss either.

Name: Anonymous 2011-03-15 8:01


aStar s h next -> with [0=[s no 0]] []
  {:r os:ye? vs
    -> o:os.lhd,1 os=:os.ltl // pop lowest scored node
    -> next o,0 o,2
    |> {ye -> o.{:r [xy p:ye? @_] -> [@p.r xy]} // compile path
       ;ns -> for [n nG] in ns pG:vs.n // for each viable neighbor
                if pG.no? || nG < pG then do // no shorter path?
                  [[nG+n.h n]=[n o nG] @!os] // g+h
                  [n=nG @!vs]
           -> r os [o,0=o,2 @vs]}}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List