ostrat.gOne

package ostrat.gOne

This is the package for the first example of an extremely simple simultaneous turn tile based game. The game is created purely to illustrate and test fundamental algorithm and software patterns. It is not intended as an interesting game to play. Each player can move one hex tile step. Any move to a tile already containing a player or that one more than one player is attempting to move to fails.

Type members

Classlikes

case class GOneGui(canv: CanvasPlatform, scenStart: OneScen, viewIn: HGridView) extends HexMapGui

Graphical user interface for GOne example game.

Graphical user interface for GOne example game.

case class HPlayer(value: Player, hc: HCen) extends HexMem[Player]

A class identifying a Player and a hex coordinate position.

A class identifying a Player and a hex coordinate position.

object OneLaunch extends GuiLaunchMore
trait OneScen extends HexGridScen

A scenario turn or state for Game One. Consists of just a turn number and a tile Grid. Each tile can contain a single player or can be empty.

A scenario turn or state for Game One. Consists of just a turn number and a tile Grid. Each tile can contain a single player or can be empty.

Companion:
object
object OneScen

Companion object for OneScen trait, contains factory apply method.

Companion object for OneScen trait, contains factory apply method.

Companion:
class
object OneScen1 extends OneScenStart

1st example Turn 0 scenario state for Game One.

1st example Turn 0 scenario state for Game One.

object OneScen2 extends OneScenStart

2nd example Turn 0 scenario state for Game One.

2nd example Turn 0 scenario state for Game One.

object OneScen3 extends OneScenStart

3rd example Turn 0 scenario state for Game One.

3rd example Turn 0 scenario state for Game One.

object OneScen4 extends OneScenStart
trait OneScenStart extends OneScen

This trait just puts the value 0 in for the turn.

This trait just puts the value 0 in for the turn.

case class Player(char: Char, colour: Colour) extends ShowNoDec

A Player has a very simple token with a letter and colour for recognition.

A Player has a very simple token with a letter and colour for recognition.

Companion:
object
object Player

Companion object for Player case class contains implicit instance for Persist.

Companion object for Player case class contains implicit instance for Persist.

Companion:
class
object PlayerA extends Player
object PlayerB extends Player
object PlayerC extends Player
object PlayerD extends Player

Value members

Concrete methods

This is just a dummy method as empty package objects can cause problems.

This is just a dummy method as empty package objects can cause problems.