コード例 #1
0
ファイル: AI.cs プロジェクト: jauggy/Boardgames
 //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)
 {
 }
コード例 #2
0
ファイル: GameState.cs プロジェクト: jauggy/Boardgames
        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"];
        }