Esempio n. 1
0
        public static ulong SetField(ulong boardState, int x, int y, DraughtsField fieldState)
        {
            x = (x + (y % 2)) / 2;
            int n = y * 8 + x * 2;

            boardState = boardState & ~((ulong)3 << n);
            return(boardState | ((ulong)fieldState << n));
        }
Esempio n. 2
0
 private Draughts8Player(DraughtsField color)
 {
     Color = color;
 }