//AI will copy board state then perform an action then evaluate the board state //Repeat this several times. //Pick the action with the highest delta in board state evaluation. public void SaveAndEvaluateBoardState(GameState state) { }
public static GameState GetInstance() { if (HttpContext.Current.Session["GameState"] == null) { var gs = new GameState(); HttpContext.Current.Session["GameState"] = gs; gs.Setup(); } return (GameState)HttpContext.Current.Session["GameState"]; }