Solitaire

//Solitaire/de.syntaktischer.zucker.Solitaire/GameUtils

GameUtils

[jvm] object GameUtils

Functions

Name Summary
canJump [jvm]
Content
@JvmStatic()

fun canJump(peg: Peg, direction: Direction, currentBoard: Board): Boolean


checkGameOver [jvm]
Content
@JvmStatic()

fun checkGameOver(currentBoard: Board): Boolean


checkWon [jvm]
Content
@JvmStatic()

fun checkWon(game: PlayableGame): Boolean


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


getJumpDirection [jvm]
Content
@JvmStatic()

fun getJumpDirection(x: Int, y: Int): Direction?


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


jump [jvm]
Content
@JvmStatic()

fun jump(peg: Peg, direction: Direction, board: Board): Board?


move [jvm]
Content
@JvmStatic()

fun move(fromPosX: Int, fromPosY: Int, direction: Direction, moveManager: MoveManager)


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