Looks like a bug with the distance function.
I had the same bug before.Uncorrected version:

   >./ | (,+/) +/hxv {~ dbd i. <;._1 ',', 's,s,s,s,s,s,s,s,s,s,se,se,se,se'
14
   >./ | (,+/) +/hxv {~ dbd i. <;._1 ',',
'se,se,se,se,se,se,se,se,se,se,ne,ne,ne,ne'
14

Uncorrected version:

   >./ |  +/hxv {~ dbd i. <;._1 ',', 's,s,s,s,s,s,s,s,s,s,se,se,se,se'
10
   >./ |  +/hxv {~ dbd i. <;._1 ',',
'se,se,se,se,se,se,se,se,se,se,ne,ne,ne,ne'
14


On Mon, Dec 11, 2017 at 6:32 PM, Raul Miller <[email protected]> wrote:

> This can't be right.
>
> 10 s 4 se gets a distance of 10.
> But 10 se 4 ne gets a distance of 14.
>
> I suppose I should point out this issue about that algorithm, on that
> subreddit, but I guess that can wait until I get home (and maybe think
> about this some more).
>
> Thanks,
>
> --
> Raul
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to