Skip to Main Content
Learning XNA 3.0
book

Learning XNA 3.0

by Aaron Reed
November 2008
Beginner content levelBeginner
510 pages
16h 24m
English
O'Reilly Media, Inc.
Content preview from Learning XNA 3.0

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?

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning XNA 4.0

Learning XNA 4.0

Aaron Reed
Beginning C# 7 Programming with Visual Studio 2017

Beginning C# 7 Programming with Visual Studio 2017

Benjamin Perkins, Jacob Vibe Hammer, Jon D. Reid

Publisher Resources

ISBN: 9780596154905Supplemental ContentErrata Page