beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
peterhil has joined #picolisp
<tankf33der> morning
<tankf33der> my new strategy: first move for sequence do I then check myMove always returs NON-NIL moves, and check mate for latest position after sequence.
<tankf33der> works.
<tankf33der> 200k puzzles.
<tankf33der> afk.
<Regenaxer> Good morning tankf33der
<Regenaxer> ok
<Regenaxer> e
olaf_h has joined #picolisp
peterhil has quit [Ping timeout: 245 seconds]
aw- has quit [Quit: Leaving.]
<tankf33der> 17k puzzles done for mate in two
<tankf33der> ~55 puzzles per minute
<tankf33der> 232k puzzles in db mate in two.
<Regenaxer> So if it is a e.g. mate-3, you test in 3 separate steps?
<tankf33der> I provide first force move to sequence engine must find.
<tankf33der> It does not matter mate in one or three :)
<Regenaxer> ok
peterhil has joined #picolisp
<tankf33der> datebase have 1920 puzzles mate in 5. Will be fun.
peterhil has quit [Ping timeout: 252 seconds]
<Regenaxer> "provide first force move": But then the real thrill is gone, finding a mate in 3. It is reduced to finding one in 2 or 1, right?
<tankf33der> Yeap
<tankf33der> i think so
<Regenaxer> Then better ignore the exact path of moves, and check only *if* it finds a mate in 3, with the correct final position?
<tankf33der> I exactly this way.
<tankf33der> I do exactly this way.
<Regenaxer> Perfect
peterhil has joined #picolisp
aw- has joined #picolisp
beneroth has quit [Quit: Leaving]
aw- has quit [Quit: Leaving.]
aw- has joined #picolisp
clacke has joined #picolisp
<tankf33der> Regenaxer
<tankf33der> name spaces again
<tankf33der> question:
<tankf33der> why i cant call mike function by: pil code.l -mike 1234
<tankf33der> ?
<tankf33der> totally lost.
<Regenaxer> If you start just pil then namespace is only 'pico'
<Regenaxer> pil code.l -chess~mike ...
<Regenaxer> or
<Regenaxer> pil code.l --symbolsd chess -mike ...
olaf_h has quit [Quit: Leaving]
<Regenaxer> pil code.l --symbols chess -mike ...
<Regenaxer> or
<Regenaxer> pil code.l --symbols simul --symbols chess -mike ...
<Regenaxer> but simul is not needed for that call
<Regenaxer> The point is that (symbols '...) has repl-local scope
<Regenaxer> So after 'pil code.l' is is back to just (pico)
<tankf33der> $ pil mateInANY.l -chess~mike 1
<tankf33der> last-bye
<tankf33der> mike is not called
<tankf33der> mike was not called
<Regenaxer> sure
<Regenaxer> only (de mike ..)
<Regenaxer> mateInANY.l exits
<Regenaxer> The -chess~mike is never reached
<tankf33der> I would like call mike
<tankf33der> r_.l is mateInANY.l
<Regenaxer> same as before?
<tankf33der> yeap
<Regenaxer> Yes, it does (bye)
<tankf33der> but mike was not call and i see only last-bye
<Regenaxer> Call (mike) before the (bye)
<Regenaxer> e.g. (msg 'last-bye) (mike) (bye)
<tankf33der> i would like call it from command line and pass xz file with mates inside
<Regenaxer> then remove (bye) from mateInANY.l :)
<Regenaxer> pil mateInANY.l -chess~mike 1 ... -bye
<tankf33der> removed, see
<tankf33der> $ pil mateInANY.l -chess~mike 1
<tankf33der> last-bye
<tankf33der> $
<tankf33der> no call mike
<Regenaxer> There is still (bye)
<Regenaxer> last line!
<Regenaxer> I would also remove (bye) from mike
<Regenaxer> call it at the end of the command line
<Regenaxer> -bye
<Regenaxer> But the problem here is (bye) in the last line
<tankf33der> $ pil mateInANY.l -chess~mike 1 -bye
<tankf33der> last-bye
<tankf33der> maybe i wrongly use engine.l, fen.l ?
<tankf33der> no call mike
<Regenaxer> Not sur
<Regenaxer> but namespaces are not the problem
<Regenaxer> It would complain "undefined"
<Regenaxer> do
<Regenaxer> $ pil mateInANY.l +
<Regenaxer> Then look what is there
<Regenaxer> (pp 'mike)
<Regenaxer> after (symbols ...) of course
<Regenaxer> or better
<Regenaxer> $ pil mateInANY.l --symbols chess +
<Regenaxer> then you have (chess pico) in the repl
<Regenaxer> No simul though
<tankf33der> works as expected if I remove (let Cnt 0 ...
<tankf33der> bock
<tankf33der> block
<tankf33der> i will put if modified inside mike
<Regenaxer> (let Cnt ...) looks all right (?)
<Regenaxer> Perhaps someone (bye)s inside somewhere?
<Regenaxer> (trace 'bye)
<Regenaxer> Mysterious ;)
<tankf33der> problem was because in inside (let Cnt
<tankf33der> it run let block and then call mike
<Regenaxer> and mike did bye?
<tankf33der> does not matter
<tankf33der> $ pil t1.l -mike "abc" -bye
<tankf33der> mike ("abc" "-bye")
<tankf33der> "abc" -- Open error: No such file or directory
<tankf33der> ?
<tankf33der> (de mike ()
<tankf33der> )
<tankf33der> (println 'mike (argv))
<tankf33der> t1.l is three lines above ^^^^
<tankf33der> why pil try open "abc" ?
<Regenaxer> You did not remove "abc" from the command line
<Regenaxer> in 'mike' do (println 'mike (opt))
<tankf33der> aaa
<tankf33der> issue closed then.
<tankf33der> i will play
<Regenaxer> :)
<Regenaxer> good :)
peterhil has quit [Ping timeout: 252 seconds]
peterhil has joined #picolisp