software-challenge / backend

Server, Client und Spiel-Plugins der Software-Challenge Germany
https://www.software-challenge.de
11 stars 10 forks source link

fix(Game): unstuck the current ship if it can move again #426

Closed jgeramb closed 6 months ago

jgeramb commented 6 months ago

This fixes an edge-case in which a previously stuck ship is pushed and can then move again.

xeruf commented 6 months ago

If a ship gets stuck, this is equivalent to it crashing into the shore. No way to become unstuck.

jgeramb commented 6 months ago

That is incorrect @xeruf. The first ship was stuck, but it was able to move again after being pushed to another position by the second ship.

xeruf commented 5 months ago

a ship cannot become stuck - what that means is that the ship went towards a non-water field with no ability to evade it, crashing into the shore if you think of an actual ship