Chapter 6: 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. If you are practicing geophagy, what is it that you are doing?

Get Learning XNA 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.