comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Mine Detector Game
Date: Mon, 05 Nov 2001 06:02:33 GMT
Date: 2001-11-05T06:02:33+00:00	[thread overview]
Message-ID: <3BE62B68.D8F02BD7@acm.org> (raw)
In-Reply-To: mailman.1004917867.15022.comp.lang.ada@ada.eu.org

Michal Nowak wrote:
> 
> Thanks, I enjoyed it (maybe too long as for the first time :-)).
> Especially, when I read, that it never requires guessing,
> I started to play with engagement (some years ago when I was
> in high school, there was many losses because the player had to
> guess). But finally I came to this situation:
>     _____________________
> ... | 2 | M |<3>| 1 | 0 |
>     ---------------------
> ... | 3 | M |<6>| 3 | 1 |
>     ---------------------
> ... | 3 | M | M | M | 1 | <--- ***
>     ---------------------
> ... | 2 | M | 4 | 3 | 2 |
>     ---------------------
> .....               | M |
> 
> ... - not important
> _____
> | M | - cell with marked mine
> -----
> _____
> | 2 | - opened cell
> -----
> _____
> |<3>| - covered cell
> -----
> 
> Maybe it is too late and I am missing something, but it looks like,
> I have to guess. Does this non-guessing feature means that I do not
> have to guess on the beginning of the game (that there should always
> be covered cell with <0> on the edge)? Right now the only idea of
> alghoritm eliminating totally guessing has too high computational
> complexity, but maybe it is possible to use some heurestics.

Unmark the rightmost mine in the marked row. If that cell is <2>, the
mine is in <3>, otherwise the mine is in <6>. No guessing required.

> 
> I found that, Auto Mark function sometimes marks incorrect fields.
> I'm too sleepy now to analize when, I know only tha it happens.

We have been playing with this program for several months and not
observed this. Please send a window image of such a situation to
jrcarter@acm.org if you encounter it again.

> 
> Anyway, thanks for providing some nice relax.

You're welcome.

BTW, I don't know why the announcement posted twice, but I apologize for
it anyway.

-- 
Jeffrey R. Carter
PragmAda Software Engineering



  parent reply	other threads:[~2001-11-05  6:02 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-04 22:24 Mine Detector Game Jeffrey Carter
2001-11-04 23:54 ` Michal Nowak
2001-11-05  6:01   ` Al Christians
2001-11-05 11:46     ` Larry Kilgallen
2001-11-05 20:44       ` David Botton
2001-11-05 23:03         ` Larry Kilgallen
2001-11-06  2:09       ` Jeffrey Carter
2001-11-06  2:18     ` Jeffrey Carter
2001-11-05  6:02   ` Jeffrey Carter [this message]
2001-11-05  8:42 ` Preben Randhol
2001-11-06  2:17   ` Problems with " Jeffrey Carter
2001-11-06 18:02     ` Preben Randhol
2001-11-06 18:49     ` Pascal Obry
2001-11-06 19:12     ` Pascal Obry
2001-11-07  2:20       ` Jeffrey Carter
2001-11-07  9:04         ` Pascal Obry
2001-11-07 10:50           ` Preben Randhol
2001-11-07 14:01             ` Pascal Obry
2001-11-07 14:18               ` Preben Randhol
2001-11-08  4:20           ` Jeffrey Carter
2001-11-08 19:52             ` Pascal Obry
2001-11-08 20:42               ` Pascal Obry
2001-11-08 22:29                 ` Pascal Obry
2001-11-09  2:06                 ` Jeffrey Carter
2001-11-09 14:19                   ` Preben Randhol
2001-11-09 17:25                   ` Pascal Obry
2001-11-10  4:23                     ` Jeffrey Carter
2001-11-10  4:51                     ` Ted Dennison
  -- strict thread matches above, loose matches on Subject: below --
2001-11-04 22:23 Jeffrey Carter
2001-11-06 15:34 ` Tucker Taft
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox