ibauk / sm3

ScoreMaster v3 application only
MIT License
0 stars 2 forks source link

Rest bonuses #17

Closed ibauk closed 2 years ago

ibauk commented 2 years ago

Rest bonuses are typically implemented using a "start rest bonus" code, RB0, and several other RBn codes reflecting a particular number of hours of rest. Say, RB2, RB5, RB7.

RB0 can be used multiple times and is a pointless bonus. Other RB codes should only be used once each and need to be judged in conjunction with the most recent RB0

ibauk commented 2 years ago

We'll use rally settings as follows:-

restBonusStartGroup=RBStart restBonusGroups=RBOne,RBTwo

A rest period can be started by claiming any bonus in the group 'RBStart'. Start bonuses may be claimed multiple times if the group is type R (radio buttons) otherwise once each. A rest period can be claimed by claiming any bonus in one of the bonus groups but only one such group may be claimed and each bonus may be claimed only once if checkbox group otherwise unlimited.

ibauk commented 2 years ago

Basic RB matching/reporting done.

Still need to enforce one group not two + Radio/Checkbox differences

ibauk commented 2 years ago

Forget the radio/checkbox thing.

Start codes can be used multiple times; claim codes only used once.

Group claim mismatches now trapped.