We define a function which generates a square array of side-length given by the variable gridLength. The rules and description of the game can be found here: Step 1 But first we go back to the start and describe the implementation of classic minesweeper. With classic minesweeper being pretty much completed and hex minesweeper still remaining as a functional prototype, the project shifted into a new direction. This made me think of videos demonstrating pathfinding algorithms. However, things got really interesting when I was testing the chain uncover feature. Probably not the best approach to solving the problems of the original version but it took me on a pretty interesting journey and by contrast, classic minesweeper became a nearly trivial task. Recently having blown off the dust from the project, I wanted a change of scene to keep it interesting so I immediately began work on hexagonal minesweeper. The project was shelved but the notion of returning to it with a better approach and developed skills was always in my mind. Perhaps the biggest drawback however was the idea of generating a UI via displaying buttons in array form and it became clear that I was quickly coding myself into more problems. The chronology of this project is as follows:Ī while back, I made a rudimentary version of the classic game Minesweeper.Īll the basic elements were there but it lacked nearly all of the features needed to make it playable in a realistic setting ( such as automated uncovering of empty tiles) and toggling between uncover and flag was a nuisance. I learnt not only WL but programming in general by doing projects like this below so this step-by-step format is a homage to that experience while also hopefully being of benefit to anyone who is starting out and would like to learn programming while having fun. Concepts from this post are continued in part two which explores the methodology used in creating hexagonal minesweeper and how these techniques can be adapted for methods of pathfinding. The first part is a description of programming the game Minesweeper and ultimately deploying it as a CDF.
![online minesweeper online minesweeper](https://minesweeper.online/screen/820232798-hd-32.png)
Finance, Statistics & Business AnalysisĪfter much consideration, I have divided what was intended as one post into two.Wolfram Knowledgebase Curated computable knowledge powering Wolfram|Alpha. Wolfram Universal Deployment System Instant deployment across cloud, desktop, mobile, and more. Wolfram Data Framework Semantic framework for real-world data.