From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: 5x5 Arithmetic solver Date: Sat, 21 May 2011 20:31:24 -0300 Message-ID: References: <80lixz9ay5.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1306020697 27613 80.91.229.12 (21 May 2011 23:31:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 May 2011 23:31:37 +0000 (UTC) Cc: Jay P Belanger , Eli Zaretskii , davep@davep.org, emacs-devel@gnu.org To: Vincent =?iso-8859-1?Q?Bela=EFche?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 22 01:31:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QNvdr-0000oa-TO for ged-emacs-devel@m.gmane.org; Sun, 22 May 2011 01:31:32 +0200 Original-Received: from localhost ([::1]:53440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNvdr-00009S-EL for ged-emacs-devel@m.gmane.org; Sat, 21 May 2011 19:31:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNvdo-00008w-Jd for emacs-devel@gnu.org; Sat, 21 May 2011 19:31:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNvdn-0000w7-Kv for emacs-devel@gnu.org; Sat, 21 May 2011 19:31:28 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:43778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNvdn-0000w3-F3 for emacs-devel@gnu.org; Sat, 21 May 2011 19:31:27 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:43423 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QNvdm-0004Ye-LR; Sat, 21 May 2011 19:31:26 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8BF3666131; Sat, 21 May 2011 20:31:24 -0300 (ART) In-Reply-To: <80lixz9ay5.fsf@gmail.com> ("Vincent =?iso-8859-1?Q?Bela=EFch?= =?iso-8859-1?Q?e=22's?= message of "Sat, 21 May 2011 20:15:46 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139612 Archived-At: > 2011-05-21 Vincent Bela=EFche > * 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