HF RL Explorer

terminal snake game: add feature

terminal snake game: add feature: a task in smol-software-harbor (Harbor dataset). The snake can currently move through itself. Make Snake.step in snake/game.py detect it: moving into a cell of its own body kills the snake ( alive becomes False, the body is left unchanged and step returns None )…

The task

The snake can currently move through itself. Make `Snake.step` in `snake/game.py` detect it: moving into a cell of its own body kills the snake (`alive` becomes False, the body is left unchanged and `step` returns `None`). The tail cell counts as free because the tail moves away in the same step, unless the snake is…

Part of efederici/smol-software-harbor.