ChessNotationInputHex

class ChessNotationInputHex

ChessNotationInput Converts standard ches notation to Coordinate2D and Coordinate2D, MoveHex to readable string format. Is used for console front end.

Constructors

ChessNotationInputHex
Link copied to clipboard
fun ChessNotationInputHex()

Functions

coordinateToStr
Link copied to clipboard
fun coordinateToStr(c: Coordinate2D): String
Takes a Coordinate2D and converts it into standard chess notation.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
moveToStr
Link copied to clipboard
fun moveToStr(move: MoveHex): String
Takes a MoveHex and converts it to a readable chess notation.
strToCoordinate
Link copied to clipboard
fun strToCoordinate(s: String): Coordinate2D?
Takes a String representation of a coordinate and converts to a Coordinate2D.
toString
Link copied to clipboard
open fun toString(): String