示例#1
0
    public static void Main(string[] args)
    {
        Bot bot = new ThirdBot();
        int id;
        int width, height;
        Map map;



        id = int.Parse(Console.ReadLine());
        string[] temp = Console.ReadLine().Split();
        width  = int.Parse(temp[0]);
        height = int.Parse(temp[1]);

        string[] production = Console.ReadLine().Trim().Split();

        string[] state = Console.ReadLine().Trim().Split();


        map = new Map(production, state, width, height);

        bot.getInit(id, map);
        Console.WriteLine(bot.sendInit());

        while (true)
        {
            state = Console.ReadLine().Trim().Split();
            map   = new Map(production, state, width, height);

            bot.getFrame(map);
            Console.WriteLine(makeAnswer(bot.sendFrame()));
        }
    }
        public void ThirdBotMakeBetTest(int balance, int result)
        {
            Game game = new Game();

            ThirdBot bot = new ThirdBot(game, balance);

            bot.MakeBet();
            Assert.AreEqual(bot.Balance, result);

            Assert.Pass();
        }