snake icon indicating copy to clipboard operation
snake copied to clipboard

lookahead keep tail

Open hh2010 opened this issue 9 months ago • 1 comments

addresses https://github.com/twanvl/snake/issues/2

running snake.exe all on master is broken and it seems to be due to using Lookahead::many_move_tail for cell tree algo by default instead of Lookahead::many_keep_tail

using the later fixes snake.exe all and reproduces results consistent with the README.

image

hh2010 avatar Mar 23 '25 05:03 hh2010

this fixes it, I wonder why it was changed.

I am still trying to translate the code over to python and seem to run into issues but this is not the reason why I couldn't port it, Though I was kinda hoping changing over to using many_keep_tail in the python code would fix it.

Acters avatar Mar 23 '25 16:03 Acters

closing because @twanvl makes a good point in this discussion: https://github.com/twanvl/snake/issues/2 Opening a separate PR with the better solution

hh2010 avatar May 13 '25 21:05 hh2010