2. Les règles
JOUEURS JOUEURS
• Jeu tour à tour
• Tours de jeu rythmés par une période de jour et une période de nuit.
• Les joueurs sont amenés à voter pour l’un d’entre eux.
Loups garous Citoyens
4. Trois modes :
• Simulation de jeu avec IA
• Simulation de jeu avec intervention humaine
• Jeu en condition réelle
Utilisation de JADE, LIBGDX
Le projet
7. Player Agent Player Agent
XXX Controller Agent
Service Description
Type :
CONTROLLER
Nom : XXXX
Service Description
Type : PLAYER
Nom : CITIZEN
Service Description
Type : PLAYER
Nom : WAKE
Service Description
Type : PLAYER
Nom : SLEEP
Service Description
Type : PLAYER
Nom : DEAD
Service Description
Type : PLAYER
Nom : WEREWOLF
Player Agent
Service Description
Type : PLAYER
Nom : MAYOR
Utilisation de l’agent DF
String [] args = {Roles.WEREWOLF, Status.WAKE};
List<AID> werewolves = DFServices.findGamePlayerAgent(args, this.ctrlAgent,
this.ctrlAgent.getGameid());
8. PlayerAgent
Game Controller Agent
Init Behaviour
Attribuer un
rôle
NewMainRole
Behavoiur
FactoryInit
Behaviour
Envoie le
rôle à initier
XXROLEXXInit
Behaviour
Lance le behaviour
d’initialisation du rôle
Ajoute tous les
behaviours du rôle
Attribution d’un rôle
9. Role XXX Controller
Synchronous Vote
Behaviour
Player (IA)
Abstract Vote
Behaviour
Player (HUMAIN)
Human Vote
BehaviourPlayer (IA)
Abstract Vote
Behaviour
Requête de
vote / Résultat
Requête de
vote / Résultat
Gestion du vote
Turn Behaviour