scoring implemented; clients calculate scores individually and display ranks per player
This commit is contained in:
@@ -22,3 +22,9 @@ func _to_string() -> String:
|
||||
"e": expected,
|
||||
"a": actual,
|
||||
})
|
||||
|
||||
func get_score() -> int:
|
||||
if expected == actual:
|
||||
return 20 + (actual * 10)
|
||||
else:
|
||||
return (abs(max(expected, actual)) - abs(min(expected, actual))) * -10
|
||||
|
||||
Reference in New Issue
Block a user