8000 GitHub - aleksilei/sweeper: Mine sweeper python GUI implementation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aleksilei/sweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mine sweeper game made with pyglet and sweeperlib helper library

Simple mine sweeper implementation for Elementary Programming class

The program keeps track of previous games and their details with a scoreboard that is printed when the game is started

The game starts with an initial CLI for game initialization and scoreboard logging

The game itself runs in a GUI with pretty sprites sourced from here

Included font sourced from here

The program uses a single JSON file for a database for simplicity

This implementation uses the timer as a countdown, rather than a time counter

The main problem with the game is random mine generation. Mines are initialized completely randomly and can result in boring games. Also the user can fail on the first click.

The program was tested on Arch Linux on Mac-OS

Note

On Mac-OS ARM64 closing the event loop results in unexpected behaviour where the entire program closes instead of returning from the event-loop start. Fixing this is outside of the scope of this project and may be considered as platform specific behaviour.

Usage

  • Install dependencies
    $ pip install pyglet==1.5.29
    
  • Start the game
    $ python main.py
    

External dependencies:

  • pyglet < v2.0 Tested on v1.5.29

Screenshot

Screenshot

About

Mine sweeper python GUI implementation

Resources

Stars

Watchers

Forks

Languages

0