Go minesweeper
Basic implementation of minesweeper game in CLI built with golang

Motivation
One day I could not sleep for some reason. So, to clear out my boredom I decided to write basic random mines + counting mines for fun, Which did help to sleep that night. Also, I wanted to learn how to work with terminal UI & it was a while since I wrote some go code. Well, the whole thing turns out to be a great learning experience.
Requirements to run
I am not sure if the old go version will work but you can try.
- Go 1.16+
How to run
go run \*.go
How to build
Or you can download directly from the release section (opens in new tab) of the GitHub repository for your OS. If you download the binary from tags you have to chmod the binary chmod 777 ./minesweeper-macos or chmod 777 ./minesweeper-linux based on your os.
go build -o minesweeper./minesweeper
Code architecture
This is my first time writing a small-scale go project. Please provide your feedback by raising an issue.
constants.gocontains shared variablesengine.gocontains all raw logic to calculate bombs, grid & bomb countsmain.gobindsenginewithuimodels.gocontains structui.gocontains all logic to trigger/update ui based on data
License
This project is licensed under the MIT license, Copyright (c) 2020 Hamza Iqbal. For more information see LICENSE.md.