Sometimes tho the algorithm gets stuck on a 50/50 case or another scenario where it can't tell what cell to reveal so it just goes back to randomly revealing cells. If a cell has a number of flagged cells equal to the number inside it, then all the remaining neighbor cells are definitely safe so reveal them.If a cell has a number of neighbor covered cells equal to the number inside it, then all those cells are definitely mines so flag them.Randomly reveal cells until a cell with a zero is hit.I also coded a simple algorithm to solve automatically the field, it's based on three simple steps that i also follow when i play: I'm here to present to you my own freshly made version of Minesweeper!įeel free to download and play from either the python program or the executable file that you can find in this GitHub Repo:ĪlessandroLibotte/Minesweeper-autosolver: Simple Minesweeper game with built in auto solving algorithm ()Īs i said I'm fairly new to the game so i may have missed something or done something wrong so feel free to comment with any advice on how to make this little project better. ![]() Hello everyone!! I'm a fellow player, fairly new to the game (i started playing consistently not too long ago) and i just joined this community.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |