You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
613 B
27 lines
613 B
using CoreLibrary.Core;
|
|
using CoreLibrary.Evenements;
|
|
|
|
namespace CoreLibrary.Joueurs
|
|
{
|
|
public class Robot : Joueur
|
|
{
|
|
private static int nbRobots = 0;
|
|
|
|
public Robot() :
|
|
base($"Naps {++nbRobots}")
|
|
{
|
|
}
|
|
|
|
public override void QuandDemanderJoueurJouer(object? sender, PartieDemanderJoueurJouerEventArgs e)
|
|
{
|
|
if (e.Nom != Nom)
|
|
return;
|
|
|
|
while (!e.Code.Complet)
|
|
e.Code.AjouterJeton(new Jeton());
|
|
|
|
base.QuandDemanderJoueurJouer(sender, e);
|
|
}
|
|
}
|
|
}
|