Exemple #1
0
 public Game(string gameOwner, int length = 24)
 {
     this.Starting     = DateTime.Now;
     this.Ending       = Starting.AddHours(length);
     this.GameId       = Guid.NewGuid();
     this._guessNumber = _generator.Next(1, 100);
     this.Players      = new List <string>();
     this.Players.Add(gameOwner);
     Game._activeGames.Add(this);
 }