This commit is contained in:
Aelita4 2022-12-02 10:04:11 +01:00
parent 53c3925d7c
commit 56c9032aab
Signed by: Aelita4
GPG Key ID: E44490C2025906C1
1 changed files with 20 additions and 11 deletions

View File

@ -25,13 +25,16 @@ function getScore(opponent, player) {
switch(player) {
case "X":
score += 1;
//score += 1;
score += 0;
break;
case "Y":
score += 2;
//score += 2;
score += 3;
break;
case "Z":
score += 3;
//score += 3;
score += 6;
break;
}
@ -40,39 +43,45 @@ function getScore(opponent, player) {
case "A":
switch(player) {
case "X":
//score += 3;
score += 3;
break;
case "Y":
score += 6;
//score += 6;
score += 1;
break;
case "Z":
score += 0;
//score += 0;
score += 2;
break;
}
break;
case "B":
switch(player) {
case "X":
score += 0;
score += 1;
break;
case "Y":
score += 3;
score += 2;
break;
case "Z":
score += 6;
score += 3;
break;
}
break;
case "C":
switch(player) {
case "X":
score += 6;
//score += 6;
score += 2;
break;
case "Y":
score += 0;
//score += 0;
score += 3;
break;
case "Z":
score += 3;
//score += 3;
score += 1;
break;
}
break;