• exec/minesweeper.js

    From rswindell@VERT to CVS commit on Saturday, September 21, 2019 08:44:59
    exec minesweeper.js NONE 1.1
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv22638

    Added Files:
    minesweeper.js
    Log Message:
    Synchronet Minesweeper, yeah, that game. Pretty awesome eh?
    Digital joins the game-game, for the win!



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, September 21, 2019 11:13:41
    exec minesweeper.js 1.1 1.2
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv13154

    Modified Files:
    minesweeper.js
    Log Message:
    Cosmetic improvements only:
    - Disable Ctrl-T/U/P while in the game.
    - Always center the board in the terminal screen.
    - Draw a border around the board.
    - If the user hits 'Q' and the "Difficulty level" prompt, quit or don't start
    new game.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, September 21, 2019 11:17:16
    exec minesweeper.js 1.2 1.3
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv13915

    Modified Files:
    minesweeper.js
    Log Message:
    Fix the max-difficulty level bug introduced in previous commit. :-(



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, September 21, 2019 19:24:37
    exec minesweeper.js 1.3 1.4
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv11991

    Modified Files:
    minesweeper.js
    Log Message:
    * Post/read game winners via the SYNCDATA msgbase (if there is one)
    - to read winners from the msgbase, v3.17c (with MsgBase.get_index()) is req'd * Calculate the difficulty level, no need to store ("level") in winners list
    * The winners list object changed a bit ("user"->"name") - you may need to
    delete your data/minesweeper.jsonl, if you have one already
    * The default difficulty level (1-5) may now be specified in the [minesweeper]
    section of your ctrl/modopts.ini file, if you don't want the user to be
    prompted. It can also be passed as a cmdline argument, as before.
    * Cosmetic improvements (?):
    - border around the game board
    - both covered and uncovered empty cells are more easily discernable now




    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, September 21, 2019 20:47:48
    exec minesweeper.js 1.4 1.5
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv27371

    Modified Files:
    minesweeper.js
    Log Message:
    Roll my own non-destructive console.center(), to be more compatible with v3.17b When reading syncdata "Winner" messages, exclude the tails (they're not valid JSON).
    Include more space for Winner addresses (FTN addresses can be > 8 chars)



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, September 23, 2019 06:52:09
    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.


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, September 24, 2019 05:10:40
    exec minesweeper.js 1.6 1.7
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv1077

    Modified Files:
    minesweeper.js
    Log Message:
    Installation comments added.
    If the script crashes with an unhandled exception, posts a message to me
    in syncdata with the details, automatically.
    Use lower intensity colors for most of the indicators.
    When a cell with a digit is selected, highlight the surrounding cells with high-intensity colors (very helpful for the game play!).
    Guarantee that the first cell uncovered won't be a mine (thanks, Nelgin!) Winner syncdata messages now include an MD5 sum so it's not so trivial for sysops to edit their messages and "cheat" the scoring/ranking parameters.
    Strip control codes (including Ctrl-A sequences) from syncdata msgs before trying to JSON.parse() them, thanks Nelgin!
    Allow the 'F' key to start the game.
    Start with the selected cell being the center of the board.
    The '5' key (middle of numpad) will move to center of board.
    Don't abort game on Ctrl-C press.
    When [N]ew Game is selected a game is in progress, prompt "New Game (Y/N)"? When [Q]uit Game is selected a game is in progress, prompt user.
    Added support for "nocls" cmdline option.
    Added support for number of winners to be specified on cmdline when the "winners" cmd is used.
    Thanks to Nelgin for many of his suggestions and test results.
    Need more testers and feedback!



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT/DOCKSUD to rswindell on Thursday, September 26, 2019 18:43:36
    El 24/9/19 a las 02:10, rswindell escribiˇ:
    exec minesweeper.js 1.6 1.7
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv1077

    cool game, i setup and test it,

    i found that the winners entry show @VERT (i think that the qwk id are
    used), but for my don't show mine, @DOCKSUD

    Could i have forgotten something?

    Thanks!

    ---
    ■ Synchronet ■ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar
  • From Digital Man@VERT to Ragnarok on Thursday, September 26, 2019 18:56:24
    Re: Re: exec/minesweeper.js
    By: Ragnarok to rswindell on Thu Sep 26 2019 11:43 am

    El 24/9/19 a las 02:10, rswindell escribiˇ:
    exec minesweeper.js 1.6 1.7
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv1077

    cool game, i setup and test it,

    i found that the winners entry show @VERT (i think that the qwk id are used), but for my don't show mine, @DOCKSUD

    Could i have forgotten something?

    No, that's normal since your winners are local. It could say <local> or something like that instead of blank where the address is.

    digital man

    Synchronet/BBS Terminology Definition #78:
    UART = Universal Asynchronous Receiver/Transmitter
    Norco, CA WX: 74.3°F, 67.0% humidity, 3 mph ESE wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Ragnarok on Thursday, September 26, 2019 18:57:46
    Re: Re: exec/minesweeper.js
    By: Digital Man to Ragnarok on Thu Sep 26 2019 11:56 am

    Re: Re: exec/minesweeper.js
    By: Ragnarok to rswindell on Thu Sep 26 2019 11:43 am

    El 24/9/19 a las 02:10, rswindell escribiˇ:
    exec minesweeper.js 1.6 1.7
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv1077

    cool game, i setup and test it,

    i found that the winners entry show @VERT (i think that the qwk id are used), but for my don't show mine, @DOCKSUD

    Could i have forgotten something?

    No, that's normal since your winners are local. It could say <local> or something like that instead of blank where the address is.

    BTW, your win showed up here on Vertrauen as:
    12 Ragnarok @DOCKSUD 1.0 1:10 10x10x10 09/26/19 1.8

    So... situation normal.

    digital man

    Synchronet/BBS Terminology Definition #74:
    Telenet = Proprietary packet switched network (variant on X.75)
    Norco, CA WX: 74.3°F, 67.0% humidity, 3 mph ESE wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT/DOCKSUD to Digital Man on Friday, September 27, 2019 02:25:14
    El 26/9/19 a las 15:56, Digital Man escribiˇ:


    No, that's normal since your winners are local. It could say <local> or something like that instead of blank where the address is.

    digital man

    ok! great!

    ---
    ■ Synchronet ■ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar
  • From Ragnarok@VERT/DOCKSUD to Digital Man on Friday, September 27, 2019 02:27:25
    El 26/9/19 a las 15:57, Digital Man escribiˇ:

    BTW, your win showed up here on Vertrauen as:
    12 Ragnarok @DOCKSUD 1.0 1:10 10x10x10 09/26/19 1.8

    So... situation normal.

    digital man

    Excelent! thanks!

    ---
    ■ Synchronet ■ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar