scapewera.blogg.se

Simple minesweeper
Simple minesweeper





simple minesweeper

The sprites used in this project were created by Black Squirrel and can be found here.Puzzle games have been around for a while, and while some have advanced quite a lot over the years, some kept things simple. Python -m minesweeper expert -sprite =monochrome # Starting an *Expert* game with a full monochrome spritesheet If the -sprite flag is set it will override the other flags like -tile-sprite, -score-sprite and -face-sprite. h, -help show this help message and exit -rows ROWS # if $HOME/.local/bin/ is defined in $PATH The -tile-sprite, -face-sprite, and -score-sprite parameters define a set of sprite sheets that are available from this python package. Show high Score minesweeper -show-high-score Start a game # if $HOME/.local/bin/ is defined in $PATH Getting Started Installation python -m pip install pygame-minesweeper The motivation of these minesweeper projects is to learn the tooling around python projects, how to create CI/CD pipelines for python projects, and distributing python eggs. The core functionality of the game can be found here and the python package for the sprite sheet can be found here Motivation This simple implementation of minesweeper is done in Python using the game library pygame. The game originates from the 1960s, and has been written for many computing platforms in use today. The objective of the game is to clear a rectangular board containing hidden "mines" or bombs without detonating any of them, with help from clues about the number of neighboring mines in each field. Minesweeper is a single-player puzzle computer game.







Simple minesweeper