getPieces

open override fun getPieces(): List<Pair<Piece2D, Coordinate2D>>

Returns a list of pairs of all pieces and the corresponding coordinate that the piece is placed on

Return

a list of pairs representing which coordinate each piece is on

open override fun getPieces(player: Player): List<Pair<Piece2D, Coordinate2D>>

Returns a list of pairs of all pieces that a given player owns and the corresponding coordinate that the piece is placed on

Return

a list of pairs representing which coordinate each piece is on for the given player