예제 #1
0
 protected virtual void InitListeningKnights()
 {
     listeningKnights = new List <int>
     {
         Const.ShiftLeft(indexList),//sasiedzi
         Const.ShiftRight(indexList)
     };
 }
 public int GetCupIndex(int indexKnight)
 {
     return(Const.ShiftLeft(indexKnight) / 2);
 }
        public int GetNeighbourPlate(int indexKnight)
        {
            int result = indexKnight % 2 == 0 ? Const.ShiftRight(indexKnight) : Const.ShiftLeft(indexKnight);

            return(result);
        }