Ejemplo n.º 1
0
 public bool DoesMatch(int[] spin, MachineInfo info)
 {
     for(var i = 0; i < 5; i++) {
         var spinIdx = spin[i];
         var lineIdx = info.IdForName (line[i]);
         var isWild = (spinIdx == info.IdForName("Wild"));
         if(lineIdx != info.IdForName("Any") && !isWild && lineIdx != spinIdx) {
             return false;
         }
     }
     return true;
 }