Zomis / Minesweeper-Analyze

Calculating Minesweeper probabilities cleanly, efficiently and correctly.
BSD 2-Clause "Simplified" License
9 stars 2 forks source link

Dynamic Rules #18

Closed Zomis closed 8 years ago

Zomis commented 9 years ago

When a field is marked as "mine" or "not mine", add a way for a callback to add new rules.

This change is the only change required to support Alberi fully.

For example:

____
_abc
_dXe
_fgh

When the X is marked as "is a mine", dynamically add a rule that says a + e + f + h = 0

Zomis commented 9 years ago

related to #10