Commits

Author Commit Message Labels Comments Date
zck
use mapc instead of mapcar when we don't care about its return value.
zck
oops. wrong bounds in minesweeper-neighbors
zck
minesweeper-neighbors runs in half the time by not calling (minesweeper-in-bounds), but having intelligent bounds on the for loops
zck
minesweeper-neighbors uses conses instead of lists. The function gets a minor speedup -- 10% or so
zck
added minesweeper-record-message, changed name of minesweeper-game-duration-string to minesweeper-game-duration-message.
zck
created minesweeper-game-duration-string function
zck
When toggling a mark, the entire minefield has to be printed out, or the mark-count won't be updated. Silly me -- this is a reversion of most of commit 81
johnsonk
Ticket #12. Game now respects last game's size and mine count.
zck
properly check the square's value in minesweeper-++
zck
use text properties instead of overlays. It's not any faster to start out with, but it doesn't decrease in speed the way creating more and more overlays does.
zck
fixed more stupid broken code with <= taking only two args; also checking the wrong values in minesweeper-neighbors
zck
< can only take two args. Also fixed a test.
zck
Moved code around to group refresh-field and refresh-square near print-field.
zck
simplified minesweeper-++ a little.
zck
added minesweeper-in-bounds helper function
zck
Properly sized hash tables at creation-time.
zck
When flood-filling after a user has selected a zero, don't check the value of a square until we know the square isn't already revealed.
zck
When marking a mine, refresh only the square.
zck
Only highlight neighbors when point is in the minesweeper buffer.
zck
Fixed indentation cruft from assorted code changes.
zck
merged, fixed merge errors from changesets 674d684aab29 and 321ac96da1c3 .
zck
Fixed two bugs: 1. refresh-square didn't seem to work at all -- inhibit-read-only was not t. 2. refresh-square didn't put point back where it started.
zck
Don't choose, marke, or choose-around a mine if the game's over.
zck
Unless the square selected is a 0, the whole minefield is not reprinted, just the selected square.
zck
Better docstrings.
zck
added function to reset neighbor overlays. This simplified some code.
zck
Change the behavior of the 's' key to toggle whether or not neighbors are highlighted upon emacs going idle.
zck
Don't choose-around when point is not in the minefield, even if it has neighbors in the minefield.
zck
Made the idle timer cancel itself when a new one will be created. Also, halved the time emacs must be idle to highlight neighbors.
zck
Neighbor highlighting follows point.
  1. Prev
  2. Next