示例#1
0
        public override AskForMoveCardsStruct OnMoveCards(TrustedAI ai, Player player, List <int> ups, List <int> downs, int min, int max)
        {
            ai.SortByUseValue(ref ups);
            AskForMoveCardsStruct move = new AskForMoveCardsStruct
            {
                Top     = new List <int>(ups),
                Bottom  = new List <int>(downs),
                Success = true
            };

            return(move);
        }
示例#2
0
        public override AskForMoveCardsStruct OnMoveCards(TrustedAI ai, Player player, List <int> ups, List <int> downs, int min, int max)
        {
            List <int> ids = new List <int>(ups);

            ids.AddRange(downs);

            ai.SortByUseValue(ref ids);

            AskForMoveCardsStruct move = new AskForMoveCardsStruct
            {
                Bottom = new List <int> {
                    ids[0], ids[1]
                },
                Top = new List <int> {
                    ids[2], ids[3]
                },
                Success = true
            };

            return(move);
        }