AL-702-A AI in Gaming

AI in Gaming (AL-702-A) Important Questions

The most asked AI in Gaming (AL-702-A) topics in RGPV papers are Game theory and its use in AI, Functions used in the Minimax algorithm, Rule-based systems and Static and kinematic representation in 3D. We read the RGPV B.Tech CSE-AIML semester 7 papers from 2023 and counted every question. Game theory and its use in AI, Functions used in the Minimax algorithm, Rule-based systems and Static and kinematic representation in 3D came once each.

Download Paperwala Imp Question & Answer (PDF)

How we made this list
  • Exams counted: 2023
  • All papers on this site: 1 (2023 to 2023)
  • Units asked most: Unit 2 and Unit 3
  • Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these

10 most repeated AI in Gaming topics (2023)

Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.

AI in Gaming important questions with answers

Each answer starts with a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. Game theory and its use in AI

Short answer. Game theory is the mathematical study of decisions where each player's result depends also on what others do. AI uses it to choose good actions against opponents or with partners.

Asked 1 time in 2023 · Unit 5

From the papers

  • “Define Game Theory. How does it apply to Artificial Intelligence?” (November 2023)

Write these points

Basic terms

  • Players, strategies and payoffs.
  • Zero sum: one's gain is the other's loss.
  • Perfect information: all moves are visible, as in chess.
  • Nash equilibrium: no player gains by changing strategy alone.

Use in AI

  1. Game tree search: minimax and alpha-beta.
  2. Mixed strategies so opponents cannot predict the agent.
  3. Multi agent systems: negotiation, auctions and resource sharing.
  4. Learning by self play in games.
  5. Security and traffic planning.

Matching pennies.

I win 1 if two coins match and lose 1 if they differ. My opponent wins what I lose.

If I always show heads, the opponent learns it and beats me.

The equilibrium is to pick each side with probability 0.5. My expected value is then 0.

Real-life example

In rock paper scissors your best move depends on what your friend will play. Your friend thinks about you in the same way.

Figure: a game tree
Figure: a game tree

Difference between Single agent search and game search

PointSingle agentGameSame or opposite
Searches through statesYesYesSame
Opponent acts against youNoOftenOpposite
Typical methodA*MinimaxOpposite
Large search trees are a problemYesYesSame

Exam tip. Define players, strategies and payoffs before giving AI uses.

Back to the topic list

Q2. Functions used in the Minimax algorithm

Short answer. Minimax chooses a move in a two player zero sum game by assuming one player maximises the score and the other minimises it. It is built from a few helper functions.

Asked 1 time in 2023 · Unit 5

From the papers

  • “Discuss with various functions used in Minimax algorithm.” (November 2023)

Write these points

Functions

FunctionJob
generateMoves(state)List the legal moves
makeMove(state, move)Return the new state
isTerminal(state)Is the game over?
evaluate(state)Score a position from MAX's view
maxValue / minValuePick the largest or smallest child value

Recursion

  1. If the state is terminal or depth limit is reached, return evaluate.
  2. On MAX's turn return the largest child value.
  3. On MIN's turn return the smallest.
  4. At the root remember which move gave the best value.

Improvements and cost

  • Negamax writes both cases as one using negation.
  • Alpha-beta pruning skips branches that cannot change the result.
  • Time is about b^d for branching b and depth d.

The tree in the figure.

MIN values are min(3,5) = 3, min(2,9) = 2 and min(7,6) = 6. MAX takes 6, the third move.

With alpha-beta from left to right: after 3, alpha = 3. In branch 2 the leaf 2 is already below 3, so the leaf 9 is skipped.

Real-life example

Before moving in tic tac toe you think: if I play here, what is the worst my friend can do to me? Then you pick the move with the best worst case.

Figure: minimax values
Figure: minimax values

Difference between Minimax and alpha-beta

PointMinimaxAlpha-betaSame or opposite
Returns the same minimax valueYesYesSame
Skips branchesNoYesOpposite
Nodes examinedAll up to the depthOften fewerOpposite
Needs an evaluation functionYesYesSame

Exam tip. Give the function table, the recursion and one solved tree.

Back to the topic list

Q3. Rule-based systems

Short answer. A rule-based system makes decisions from IF condition THEN action rules checked against facts in a database.

Asked 1 time in 2023 · Unit 4

