gregziegan / peoples-budget-viz

2 stars 0 forks source link

Generate space for buildings #13

Open gregziegan opened 3 years ago

gregziegan commented 3 years ago

This doesn't really work well until the algorithm is changed to generate blocks instead of mazes.

Until then, we've got some blank spaces for parks and building.

Next up: how to fill in the gaps deterministically?

Current thoughts on approach:

The Board is just a Dict. I could map over the dict to get all the blank tile positions, and then collect those into some data structure. We'll reconcile the data structure and the current city budget. The output will be tuples of the blank tile positions and their assigned plot. Then, we'll do a Dict.update position (Plot assignedTile) every time a slider is moved. Something like that. i'm sure there's bugs in that model.