예제 #1
0
        internal List <Color> GetPlayerValidMoves(int player)
        {
            List <Color> availableColors = availableColorFinder.GetAvailableColors();

            return(availableColors.Where(color => IsValidMove(player, color)).ToList());
        }
        private void MakeRandomMove()
        {
            List <Color> availableColors = colorFinder.GetAvailableColors();

            logic.MakeMove(availableColors[Randomizer.Current.Get(0, availableColors.Count)]);
        }