Klönkasten und BuLi-Tipp
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user