From the papers

  • “Explain about rule-based systems with an example.” (November 2023)

Write these points

Parts

  1. Working memory (database): current facts.
  2. Rule base: IF-THEN rules.
  3. Inference engine or arbiter: finds matching rules and picks one.
  4. Action execution: may change the facts.

Conflict handling

  • First matching rule.
  • Highest priority.
  • Most specific rule.
  • Random choice among equals.

Merits and limits

  • Easy to read and extend, good for expert knowledge.
  • Many rules can clash and matching can be slow. The Rete algorithm speeds matching.

Soldier rules.

R1: IF health < 20 THEN retreat. R2: IF enemy visible AND ammo > 0 THEN shoot. R3: IF ammo = 0 THEN reload.

Facts: health 15, enemy visible, ammo 5. R1 and R2 both match.

With priority R1 first, the soldier retreats.

Real-life example

A doctor's quick checklist says: if there is high fever, do this test. A game character follows a checklist in the same way.

Figure: the rule cycle
Figure: the rule cycle

Difference between Rule-based system and decision tree

PointRulesDecision treeSame or opposite
Chooses actions from conditionsYesYesSame
StructureFlat list of rulesTree of testsOpposite
Several matches possibleYesNo, one pathOpposite
Written by designersOftenOftenSame

Exam tip. Name the three parts and solve a conflict between two rules.

Back to the topic list

Q4. Static and kinematic representation in 3D

Short answer. A static representation holds position and orientation. A kinematic representation also holds linear velocity and rotation (angular velocity).

Asked 1 time in 2023 · Unit 2

From the papers

  • “Differentiate between static representation and kinematic representation in 3D.” (November 2023)

Write these points

Static

  • Position (x, y, z).
  • Orientation, often a quaternion in full 3D. Characters that stay upright can use one angle about the vertical axis.

Kinematic

  • Position and orientation.
  • Velocity (vx, vy, vz).
  • Angular velocity: a vector in full 3D or one number for an upright character.

Use

Kinematic movement algorithms read static data and output a velocity directly. Dynamic (steering) algorithms read kinematic data and output acceleration.

One update step.

Position (0, 0, 0), velocity (6, 0, 8), time step 0.1 s.

New position = old + velocity x time = (0.6, 0, 0.8).

The speed is the length of the velocity, 10 units per second.

Real-life example

A photo of a car shows where it is and which way it faces. A speed reading adds how fast it is moving and turning.

Figure: data held in each form
Figure: data held in each form

Difference between Static and kinematic

PointStaticKinematicSame or opposite
Stores position and orientationYesYesSame
Stores velocityNoYesOpposite
Can predict next positionNoYes, for short stepsOpposite
Used by movement codeYesYesSame

Exam tip. List the fields of each and mention quaternions.

Back to the topic list

Q5. Components of coordinated movement

Short answer. Coordinated movement makes several characters move together in a sensible way, such as a squad or a flock. It joins group planning with each member's own steering.

Asked 1 time in 2023 · Unit 2

From the papers

  • “Describe about the components of coordinated movement in detail.” (November 2023)

Write these points

Remember. The words also appear in the study of human motor skill. This answer gives the game AI view. See the motor learning note for the human side.

Components

  1. Formation pattern: the set of slots, such as line, wedge or circle.
  2. Anchor point or leader: the reference that moves.
  3. Slot assignment: which member takes which slot.
  4. Individual steering: each member arrives at its slot.
  5. Obstacle and collision avoidance.
  6. Speed matching so the group waits for slow members.

Approaches

  • Emergent: simple local rules, such as flocking with separation, alignment and cohesion.
  • Scripted formations with fixed slots.
  • Two level: steer the whole formation first, then each member.

Slot position.

Anchor is at (10, 10) facing north. Slot 1 has offset (-2, -2) and slot 2 has (2, -2).

The targets are (8, 8) and (12, 8).

If the group turns, offsets must be rotated too.

Real-life example

In a march past each student keeps a fixed place relative to the leader and also avoids bumping into the next student. Game squads need both.

Figure: a formation
Figure: a formation

Difference between Fixed formation and flocking

PointFormationFlockingSame or opposite
Moves many characters togetherYesYesSame
Fixed slotsYesNoOpposite
Order of the shapeStrictLooseOpposite
Needs collision handlingYesYesSame

