axle.game.Player.scala Maven / Gradle / Ivy
The newest version!
package axle.game
abstract class Player[G <: Game[G]](val id: String, description: String) {
def move(state: G#STATE): (G#MOVE, G#STATE)
override def toString: String = description
def introduceGame(): Unit = {}
def displayEvents(events: List[Event[G]]): Unit = {}
def endGame(state: G#STATE): Unit = {}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy