Exemple #1
0
        public override bool Execute(Dictionary <int, Day10Bot> bots)
        {
            Day10Bot bot = GetBot(_botNum, true, bots);

            bot.AddValue(_value);
            return(true);
        }
Exemple #2
0
        public override bool Execute(Dictionary <int, Day10Bot> bots)
        {
            Day10Bot lowBot  = GetBot(_lowNum, _targetLowBot, bots);
            Day10Bot highBot = GetBot(_highNum, _targetHighBot, bots);
            Day10Bot fromBot = GetBot(_fromBot, true, bots);

            if (fromBot.ChipCount == 2)
            {
                lowBot.AddValue(fromBot.Low);
                highBot.AddValue(fromBot.High);
                fromBot.ClearValues();
                return(true);
            }
            else
            {
                return(false);
            }
        }