/// <summary>
        /// Roll the dices
        /// </summary>
        /// <returns></returns>
        public string[] Roll()
        {
            var rcr = new RngCryptoRandom(true);

            Result = Dices.Select(c => c.Roll(rcr)).ToArray();

            return(Result);
        }
Example #2
0
 public new object ToClient()
 {
     return(new {
         playerName = Player.Name,
         dices = Dices.Select(d => d.ToClient()),
         lockStatus = LockStatus.ToString()
     });
 }