Klönkasten und BuLi-Tipp

This commit is contained in:
R40fendt
2025-12-23 18:30:06 +01:00
parent 5f85a75521
commit df69dd24ba
14 changed files with 393 additions and 91 deletions

View File

@@ -89,7 +89,7 @@ class Spiel {
}
public calcPoints(){
if(this.tipp==null) return 0;
if(this.result==this.tipp) return 3;
if(this.result[0]==this.tipp[0] && this.result[1]==this.tipp[1]) return 3;
let differenztipp=this.tipp[0]-this.tipp[1];
let differenz=this.result[0]-this.result[1];
if(differenztipp==differenz) return 2;