- Sep 24, 2019
-
-
deuce authored
the obvious things there as well as train to a higher level. This also uses UPPERCASE for filenames for the nonce since it allows A/B testing with the last released version of LORD 2.
-
rswindell authored
with a pipe (|) symbol, rather than a '-'. This accomplishes 2 things: - code:args can be used again with format-modifiers as pipe (|) is an illegal filename char in all supported OSes. - multiple format modifers can be specified for some may (now) be combined. * New format modifier 'T' (for thousands separated), adds separator (,) between thousands in numeric expanded @-codes. May be combined with other format modifiers when using the pipe-syntax (not the dash).
-
rswindell authored
(unsigned-long to ASCII with commas) in rev 1.68 (addressing warnings). A size_t (i) can't go negative. Duh.
-
rswindell authored
A little prettier.
-
rswindell authored
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!
-
deuce authored
This was the last major piece for basic game functionality. Next up is the multi-player features like mail, chat, online battles, then it's down to finishing up all the keywords.
-
- Sep 23, 2019
-
-
rswindell authored
*nix systems).
-
deuce authored
-
rswindell authored
defined these variable names and if they load('sbbsdefs.js'), which load()'s this file, then those scripts fail with errors like: !JavaScript .../key_defs.js line 7: TypeError: redeclaration of var KEY_ESC
-
deuce authored
Makes fast movement actually work.
-
deuce authored
-
deuce authored
Add support for 'B' and 'F' hotkeys.
-
rswindell authored
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.
-
deuce authored
Just a couple things in here since we don't care about registration.
-
deuce authored
-
deuce authored
magic.
-
deuce authored
-
deuce authored
Put in a dummy fight handler so it doesn't crash on random encounters. Save player on exit.
-
rswindell authored
Address problem reported by Mark Lewis: If a timed event is configured to both run "exclusively" and on "Any" node, then any nodes in use at the time of the event would get their status changed to waiting-for-connection (WFC) and it could actually become possible for 2 clients to be using the same node number. So, when loading the configuration, turn off the "exclusive" flag if the event's node is set to "Any" (0). Just for completeness, fix the actual bug (introduced in main.cpp 1.744) too.
-
rswindell authored
-
deuce authored
maintenance. Random events, fight, and sellmanager are likely all that's still needed for this to be somewhat playable.
-
- Sep 22, 2019
- Sep 21, 2019
-
-
rswindell authored
Using require() and 'const' as appropriate. Added KEY_ESC (escape key) definition. Added CTRL_A through CTRL_Z definitions. This file can be loaded like var keydef = load({}, 'key_defs.js') and then use keydef.KEY_UP, keydef.CTRL_Z, etc., or just use them globally as defined when load('sbbsdefs.js') is used.
-
rswindell authored
between "light" and "high" in reference to high-intensity (bright) CGA colors, let's not add a 3rd variant. <sigh>
-
rswindell authored
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)
-
deuce authored
-
rswindell authored
- 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
-
deuce authored
-
rswindell authored
dirwrap.c 841: Declaration is not allowed here in function getfilesizetotal
-
rswindell authored
-
rswindell authored
- 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.
-
rswindell authored
Use cursor-right movement rather than spaces for left-margin. Don't do the clear-to-EOL thing added in previous commit.
-
rswindell authored
"width" argument (in columns), defaults the user's current screen column-width but you can now over-ride this value when an additional/optional argument. Also, center() now clears-to-EOL before sending the CRLF to the terminal. Hopefully this doesn't mess up anyone's existing use of center().
-
deuce authored
Ensure `v01 is set to responce since the brew hag requires that.
-
deuce authored
-
rswindell authored
-
rswindell authored
Digital joins the game-game, for the win!
-