summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2022-09-07 12:07:33 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2022-09-07 12:07:33 +0100
commit1be123a814240b00ece0f659d24f09293dea6756 (patch)
tree264d54cbd32c2f157c6eaabe439425774a73e527
parentFix the intro code! (diff)
downloadtoy-1be123a814240b00ece0f659d24f09293dea6756.zip
Actually call the size methodHEADmain
-rw-r--r--scripts/toy/play.groovy2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/toy/play.groovy b/scripts/toy/play.groovy
index c4e86a0..5635f22 100644
--- a/scripts/toy/play.groovy
+++ b/scripts/toy/play.groovy
@@ -102,7 +102,7 @@
}
final sessions = DOMME.sessions.findAll { s -> eval(s.require ?: true) };
final probabilities = sessions.withIndex().collect { s, idx -> [idx] * s.probability }.sum();
- final session = sessions[probabilities[getRandom(probabilities.size)]];
+ final session = sessions[probabilities[getRandom(probabilities.size())]];
// Change if required
dress(session.phases
.collect { phase -> phase.activities + phase.intervals }