chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.util / Movement

Movement

interface Movement

Interface for piece movement

Author Felix Dimmel

Since 1.0.0

Functions

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
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

Inheritors

MovementUtility abstract class MovementUtility : Movement
Abstract class for piece movement