Farkle.Core.FarkleService.StartNewGame C# (CSharp) Method

StartNewGame() public method

public StartNewGame ( GameSetup setup ) : GameState
setup GameSetup
return GameState
        public GameState StartNewGame(GameSetup setup)
        {
            return new GameState();
        }

Usage Example

 public ActionResult NewGame(GameSetup setup)
 {
     var service = new FarkleService();
     var gameState = service.StartNewGame(setup);
     //return View("Play", gameState);
     return null;
 }