Game of Life partial scoring and rule-clarification (#258)

* partial scoring and rule clarification
* better ql scoring
* word seq reverse typos
This commit is contained in:
Rich Jones 2025-03-03 22:22:39 +01:00 committed by GitHub
parent 340d6a7ab9
commit e3b7365f50
4 changed files with 60 additions and 9 deletions

View file

@ -192,7 +192,9 @@ Buttons:
# Partial credit for reaching target (optional)
final_state = self.simulate_sequence(entry["metadata"], user_sequence)
if final_state == entry["metadata"]["target_value"]:
return 0.5 # Alternative scoring option
if len(user_sequence) == len(target_sequence):
return 1.0 # Different answer, but qually correct
return 0.5 # Alternative scoring - you're correct, but not optimal
return 0.1