File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugin/src/shared/sc/plugin2021/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,12 @@ object GameRuleLogic {
75
75
throw InvalidMoveException (" Field $it already borders on ${move.color} " , move)
76
76
}
77
77
if (gameState.deployedPieces[move.color].isNullOrEmpty()) {
78
+ // Check if it's the requested shape
78
79
if (move.piece.kind != gameState.startPiece)
79
80
throw InvalidMoveException (" Expected the predetermined staring piece, ${gameState.startPiece} " , move)
80
81
// Check if it is placed correctly in a corner
81
82
if (move.piece.coordinates.none { isOnCorner(it)})
82
- // TODO: Add expected move to exception
83
- throw InvalidMoveException (" Expected the pentomino declaed as first piece" , move)
83
+ throw InvalidMoveException (" The Piece isn't located in a corner" , move)
84
84
} else {
85
85
// Check if the piece is connected to at least one tile of same color by corner
86
86
if (move.piece.coordinates.none { cornersOnColor(gameState.board, it, move.color) })
You can’t perform that action at this time.
0 commit comments