diff --git a/Sources/Model/Turn.cs b/Sources/Model/Turn.cs index f951bb4..6a07f78 100644 --- a/Sources/Model/Turn.cs +++ b/Sources/Model/Turn.cs @@ -22,21 +22,22 @@ namespace Model /// public readonly Player player; - /* - public IEnumerable Faces { get; private set; } - */ + // ... faces + /// /// this private constructor is to be used only by factories /// /// date and time of the turn /// player who played the turn - // TODO add faces + + // ... faces private Turn(DateTime when, Player player/*, IEnumerable faces*/) { this.when = when; this.player = player; - /*Faces = faces;*/ + // ... faces + } /// @@ -48,10 +49,12 @@ namespace Model /// date and time of the turn /// player who played the turn /// a new Turn object - // TODO add faces + + // ... faces public static Turn CreateWithSpecifiedTime(DateTime when, Player player/*, IEnumerable faces*/) { - // TODO add validation for faces too + + // ... faces if (player == null) { throw new ArgumentNullException(nameof(player), "param should not be null"); @@ -69,23 +72,21 @@ namespace Model /// /// player who played the turn /// a new Turn object - // TODO add faces + + // ... faces public static Turn CreateWithDefaultTime(Player player/*, IEnumerable faces*/) { return CreateWithSpecifiedTime(DateTime.UtcNow, player/*, faces*/); } - //TODO add faces + // ... faces + /// /// represents a turn in string format /// /// a turn in string format public override string ToString() { - //string[] datetime = this.when.ToString("s", System.Globalization.CultureInfo.InvariantCulture).Split("T"); - //string date = datetime[0]; - //string time = datetime[1]; - return String.Format("{0} -- {1} rolled {2}", ToStringIsoWithZ(), this.player.ToString(),