コード例 #1
0
        public ActionResult NewGame(string difficulity)
        {
            GameDifficulity gameDifficulity;

            GameDifficulity.TryParse(difficulity, out gameDifficulity);
            Reset(gameDifficulity);
            return(MakeBord());
        }
コード例 #2
0
        public ActionResult HighScore(string difficulity, int topX)
        {
            List <KeyValuePair <string, double> > highScore;
            GameDifficulity gameDifficulity;
            PlayerList      playerList = new PlayerList();

            GameDifficulity.TryParse(difficulity, out gameDifficulity);
            highScore = playerList.GetHighScores(gameDifficulity, topX);
            return(Ok(highScore));
        }