diff options
author | Sam Steingold <sds@gnu.org> | 2002-03-03 16:09:28 +0000 |
---|---|---|
committer | Sam Steingold <sds@gnu.org> | 2002-03-03 16:09:28 +0000 |
commit | adcce7d5f5c2323ff8d56fb12841bab6b541170d (patch) | |
tree | 67277c63366b07ef7f1d44a653566e807b735cb7 /lisp/play/tetris.el | |
parent | 9caf26fececfca2072b59e6a1cc2a431155364d7 (diff) | |
download | emacs-adcce7d5f5c2323ff8d56fb12841bab6b541170d.tar.gz |
fixed parens in the last patch
Diffstat (limited to 'lisp/play/tetris.el')
-rw-r--r-- | lisp/play/tetris.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/play/tetris.el b/lisp/play/tetris.el index e0bd3f99aa8..778d1ba6933 100644 --- a/lisp/play/tetris.el +++ b/lisp/play/tetris.el @@ -85,10 +85,10 @@ Element 0 is ignored." "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))))) @@ -151,9 +151,9 @@ Element 0 is ignored." "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.") @@ -235,10 +235,10 @@ Element 0 is ignored." [[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 @@ -491,7 +491,7 @@ Element 0 is ignored." (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)) |