gyscos / cursive

A Text User Interface library for the Rust programming language
MIT License
4.26k stars 243 forks source link

Fixed marking cells with bombs for example `mines` #792

Closed xilec closed 2 months ago

xilec commented 3 months ago

Actually I don't know goal of this example and would this changes acceptable.

For fixing auto_reveal behaviour, it needs information about marked cells in model. When Marked state moved to border's model. All data about cells state become in the model cells, therefore much easy was remove synchronization cell's state between view and model and cell's state from view and just share cells state from model to view (and draw it).

This PR depends on #790

xilec commented 2 months ago

@gyscos, PR is ready to merge