Exam tip. List six components and draw a formation with slots.

Back to the topic list

Q6. Movement algorithm structure

Short answer. A movement algorithm takes data about the character and its world and produces a movement request. The request is then applied by the physics or animation system.

Asked 1 time in 2023 · Unit 2

From the papers

  • “Draw the movement of algorithm structure and explain each component in detail.” (November 2023)

Write these points

Components

  1. Character data: static or kinematic state.
  2. Target and world data: goal position, other characters, obstacles.
  3. Algorithm: kinematic or steering behaviour.
  4. Output: a velocity (kinematic) or linear and angular acceleration (dynamic).
  5. Actuation: apply limits such as maximum speed and turning.
  6. Update: compute the new state and repeat each frame.

Examples of algorithms

  • Seek, flee, arrive, wander.
  • Pursue, evade, path following, obstacle avoidance.

Kinematic seek.

Character at (0, 0), target (3, 4), maximum speed 10.

Direction = (3, 4) / 5. Velocity = (6, 8).

In 0.1 s the character moves to (0.6, 0.8).

Real-life example

A cyclist looks at the road and destination, decides how to push and steer and then looks again. The loop repeats all the way.

Figure: movement algorithm structure
Figure: movement algorithm structure

Difference between Kinematic and dynamic movement

PointKinematicDynamicSame or opposite
Moves a character to goalsYesYesSame
OutputVelocityAccelerationOpposite
Smooth speed changesNot by itselfNaturalOpposite
Uses target dataYesYesSame

Exam tip. Draw input, algorithm, output and the update loop.

Back to the topic list

Q7. A* path finding with an example

Short answer. The A-star algorithm finds a lowest cost path by expanding the node with the smallest f(n) = g(n) + h(n). g is the cost so far and h estimates the cost to the goal.

Asked 1 time in 2023 · Unit 3

From the papers

  • “Discuss with A* path finding algorithm with an example.” (November 2023)

Write these points

Steps

  1. Put the start in the open list.
  2. Remove the node with the smallest f.
  3. If it is the goal, trace parents to get the path.
  4. Else move it to the closed list and update each neighbour if a cheaper route is found.
  5. Repeat until the open list is empty.

Heuristic

  • Admissible: never more than the true cost.
  • Consistent: h(n) <= step cost + h(next). The heuristic below is consistent.
StepExpandgfChanges to open nodes
1S07A g1 f7, B g4 f8
2A17B g3 f7, C g6 f8
3B37C g5 f7, G g9 f9
4C57G g8 f8
5G88goal reached

Result.

Path S - A - B - C - G with cost 8.

Notice that B and G were improved later when cheaper routes appeared.

Real-life example

Choosing a route in a city, you add the distance already travelled to a fair guess of what is left and follow the most promising road. A* adds the same two numbers.

Figure: the example graph
Figure: the example graph

Difference between A* and Dijkstra

PointA*DijkstraSame or opposite
Finds shortest paths with non-negative costsYesYesSame
Uses a heuristic to the goalYesNoOpposite
Nodes expandedOften fewerOften moreOpposite
Keeps costs so farYesYesSame

Exam tip. Always show the table of g and f for every step.

Back to the topic list

Q8. Breadth first search for path finding

Short answer. Breadth first search (BFS) explores a graph level by level using a queue. It finds a path with the fewest edges, which is the cheapest path only when all edges cost the same.

Asked 1 time in 2023 · Unit 3

From the papers

  • “Implement breadth first search algorithm for path finding with an example.” (November 2023)

Write these points

Algorithm

  1. Put the start in a queue and mark it visited.
  2. Remove the front node.
  3. If it is the goal, rebuild the path from parents.
  4. Add each unvisited neighbour to the back and record its parent.
  5. Repeat until the queue is empty.

Code

q=[start]; parent={start:None}
while q:
    u=q.pop(0)
    if u==goal: break
    for v in graph[u]:
        if v not in parent:
            parent[v]=u; q.append(v)

Time and space are O(V + E). In real code use a double ended queue.

On the example graph.

Queue order: S, then A and B, then C (from A), then G (from B).

Path found: S - B - G, 2 edges but cost 10.

A* found a cost 8 path with 4 edges.

Real-life example

News spreading in a class reaches all friends first, then friends of friends. The first time it reaches you uses the fewest people.

