Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

Re: Minewsweeper solver


Article: 7793 of alt.hackers
From: fanf2@thor.cam.ac.uk (Tony Finch)
Newsgroups: alt.hackers
Subject: Re: Minewsweeper solver
Date: 10 May 1995 21:33:24 GMT
Organization: Trinity College, University of Cambridge
Lines: 17
Approved: for external use only.
Message-ID: 3orbf4$8vb@lyra.csx.cam.ac.uk
NNTP-Posting-Host: hammer.thor.cam.ac.uk
Status: RO

In article <3olvj4$92r@lyra.csx.cam.ac.uk>,
J. Sullivan <js10039@thor.cam.ac.uk> wrote:
>
> ObHack:
>
for(a[2]=0;a[2];a[a[2]]="0123456789abcdef"[(c>>(4*a[2]))&15])a[2]--;

A rather complicated NOP.

ObHack:

for(8[a]=8;a[8];8[a][a]="0123456789abcdef"[c>>28-(a[8]<<2)&15])--a[8];

Tony.
--
-.--   -. .- -- .   .. ...   ..-. .-. . -.. . .-.
.. -.-. -.-   .- -. - .... --- -. -.--   -. ..
-.-. .... --- .-.. .- ...   ..-. .. -. -.-. ....



Parent Parent Parent Parent

Child

Back to index