How I wrote a command-line Minesweeper game with Python in 30 minutes which is packaged as a Docker container

I know it is not a big deal writing a minesweeper game but it is still a thing, if you write it in 30 minutes, right? :)

I will share the repository but first, let me explain how it started. It all started in a technical challenge, it has been asked for creating an “X” by “X” matrix and put “M” amount of “A” letter in it randomly.

I have created some for loops and created the matrix first then created another function for…



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store