Commits

Author Commit Message Labels Comments Date
zck
add a red highlight iff the user chooses a mine.
zck
Only set *minesweeper-game-epoch* when the first field is chosen, not when the game is created.
zck
make refresh-field actually work. So this most likely means that my code wasn't tested. Crud.
zck
make highlighting, choosing around work when neighboring the minefield.
zck
In 'refresh-field, use 'goto-char to stay at the same point in the minefield. This seems to fix issue 19, but I'm not totally sure.
zck
put debug into 'refresh-field
zck
In 'inform-around, we don't actually need to supply a default value for the optional argument; minesweeper-++ will handle that.
zck
docstring updates for *minesweeper-field* and 'print-field
zck
update 'view-mine docstring
zck
finish 'pick docstring
zck
changed 'minesweeper-hide to use (row, col) instead of (col, row)
zck
changed 'minesweeper-reveal to use (row, col) instead of (col, row)
zck
oops, need to call 'inform-around with the correct args, or mines won't have numbers around them.
zck
changed 'insert-mines internally to use (row, col)
zck
made 'view mine use (row, col) instead of (col, row)
zck
made 'view-mine take (row, col) args instead of (col, row)
zck
changed 'fill-field to take (row, col) arguments instead of (col, row)
zck
changed the rest of (x, y) to (col, row)
zck
changed 'fill-field, 'insert-mines to use row and col instead of y and x
zck
started converting (x, y) to (col, row)
zck
'minesweeper-position now returns a list where (elt pos 2) is whether the position is in-bounds or not. Also added a check to every user-facing function that ensures the positionis in-bounds. This should eliminate any possible way for the user to perform an action on a square outside the minefield.
zck
New function: 'minesweeper-position. It's used instead of getting the position manually.
zck
zck
Let's pretend we can speak English and not pluralize things with a cardinality of one. Thanks.
zck
Used (truncate x y) instead of (truncate (/ x y)), as per nerdolution: http://www.reddit.com/r/emacs/comments/r7jdu/why_is_it_that_emacs_lisp_functions_are_often/c43nwwm
zck
added documentation, so I should be able to upload it to ELPA.
zck
Corrected bad description of *minesweeper-blanks-left*
zck
when the game starts, instead of moving to the beginning of the buffer, move to the approximate middle point of the minefield
zck
When starting a game, put point in the upper left square.
zck
Added more documentation to 'minesweeper.
  1. Prev
  2. Next