Ejemplo n.º 1
0
 private void LogPlayer(CommandCenter c, CommandCArgs e)
 {
     if (Enabled)
     {
         if (Started)
         {
             StrW.WriteLine("Player: " + e.GetIntArrayData()[0]);
         }
     }
 }
Ejemplo n.º 2
0
        private void LogMove(CommandCenter c, CommandCArgs e)
        {
            if (Enabled)
            {
                if (Started)
                {
                    if (RoundMoves.Length != 0)
                    {
                        RoundMoves += ", ";
                    }

                    try
                    {
                        RoundMoves += e.GetIntArrayData()[1] + ": " + CommandNames[e.GetIntArrayData()[0]];
                    }
                    catch (IndexOutOfRangeException)
                    {
                        StrW.WriteLine("Error: The Command Names array did not match with the decision numbers");
                    }
                }
            }
        }
Ejemplo n.º 3
0
 private void LogResult(CommandCenter c, CommandCArgs e)
 {
     if (Enabled)
     {
         if (Started)
         {
             StrW.WriteLine(RoundMoves);
             int Res = e.GetIntArrayData()[0];
             if (Res > 0)
             {
                 StrW.WriteLine("Win: " + Res);
             }
             else if (Res < 0)
             {
                 StrW.WriteLine("Loss: " + Res);
             }
             else
             {
                 StrW.WriteLine("Tie: " + Res);
             }
         }
     }
 }