chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.model / Field

Field

class Field : Serializable

Represent a chess field

Author Felix Dimmel

Constructors

<init> Field(id: Int = 0, row: Int = 0, column: Int = 0)
Represent a chess field

Properties

column var column: Int
Column number of the field
id val id: Int
The ID of this field (Autogenerated by SQLite database)
row var row: Int
Row number of the field

Functions

asPair fun asPair(): Pair<Int, Int>