Group: comp.lang.forth · Group Profile · Search for Piecen in comp.lang.forth
Author: Ian Osgood
Date: Jan 23, 2007 22:53
...I had some more ideas, mostly for code reduction, but maybe they are also faster. 1. Calculate absolute shift on the stack, eliminating "shift" and "adjust": \ variable shift \ : adjust ... : store-solution ( pieceN shiftN ... piece0 board ) 0 ( absolute-shift ) here 64 [char] * fill depth 1- 2 swap do i pick over put-piece i 1- pick + -2 +loop drop ; 2. Condense the ...
|