/Minesweeper

Random 'minesweeper' course layout generator in Python

Primary LanguagePythonMIT LicenseMIT

Minesweeper

Random 'minesweeper' course layout generator in Python

Install & Run

Setup a python environment and install pygame

Run python main.py

Configure

  • DIMENSIONS: Set your display resolution (w,h)
  • COLOUR: Ring colour (r,g,b)
  • CANS: Total cans
  • CAN_SIZE_PERCENTAGE: What percentage the can radius is of the overall ring radius
  • MIN_DIST_BETWEEN_CANS: Minimum dist in pixels between cans
  • CAN_COLOUR: Can colour (r,g,b)
  • STARTING_RING_SIZE_PERCENTAGE: What percentage the starting ring radius is of the overall ring radius
  • STARTING_RING_COLOUR: Starting ring colour (r,g,b)