Generate a minesweeper board which doesn't need guessing

前端 未结 3 384
鱼传尺愫
鱼传尺愫 2020-12-24 07:43

I am designing a Minesweeper-like game (with modified rules), and I want to prevent player from guessing. My goal is: The generated board is with few revealed squares, and p

3条回答
  •  情书的邮戳
    2020-12-24 08:32

    The implementation of Minesweeper in Simon Tatham's Portable Puzzle Collection is guessing-free. (It's also MIT licensed, so you're free to copy his implementation if you so desire.)

提交回复
热议问题