htwdd.chessgame.server.util / KingMovementUtility / getMovementFields
getMovementFields
fun getMovementFields(movementFields:
HashSet
<
Pair
<
Int
,
Int
>>, row:
Int
, col:
Int
, match:
Match
):
Unit
Overrides Movement.getMovementFields
Calculate all possible movement fields for a king piece
Parameters
movementFields
- Hash set which was filled with movement fields
row
- Row value of piece which should be moved
col
- Column value of piece which should be moved
match
- Match which contains the piece
Author Felix Dimmel
Since 1.0.0