/// <summary>Runs it all.</summary>
        public void DoRun(IBot bot, IEnumerable <IInstruction> instructions)
        {
            if (bot == null)
            {
                throw new ArgumentNullException("bot");
            }
            if (instructions == null)
            {
                throw new ArgumentNullException("instructions");
            }

            var settings = new Settings();
            var state    = new GameState();

            foreach (var instruction in instructions)
            {
                if (settings.Apply(instruction))
                {
                    bot.ApplySettings(settings);
                }
                else if (state.Apply(instruction))
                {
                }
                else if (instruction is RequestMoveInstruction)
                {
                    bot.Update(state);
#if !DEBUG
                    try
                    {
#endif
                    var response = bot.GetResponse(((RequestMoveInstruction)instruction).Time);
                    Writer.WriteLine(response.Move);
                    if (!String.IsNullOrEmpty(response.Log))
                    {
                        Logger.WriteLine(response.Log);
                    }
#if !DEBUG
                }
                catch (Exception x)
                {
                    Writer.WriteLine(MoveInstruction.NoMoves);
                    Logger.WriteLine(x);
                }
#endif
                }
            }
        }
		/// <summary>Runs it all.</summary>
		public void DoRun(IBot bot, IEnumerable<IInstruction> instructions)
		{
			if (bot == null) { throw new ArgumentNullException("bot"); }
			if (instructions == null) { throw new ArgumentNullException("instructions"); }

			var settings = new Settings();
			var state = new GameState();

			foreach (var instruction in instructions)
			{
				if (settings.Apply(instruction))
				{
					bot.ApplySettings(settings);
				}
				else if (state.Apply(instruction)) { }
				else if (instruction is RequestMoveInstruction)
				{
					bot.Update(state);
#if !DEBUG
					try
					{
#endif
						var response = bot.GetResponse(((RequestMoveInstruction)instruction).Time);
						Writer.WriteLine(response.Move);
						if (!String.IsNullOrEmpty(response.Log))
						{
							Logger.WriteLine(response.Log);
						}
#if !DEBUG
					}
					catch (Exception x)
					{
						Writer.WriteLine(MoveInstruction.NoMoves);
						Logger.WriteLine(x);
					}
#endif
				}
			}
		}