• exec/minesweeper.js

    From rswindell@1:103/705 to CVS commit on Fri Sep 22 23:52:09 2023
    exec minesweeper.js 1.5 1.6
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv24450

    Modified Files:
    minesweeper.js
    Log Message:
    Higher mine density for difficulty levels > 1.
    The level is recomputed / displayed based on the target number of cells for the level, so depending on the terminal size, a level 5 game board could actually be a level 4.8 (for example).
    You'll need a big terminal to get the maximum difficulty level for levels 3+. The revision of the game used is now stored/shared and listed in the winners rankings.
    Passing a cmd-line argument of "winners" will just show the top winners/ranking and exit (e.g. used as logon event or maybe clean-up event).
    Timelimit is now imposed (player loses if clock runs out).
    New modopts.ini [minesweeper] settings:
    timelimit (in minutes), default: 60
    winners (top ranked winners to show), default: 20
    An exploded mine is shown as '*' (red, blinking)
    Tighter game boards are now used when needed for large boards / smaller terminals.
    Better cursor management.
    Better PETSCII compatibilty (include 40 and 80 cols)
    Display elapsed time when game is won.
    Deduct the number of flags from "Mines:" value shown.
    Shown the computed difficulty level where the "Flags" value used to be.
    Better colors (thanks Emma!)
    Game clock doesn't starting counting down until the first cell is revealed. Requires update load/key_defs.js and sbbsdefs.js files.

    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)