added random moves - Untested
This commit is contained in:
parent
22790f857a
commit
30c49a5952
1 changed files with 4 additions and 9 deletions
|
@ -38,15 +38,10 @@ int nCible = 1;
|
|||
|
||||
void majCible() {
|
||||
Prepare_Clear_LED(nLed);
|
||||
|
||||
nLed++;
|
||||
nCible++;
|
||||
if (nCible > 4) {
|
||||
nCible = 1;
|
||||
}
|
||||
if (nLed > 3) {
|
||||
nLed = 0;
|
||||
}
|
||||
|
||||
// on utilise le "bruit" de l'entree (capteur) comme source d'aléatoire
|
||||
nLed=tabJoueur[0].dft % 4;
|
||||
nCible = nLed +1;
|
||||
|
||||
Prepare_Set_LED(nLed);
|
||||
Choix_Capteur(nCible);
|
||||
|
|
Loading…
Reference in a new issue