Commits

Author Commit Message Labels Comments Date
zck
Merged in code to properly colorize the minefield.
zck
Made the colorization not a syntax highlighting, but specifically indicating what color to make a square. The problem I had was not an Emacs one, but a stupid, stupid off-by-one error on my part.
zck
non-working code to change how coloring works
zck
Bugfix: at the end of the game, if the user declines a new game, the minefield would be printed out after the new game was declined. The field would be printed *not* revealed. Fix: don't do that.
zck
Don't flood-fill marked mines.
zck
Better docstring on 'minesweeper-pick.
zck
The user can middle-click to choose-around the click.
zck
Let the user right-click to mark mines.
zck
Let the user left-click to choose a square.
zck
'minesweeper-refresh-field is no longer a macro; just a function.
zck
The minefield is now only filled when the user first picks a square. Also, mines are inserted more efficiently.
zck
Undoing part of commit 36. Moving lines again uses previous-line and next-line.
zck
Added max # of mines check. minesweeper-get-integer can now take int or string as default.
zck
fixed docstring
zck
Use 'make-symbol instead of 'gensym.
zck
Use the 'cl package to get gensyms; use gensyms in minesweeper-refresh-field.
zck
Made places that use 'minesweeper-refresh-field not use the implicit 'col and 'row variables, as it's crazy confusing.
zck
Display to the user how many mines have been marked. This will require a bugfix to change how the mine numbers are highlighted, as it's also highlighting the "3 of 10" that's being printed now.
zck
Fix bug introduced by last checkin. Also, 'minesweeper-end-game now takes care of ending the game given a string message to prompt for the new one with.
zck
Removed 'minesweeper-set-revealed, as it is deprecated.
zck
'minesweeper-pick no longer prints out the field; that should be taken care of somewhere higher in the call heirarchy. There's a new macro, 'minesweeper-refresh-field, which takes in a body argument, executes the body, and reprints the minefield. It takes care of moving point back to where it was when the macro's execution began.
zck
In 'minesweeper-choose and 'choose-around, use 'minesweeper-forward-line instead of 'next-line.
zck
The s key can be pressed to show the neighbors of point.
zck
The game is now timed. When the game ends, the duration the game took is displayed.
zck
Removed commented-out code.
zck
'minesweeper-get-integer now loops until the user inputs a nonzero integer.
zck
Removed superfluous code in 'win-game and 'lose-game.
zck
Added docstrings to various functions.
zck
When starting a new game, default the width, height, and minecount to the previous game's values.
zck
In the horrible case that the minefield is too wide to fit in a frame, moving up and down will take you to the actual previous/next line, not the visible one.
  1. Prev
  2. Next