Figure: BFS uses the same graph
Figure: BFS uses the same graph

Difference between BFS and A*

PointBFSA*Same or opposite
Finds a path if one exists in a finite graphYesYesSame
Uses edge costsNoYesOpposite
Data structureQueuePriority queueOpposite
Keeps visited informationYesYesSame

Exam tip. Write the code and show the queue order.

Back to the topic list

Q9. Why problem growth reduces efficiency

Short answer. As a problem grows, the number of possible states can grow exponentially, so the same method becomes much less efficient. This is called combinatorial explosion.

Asked 1 time in 2023 · Unit 3

From the papers

  • “"The problem's tendency to decrease the efficiency for solving a complex problem." Explain.” (November 2023)

Write these points

Remember. The printed sentence is unclear and does not name the problem. I read it as combinatorial explosion in search. Add any specific meaning your teacher uses.

Causes

  • High branching factor.
  • Deep solutions.
  • Large maps with many nodes.
  • Many characters planning at once.
  • Changing worlds that force replanning.

Ways to keep efficiency

  1. Good heuristics.
  2. Pruning such as alpha-beta.
  3. Hierarchical path finding.
  4. Better world representation, such as navigation meshes.
  5. Limit depth or time and use the best answer so far.
  6. Cache results.

A chess like tree.

With about 35 moves each, depths 0 to 4 contain 1,544,761 nodes.

Each extra level multiplies the last level by 35.

So a faster computer alone gains only a little depth.

Real-life example

Finding a book on one shelf is easy. Searching every shelf of every library in a state one by one becomes impractical without a catalogue.

Figure: fighting a large search
Figure: fighting a large search

Difference between Flat and hierarchical path finding

PointFlatHierarchicalSame or opposite
Finds routes on game mapsYesYesSame
Search space at onceWhole fine mapCoarse first, then localOpposite
Always the exact shortest pathYes with a suitable algorithmNot alwaysOpposite
Benefits from heuristicsYesYesSame

Exam tip. Show the growth with numbers and then five remedies.

Back to the topic list

Q10. State machines and behaviour trees

Short answer. A finite state machine (FSM) is a set of states with transitions. A behaviour tree (BT) is a tree of tasks that is evaluated from the root to choose actions.

Asked 1 time in 2023 · Unit 4

From the papers

  • “Explain the differences between state machines and behavior trees with examples.” (November 2023)

Write these points

FSM

  • One active state in a simple machine.
  • Events or conditions move it to another state.
  • Example: Patrol to Chase to Attack.

Behaviour tree

  • Nodes return success, failure or running.
  • Sequence needs each child to succeed. Selector tries options until one works.
  • Subtrees can be reused.

When to use

FSMs suit a few clear states. Many states cause too many transitions. BTs scale and edit better for complex behaviour.

A door task.

Selector: (Sequence: door is open, walk in), (Sequence: have key, open the lock, walk in), break door.

Door locked and key present: the first branch fails and the second runs.

In an FSM each of these links would be drawn as transitions.

Real-life example

A traffic light is a state machine that moves between colours. Making tea with fallback steps, such as use another pan if one is dirty, is like a behaviour tree.

Figure: behaviour tree nodes
Figure: behaviour tree nodes

Difference between FSM and behaviour tree

PointFSMBTSame or opposite
Controls character behaviourYesYesSame
Built fromStates and transitionsTask nodes in a treeOpposite
Adding behaviourMay need many new linksOften add a subtreeOpposite
Designed by developersYesYesSame

Exam tip. Give one example of each and then the table.

Back to the topic list

Start with the latest papers

AI in Gaming - Nov 2023

See all 1 papers →

AI in Gaming (AL-702-A) FAQs

What are the most important topics in AI in Gaming?

By how often they were asked in the papers on this site: Game theory and its use in AI (1 times); Functions used in the Minimax algorithm (1 times); Rule-based systems (1 times); Static and kinematic representation in 3D (1 times); Components of coordinated movement (1 times).

How were these AI in Gaming important questions chosen?

Each topic was counted from the questions in the past papers listed on this site (2023). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of AI in Gaming important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for AI in Gaming is free to download from this page.

The 10 most repeated topics of AI in Gaming (AL-702-A) for RGPV B.Tech CSE-AIML semester 7, counted from the previous year papers on this site.