Exemple #1
0
 public string Roll()
 {
     Cubes = CubesGenerator.Generate();
     Steps = CubesToStepsConverter.Convert(Cubes);
     // print values of cubes:
     return(TempGamePrinter.CubesValuePrint(Steps));
 }
Exemple #2
0
 public Game(string blackPlayerName, string whitePlayerName)
 {
     Cubes = CubesGenerator.Generate();
     Steps = CubesToStepsConverter.Convert(Cubes);
     Board = new Board();
     Turn  = Turn.Black;
     Move  = ChoosenMoveDetails.Instance;
     //Init players:
     BlackPlayer = new BlackPlayer()
     {
         UserName = blackPlayerName
     };
     WhitePlayer = new WhitePlayer()
     {
         UserName = whitePlayerName
     };
 }