RoloLudo/RoloLudo.package/FirelightsGame.class/instance/queryOracles.st

5 lines
160 B
Smalltalk
Raw Normal View History

accessing
queryOracles
| currentRoll |
currentRoll := self roll.
^ self oracles detect: [ :each | (each at: 'dice') = currentRoll ] ifNone: [ ^ currentRoll ]