emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 5x5 Arithmetic solver


From: Stefan Monnier
Subject: Re: 5x5 Arithmetic solver
Date: Sat, 21 May 2011 20:31:24 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> 2011-05-21  Vincent Belaïche  <address@hidden>

>       * play/5x5.el: Add an arithmetic solver to suggest positions to
>       click on. Make 5x5 multisession.
>       (5x5-mode-map): Add keybinding to function `5x5-solve-suggest'.
>       (5x5-solver-output): New defvar, output of function
>       `5x5-solve-suggest'.
>       (5x5-local-variables): New defconst. List of variable to be made
>       buffer local to achieve 5x5 multi-session-ness.
>       (5x5): Set 5x5-grid-size only if SIZE is non-negative. Modify order
>       of processing, as in order to achieve multi-session-ness you have to
>       set `5x5-mode' first, as `5x5-mode' is what make session-dependent
>       variables buffer local.
>       (5x5-mode): Make session-dependent variables buffer local.
>       (5x5-grid-to-vec): New defun. Convert a 5x5 game grid into a Calc
>       matrix in Z/2Z.
>       (5x5-vec-to-grid): New defun. Convert a Calc matrix in Z/2Z into a
>       5x5 game grid.
>       (5x5-log-buffer): New defvar. Not defined, provisionned for
>       debugging Arithmetric solver.
>       (5x5-log-init): New defun. Defined to dummy, provisionned for
>       debugging Arithmetric solver.
>       (5x5-log): New defun. Defined to dummy, provisionned for debugging
>       Arithmetric solver.
>       (5x5-solver): New defun, make the actual algorithm of arithmetic
>       solver, to be usable that function needs some wrapper to the 5x5
>       user interace, this wapper is function `5x5-solve-suggest' for
>       invocation, and function `5x5-draw-grid' for the diplay.
>       (5x5-solve-suggest): New defun, invoke the arithmetic solver, and
>       display solution.

Thanks.  Note that usually when you add a new functions, you can just
say "(fun1, fun2, fun3): New functions" without having to explain what
it does.


        Stfean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]