JoinCmd

object JoinCmd : CommandImpl<Game>

Command to join an existing Reversi game from persistent storage.

Loads a saved game by name and optionally specifies which player you control:

  • join gameName — Joins the named game

  • join gameName # — Joins as Black (#)

  • join gameName @ — Joins as White (@)

If a game is already in progress, it is automatically saved before loading the new game. If a piece type is specified, you will play as that color. If no piece type is provided, the system will assign an available color.

Properties

Link copied to clipboard
open override val info: CommandInfo

Functions

Link copied to clipboard
open override fun execute(vararg args: String, context: Game?): CommandResult<Game>

Executes the join command.