Commit Graph

16 Commits

Author SHA1 Message Date
cdo ac48d84a81 Refactor to extract update() function 2025-03-22 13:34:13 +00:00
cdo a8cae14d6c Set to standard 'beginner' configuration 2025-03-22 13:34:13 +00:00
cdo 9d7cd40b54 Run 1000 times and measure success rate 2025-03-22 13:34:13 +00:00
cdo 4ffed4e4ce Keep track of total mines and total unknowns 2025-03-22 13:34:13 +00:00
cdo 127b7a17ea Never probe known mines 2025-03-22 13:34:13 +00:00
cdo 778b2defdd Restart update after identifying mine 2025-03-22 13:34:13 +00:00
cdo 6400079289 Probe known-safe tiles 2025-03-22 13:34:13 +00:00
cdo 699e6b118d Guess and update in a loop 2025-03-22 13:34:13 +00:00
cdo 7cdf4dcae6 Identify mines on edges 2025-03-22 13:34:13 +00:00
cdo c701669fc9 Create countadj helper function 2025-03-22 13:34:13 +00:00
cdo 9508362149 Pick an initial point at random 2025-03-22 13:34:13 +00:00
cdo c8c382d9cc Implement probes 2025-03-22 13:34:13 +00:00
cdo b2d9dcb6fe Set up solve state 2025-03-22 13:34:13 +00:00
cdo 67afbc1353 Write Makefile 2025-03-22 13:34:13 +00:00
cdo 0c0ccc2930 Implement puzzle generation 2025-03-22 13:34:13 +00:00
cdo bb63cc0a30 Add license, .gitignore and .clang-format 2025-03-22 13:33:57 +00:00