diff options
author | Timothee Denizou <timothee.denizou@epita.fr> | 2022-06-21 21:50:15 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-06-21 21:50:15 +0200 |
commit | ca6c8fc72c66c7ed997801e055e5fb25374d69b5 (patch) | |
tree | 25ebfd465bcd1e1afa566c51e819a5f40ba2938f /lisp/repeat.el | |
parent | 3833ce16afe930a57554667afc16b20ce258983d (diff) | |
download | emacs-ca6c8fc72c66c7ed997801e055e5fb25374d69b5.tar.gz emacs-ca6c8fc72c66c7ed997801e055e5fb25374d69b5.tar.bz2 emacs-ca6c8fc72c66c7ed997801e055e5fb25374d69b5.zip |
Allow different randomization of shapes in Tetris
* lisp/play/tetris.el (tetris-allow-repetitions): New user option.
(tetris--shuffle, tetris--seven-bag): New functions.
(tetris-new-shape): Use the option.
* Added 7 bag randomizer for tetris
A piece is selected from the bag and removed each time we want a piece
When the bag is empty, refill the bag with the seven piece and shuffle it
Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/repeat.el')
0 files changed, 0 insertions, 0 deletions