TurnState( DisboardGame ctx, BoardContext board, TurnContext turn ) : base(ctx) { Board = board; Turn = turn; }
public static TurnState New(DisboardGame ctx, IReadOnlyList <DisboardPlayer> players) { new VechuFactory().OnHelp(ctx.Channel); var board = BoardContext.New(players); var turn = TurnContext.New(players.First()); var next = StartTurn(ctx: ctx, board: board, turn: turn); return(next); }
static TurnState StartTurn(DisboardGame ctx, BoardContext board, TurnContext turn) { TurnState next = new TurnState( ctx: ctx, board: board, turn: turn ); next.PrintTurn(); return(next); }