O'Reilly logo

Learning XNA 4.0 by Aaron Reed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7: Basic Artificial Intelligence

Quiz Answers

  1. What is the Turing Test?

    Developed by Alan Turing, the Turing Test involved having a human interact with a computer and another human, asking questions to determine which was which. The test was designed to determine whether a computer was intelligent. If the interrogator was unable to determine which was the computer and which was the human, the computer was deemed “intelligent.”

  2. Why is artificial intelligence so difficult to perfect?

    Because intelligence itself is so difficult to define. It’s something that currently is not truly understood and therefore is ambiguous by nature.

  3. What constitutes irrelevancy for an object in a video game? What should be done with irrelevant objects, and why?

    An object is irrelevant if it can no longer affect the game. Irrelevant objects should be deleted because otherwise they will continue to be updated and drawn in each frame, which will negatively affect performance.

  4. If you have a player whose position is stored in a Vector2 object called PlayerPos and a chasing object whose position is stored in a Vector2 object called ChasePos, what algorithm will cause your chasing object to chase after your player?

    if(PlayerPos.X < ChasePos.X)
        --ChasePos.X;
    else
        ++ChasePos.X;
    if(PlayerPos.Y < ChasePos.Y)
        --ChasePos.Y;
    else
        ++ChasePos.Y;
  5. In the beginning, what was created that made a lot of people very angry and has been widely regarded as a bad move?

    According to The Restaurant at the End of the Universe, the second ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required