Minesweeper generator script

  • LBPHacker
    15th Nov 2015 Developer 2 Permalink

    The title says it all. Mines, flagging, empty cells revealing adjacent non-mine cells, etc..

     

    Download and usage

    • Download gms.lua from here
    • Issue the following command from the console:

    loadfile("gms.lua")(posx, posy, width in cells, height in cells, difficulty)

     

    Difficulty varies between 0 and 20, with 0% and 100% of the cells being mines, respectively.

    Width and height are in cells. Each cell is a 12x12 square. Maximum width and height around 45x25.

     

     

    Example

    Edited once by LBPHacker. Last: 6th Jul 2019
  • Alexwall
    29th Jan 2016 Member 0 Permalink

    gms.lua:33: bad argument #1 to 'partProperty' (number expected, got nil)

  • LBPHacker
    29th Mar 2016 Developer 0 Permalink

    What arguments did you pass?

     

    Also, why hasn't this thread shown up as recently bumped?