public Match CreateMatch() { Match match = new Match(); match.Id = Guid.NewGuid(); Matches.Add(match); return match; }
public GameDirector(Match m) { match = m; }
public static AsyncMessage GetInitMessage(Match match) { return new AsyncMessage(MessageType.InitialGameState, new { Board = new BoardStateInfo(match.BoardState) }); }