software-challenge / backend

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

Fix/getPossibleMovesForShapes #328

Closed anarchuser closed 3 years ago

anarchuser commented 3 years ago

getPossibleMovesForShapes failed on first round, because it wasn't designed to be called there. But since it's publicly available this lead to failures, which this PR fixes.

It also includes a small refactor regarding the accessor of undeployedPieceShapes which is too small to create an independent PR for.

This can be rebase merged as-is

anarchuser commented 3 years ago

Needed for https://github.com/CAU-Kiel-Tech-Inf/gui/pull/55