chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.util / Movement / getMovementFields

getMovementFields

abstract fun getMovementFields(movementFields: HashSet<Pair<Int, Int>>, row: Int, col: Int, match: Match): Unit

Calculate all possible movement fields for a special 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