• Aucun résultat trouvé

IA51: AI for Games and Serious Games - Final Exam P2017

N/A
N/A
Protected

Academic year: 2022

Partager "IA51: AI for Games and Serious Games - Final Exam P2017"

Copied!
2
0
0

Texte intégral

(1)

IA51: AI for Games and Serious Games - Final Exam P2017

Duration: 2h.

No document nor calculator nor smart phone nor touchpad allowed.

English and French are accepted.

Malus of 1 point for dirty sheets.

Each part must be written on separated sheets.

Part 1: Agent Simulator (15 points)

Question 1.1: Theory Questions

1. (2 pts) Cite the four properties of an agent according to the definition of Michael Wooldridge. Explain briefly each of them.

2. (1 pts) Agents may interact together by using the stigmergy principle. What is the stigmergy princi- ple? Explain briefly the key elements of it.

3. (1 pts) What is the difference between an influence provided by an agent and an action in the envi- ronment?

4. (2 pts) Considering a collection of agents that inhabit in the simulation, several methods forexecuting the agents exist in order to simulate the theoritical parallel execution of the agents. Excluding any thread-based or network-based approach, propose a method or an algorithm for executing the agents.

Exercise 1.2:

You want to simulate a group of children who are playing the tag game (“jeu du chat”). A group of players (two or more) decide who is going to be “it”. The player selected to be “it” then chases the others, attempting to get close enough to “tag” one of them (touching them with a hand) while the others try to escape. A tag makes the tagged player “it”.

1. (1 pts) The list of environment objects and agent bodies must be stored into the environment entity of the simulator. What is the efficient data structure for storing these objects and bodies? What are the constraints and the limits of the selected data structure?

2. (3 pts) Write the algorithm for the player selected to be “it” and chasing the other players. This algorithm must enable the player tochasethe closest player, and toavoid collisionwith objects and other players.

3. (2 pts) Write the algorithm for the player who want toevadethe chasing player andavoid collision with objects and other players.

1

(2)

Exercise 1.3: (3 pts)

You want to write a perception algorithm for the agents. This novel perception algorithm supports occlusion of objects: occluded objects1 must not be seen by the agents, even if they are in the perception field-of- view. Assuming that the list of the objects in the field-of-view is provided by the function:

List<Object> getFovObjects()

propose an algorithm that removes the occluded objects from the list. If you have made several design hypothesis, you must quickly explain them.

Part 2: Machine Learning: Turn around (5 points)

Consider the circle of states above, which depicts the states of an MDP. The agent can choose between two actions: going one step clock-wise or one step counter-clock-wise.

Description of the rewardR(s,a):

• The agent receives a reward of 5 in state 1 (yellow state).

• The agent receives a reward of−3 in state 3 (red state).

• The agent receives a reward of 10 in state 6 (blue state).

• The agent receives a reward of−1 in every other state.

To simplify the computations, we assumeγ=0.5.

1. Recall the algorithm Q-Iteration.

2. Apply 3 iterations of the Q-iteration method: show the matrix of the Q-values for each iteration.

3. What is the greedy policy assuming the Q-values obtained after 3 iterations?

1“objets cachés”

2

Références

Documents relatifs

There exist classes K , increasing costs (c k a (·)), and demands (b od,k ) leading to two equilibria with distinct flows. An arc in 3 o-d paths: explicitly building of cost

As of 2013, over 250 million users regularly play games each month on Facebook [1]. With the explosive growth and widespread popularity of social network gaming, players

Several features about the content of the game presented to the players as well as gameplay features capturing different aspects of player behavior and the in- game interaction

The final TimeWarp: Using Form and Content to Support Player Experience and Presence when Designing Location-Aware Mobile Augmented Reality Games.. Lisa Blum 1 , Richard Wetzel 1

Finally, the solution of the third problem, that is, how to use the norm negotiation protocol in online multi-player games and social spaces like The Sims Online or Second Life, is

In this paper, we address the quantitative question of checking whether P layer 0 has more than a strategy to win a finite two-player turn-based game, under the reachability

The base classifier predicts the winner according to the number of traces in the dataset won by each player (i.e. ignores the current state to make the prediction) and it is included

The case with different player roles assumes that one of the players asks questions in order to identify a secret pattern and the other one answers them.. The purpose of the