chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.util / Movement / getThreadedFields

getThreadedFields

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

Calculate all possible threated fields for a special piece

Parameters

threatedFields - Hash set which was filled with threated fields

row - Row value of piece from which the threat emanate

col - Column value of piece from which the threat emanate

match - Match which contains the piece

Author Felix Dimmel

Since 1.0.0