Beispiel #1
0
        public int SlideBoard(Direction direction)
        {
            ulong target = tileCollection.GetTiles();

            (int score, ulong slidBoard) = BoardSlider.SlideBoard(direction, target);
            tileCollection.SetBoard(slidBoard);
            return(score);
        }
Beispiel #2
0
        private static bool IsAMatchPossible(TileCollectionB board)
        {
            ulong tiles = board.GetTiles();

            return(BitShifter.IsMatchPossible(tiles));
        }