Beispiel #1
0
 //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)
 {
 }
Beispiel #2
0
        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"];
        }