예제 #1
0
파일: Ai.cs 프로젝트: k3nj1/HRCustomClasses
        private void cuttingposibilities(Bot botBase)
        {
            // take the x best values
            int takenumber        = this.maxwide;
            List <Playfield> temp = new List <Playfield>();

            posmoves.Sort((a, b) => - (botBase.getPlayfieldValue(a)).CompareTo(botBase.getPlayfieldValue(b)));//want to keep the best
            temp.AddRange(posmoves);
            posmoves.Clear();
            posmoves.AddRange(Helpfunctions.TakeList(temp, takenumber));
        }