Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/Core/GameState.flix
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@ mod Flixball.Core.GameState {

use GameState.GameState

type alias PlayerInfo = {
state = AiState,
ml = MoveLogic,
pos = Position
}

pub enum GameState(
Map[PlayerId, PlayerInfo],
Board
)

//law gamestatea =
type alias PlayerInfo = {
state = AiState,
ml = MoveLogic,
pos = Position
}

/// Returns the board of the state.
pub def board(s: GameState): Board = {
Expand Down
Loading