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.
mastermind/BibliothequeClasses/Joueur.cs

38 lines
865 B

using System.Security.Cryptography.X509Certificates;
namespace BibliothequeClasses
{
public class Joueur : Combinaison
{
private string nom;
private int nbCoups;
private string[] combinaisonAleatoire = [];
public Joueur(string nom)
{
this.nom = nom;
this.nbCoups = 0;
}
public void FaireProposition(Combinaison saisi)
{
this.nbCoups += 1;
}
public string[] GenererCombinaison()
{
for(int i = 0; i < 4; i++)
{
var rand = new Random();
// recuperer une couleur est l'ajouter à la combinaison aléatoire
}
}
public static int NbCoups()
{
get;
}
}
}