From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_05,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dd8f36a29aea64a6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.181.12.35 with SMTP id en3mr854259wid.2.1359492073059; Tue, 29 Jan 2013 12:41:13 -0800 (PST) Path: bp2ni4747wib.1!nntp.google.com!goblin2!goblin.stu.neva.ru!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!npeersf03.am4!fx19.fr7.POSTED!not-for-mail Message-ID: <3b$lRAOVIDCRFwY0@ada-augusta.demon.co.uk> From: Mike H Reply-To: Mike Hopkins Newsgroups: comp.lang.ada Subject: Re: Old programmers never die ... References: <2e4c2077-76aa-4787-8f2e-572552903f47@googlegroups.com> MIME-Version: 1.0 User-Agent: Turnpike/6.07-M (<8c+$+zb077Pti5diXa8NqJs7Yt>) NNTP-Posting-Host: 83.104.138.185 X-Complaints-To: abuse@demon.net X-Trace: 1359492070 83.104.138.185 (Tue, 29 Jan 2013 20:41:10 UTC) NNTP-Posting-Date: Tue, 29 Jan 2013 20:41:10 UTC Date: Tue, 29 Jan 2013 20:33:25 +0000 X-Received-Bytes: 2448 Content-Type: text/plain;charset=us-ascii;format=flowed Date: 2013-01-29T20:33:25+00:00 List-Id: In message <2e4c2077-76aa-4787-8f2e-572552903f47@googlegroups.com>, Patrick writes >Hi Mike > >Did you post in online by chance ? > >is it gui based ? First things first. This version runs from the command line and that is where it displays the results. Apart from line feeds, the input is an unformatted string of '1' .. '9' and ' '. I have just broken it with a "Diabolical" (or rather it ran out of steam) so there is more work to do on the logic and a few more number crunching tricks to learn. The bit of theory that I have studied so far has convinced me that recursion and trial and error are routes to be avoided. The fun has been the intellectual exercise of dealing with alternative views of the grid as 9 lines, 9 columns or 9 blocks (of 3x3). I soon found it useful to use strict typing to define the position of each of the 81 cells in three dimensions (line, column, block). By the rules of Sudoku, the other 25 cells that make up those three dimensions interact; more fun! A GUI may come later, if at all. I suspect that will be an entirely new ball game and, for the time being, that aspect does not excite me. I am in my eightieth year and am doing this for my own amusement. Perhaps one reason for a lack of enthusiasm is that about 8 years ago I started, but never finished, a (model) railway signalling exercise. The logic was trivial but I got bogged down in trying to get an aesthetically pleasing display. Perhaps I was using the wrong tool, it was JEWL. -- Mike Swim? Naturally at Severn Vale