dererXII.scalashogi_2.13.5.0.2.source-code.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalashogi_2.13 Show documentation
Show all versions of scalashogi_2.13 Show documentation
Shogi API written in scala. Immutable and free of side effects.
import ornicar.scalalib
package object shogi extends scalalib.Common with scalalib.OrnicarOption with scalalib.OrnicarBoolean {
val Sente = Color.Sente
val Gote = Color.Gote
type Direction = Pos => Option[Pos]
type Directions = List[Direction]
type PieceMap = Map[Pos, Piece]
type HandMap = Map[DroppableRole, Int]
type HandsMap = Color.Map[HandMap]
type PositionHash = Array[Byte]
}