File: mpuz.el.html
M-x mpuz generates a random multiplication puzzle. This is a
multiplication example in which each digit has been consistently replaced
with some letter. Your job is to reconstruct the original digits. Type
? while the mode is active for detailed help.
Defined variables (17)
mpuz-allow-double-multiplicator | Allow 2nd factors like 33 or 77. |
mpuz-board | The board associates to any digit the list of squares where it appears. |
mpuz-digit-to-letter | A permutation from [0..9] to [0..9]. |
mpuz-found-digits | A vector recording which digits have been decrypted. |
mpuz-framework | The general picture of the puzzle screen, as a string. |
mpuz-in-progress | Non-nil if a game is currently in progress. |
mpuz-letter-to-digit | The inverse of ‘mpuz-digit-to-letter’. |
mpuz-mode-abbrev-table | Abbrev table for ‘mpuz-mode’. |
mpuz-mode-hook | Hook to run upon entry to mpuz. |
mpuz-mode-map | Local keymap to use in Mult Puzzle. |
mpuz-mode-syntax-table | Syntax table for ‘mpuz-mode’. |
mpuz-nb-completed-games | Number of games completed. |
mpuz-nb-cumulated-errors | Number of errors made in previous games. |
mpuz-nb-errors | Number of errors made in current game. |
mpuz-silent | Set this to nil if you want dings on inputs. |
mpuz-solve-when-trivial | Solve any row that can be trivially calculated from what you’ve found. |
mpuz-trivial-digits | A vector recording which digits have been solved for you. |
Defined functions (26)
mpuz | () |
mpuz-ask-for-try | () |
mpuz-build-random-perm | () |
mpuz-check-all-solved | (&optional ROW COL) |
mpuz-close-game | () |
mpuz-create-buffer | () |
mpuz-digit-solved-p | (DIGIT) |
mpuz-ding | (ERROR) |
mpuz-get-buffer | () |
mpuz-mode | () |
mpuz-offer-abort | () |
mpuz-paint-board | () |
mpuz-paint-digit | (DIGIT) |
mpuz-paint-errors | () |
mpuz-paint-number | (N &optional EOL WORDS) |
mpuz-paint-statistics | () |
mpuz-put-number-on-board | (NUMBER ROW &rest COLUMNS) |
mpuz-random-puzzle | () |
mpuz-show-solution | (ROW) |
mpuz-solve | (&optional ROW COL) |
mpuz-start-new-game | () |
mpuz-switch-to-window | () |
mpuz-to-digit | (LETTER) |
mpuz-to-letter | (DIGIT) |
mpuz-try-letter | () |
mpuz-try-proposal | (LETTER-CHAR DIGIT-CHAR) |
Defined faces (4)
mpuz-solved | Face for solved digits. |
mpuz-text | Face for text on right. |
mpuz-trivial | Face for trivial digits solved for you. |
mpuz-unsolved | Face for letters to be solved. |