public void Study(bool win)
 {
     if (win)
     {
         history[(int)prevHand, (int)currentHand]++;
     }
     else
     {
         history[(int)prevHand, (int)currentHand.Next()]++;
         history[(int)prevHand, (int)currentHand.Next().Next()]++;
     }
 }
Ejemplo n.º 2
0
 private Result fight(Hand h)
 {
     if (this == h)
     {
         return(Result.Draw);
     }
     else if (type.Next() == h.type)
     {
         return(Result.Win);
     }
     else
     {
         return(Result.Lose);
     }
 }