Solitaire

//Solitaire/de.syntaktischer.zucker.Solitaire/GameState

GameState

[jvm] data class GameState(board: Board, type: BoardType, moves: Int)

Parameters

jvm

Name Summary
board

current board configuration

type

the board’s type

moves

number of moves the user played so far

Constructors

Name Summary
GameState [jvm] fun GameState(board: Board, type: BoardType, moves: Int)current board configuration

Functions

Name Summary
component1 [jvm]
Content
operator fun component1(): Board


component2 [jvm]
Content
operator fun component2(): BoardType


component3 [jvm]
Content
operator fun component3(): Int


copy [jvm]
Content
fun copy(board: Board, type: BoardType, moves: Int): GameState


equals [jvm]
Content
open operator override fun equals(other: Any?): Boolean


hashCode [jvm]
Content
open override fun hashCode(): Int


toString [jvm]
Content
open override fun toString(): String


Properties

Name Summary
board [jvm] val board: Boardcurrent board configuration
moves [jvm] val moves: Intnumber of moves the user played so far
type [jvm] val type: BoardTypethe board’s type