+2002-03-03 Sam Steingold <sds@gnu.org>
+
+ * play/snake.el (snake-score-file): Fixed parens (broken by the
+ last patch).
+ * play/tetris.el (tetris-score-file): Ditto.
+
2002-03-03 Richard M. Stallman <rms@gnu.org>
* play/tetris.el (tetris-score-file): Put in home dir, not in /tmp.
* play/snake.el (snake-score-file): Put in home dir, not in /tmp.
- * play/gamegrid.el (gamegrid-set-font, gamegrid-setup-face)
+ * play/gamegrid.el (gamegrid-set-font, gamegrid-setup-face)
(gamegrid-make-mono-tty-face): Fix usage of condition-case.
2002-03-03 Thien-Thi Nguyen <ttn@gnu.org>
"Y position of score.")
;; It is not safe to put this in /tmp.
-;; Someone could make a symlink in /tmp
+;; Someone could make a symlink in /tmp
;; pointing to a file you don't want to clobber.
-(defvar snake-score-file "~/.snake-scores")
+(defvar snake-score-file "~/.snake-scores"
"File for holding high scores.")
;; ;;;;;;;;;;;;; display options ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
"Shape 4" "Shape 5" "Shape 6" "Shape 7"))
(result `(vector (const nil))))
(while names
- (add-to-list 'result
- (cons 'choice
- (cons :tag
- (cons (car names)
+ (add-to-list 'result
+ (cons 'choice
+ (cons :tag
+ (cons (car names)
(mapcar (lambda (color)
(list 'const color))
(defined-colors)))))
"Y position of score.")
;; It is not safe to put this in /tmp.
-;; Someone could make a symlink in /tmp
+;; Someone could make a symlink in /tmp
;; pointing to a file you don't want to clobber.
-(defvar tetris-score-file "~/.tetris-scores")
+(defvar tetris-score-file "~/.tetris-scores"
;; anybody with a well-connected server want to host this?
;(defvar tetris-score-file "/anonymous@ftp.pgt.com:/pub/cgw/tetris-scores"
"File for holding high scores.")
[[0 0 0 0] [7 0 0 0] [0 0 0 0] [7 0 0 0]]
[[0 0 0 0] [7 0 0 0] [0 0 0 0] [7 0 0 0]]]])
-;;the scoring rules were taken from "xtetris". Blocks score differently
+;;the scoring rules were taken from "xtetris". Blocks score differently
;;depending on their rotation
-(defconst tetris-shape-scores
+(defconst tetris-shape-scores
[ [6 6 6 6] [6 7 6 7] [6 7 6 7] [6 7 6 7] [6 7 6 7] [5 5 6 5] [5 8 5 8]] )
(defconst tetris-shape-dimensions
(tetris-shift-down)
(setq tetris-n-shapes (1+ tetris-n-shapes))
(setq tetris-score
- (+ tetris-score
+ (+ tetris-score
(aref (aref tetris-shape-scores tetris-shape) tetris-rot)))
(tetris-update-score)
(tetris-new-shape))