Ejemplo n.º 1
0
 public void JoinGame(Game newgame, int igIndex, List <string> priority)
 {
     CurrGame    = newgame;
     inGameIndex = igIndex;
     //TODO: fix that
     foreach (string t in priority)
     {
         CurrPriority.Add(newgame.candidatesNames.IndexOf(t) + 1);
     }
     Console.WriteLine("[{0}] Join: Player {1} ({2}) joins game {3} ({4})", DateTime.Now.ToString("HH:mm:ss"), userID, mTurkID != "" ? mTurkID : connectionID, newgame.gameID, newgame.configFile);
 }
Ejemplo n.º 2
0
 public void resetGame()
 {
     CurrGame = null;
     CurrPriority.Clear();
     inGameIndex = -1;
 }
Ejemplo n.º 3
0
 public string currPriToString()
 {
     return(CurrPriority.Aggregate("", (current, t) => current + "#" + (t)));
 }