Free tools & games for everyone
Free · No sign-up · No accounts
Write business rules as a decision table and find gaps, conflicts, unused and redundant rules; try cases, simplify the table and export test cases.
In a cell: - means any value, a / b means either, not a means anything but a. Lines starting with # are ignored.
Member: yes, no. Split numbers into bands (under 50, 50 to 100, over 100).|, then -> and what happens.| Tab | Move between boxes, lists and buttons; results update as you type |
|---|---|
| Arrow keys in a list | Pick a value when trying a case |
-) at the end of a first-wins table to be sure.The lab lists every combination of condition values (up to 200,000) and checks which rules match each one. A gap is a combination no rule matches. In a unique table, a combination matched by rules with different actions is a conflict. In a first-wins table, a rule that never wins any combination can never be used. A rule is redundant when every case it covers is also covered by another rule with the same action.
The simplified table starts from the result of every combination and repeatedly joins two rows with the same action that differ in just one condition, so it gives the same answer for every covered case with fewer rows (not always the very fewest). Gaps are merged the same way so they read as short rules.
The tests compare gaps, conflicts, unused and redundant rules with an independent Python check on random tables, and check that the simplified table gives the same result for every combination.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product