A Conversation for Creating an Artificial Intelligence to play Minesweeper
- 1
- 2
In the beginning......
RangaKoo Started conversation Jun 22, 2000
(bear with me - I'm only a first year)
How does it get past the initial random clicking to start the board? Wouldn't it think that (according to the information) every square holds a mine as there is nothing to tell it otherwise?
(thinks through the algorithm again) Or is there where the 'guessing' comes into action as it knows that it's 'found' more mines than there really are?
In the beginning......
26199 Posted Jun 22, 2000
Neither
To sum up the way the program works: it guesses thirty times, making sure every guess fits in with the information, then averages the guesses together to get probabilities for there being a mine on each square.
Now, at the start of the game, it doesn't have *any* information... thus it produces thirty entirely random guesses at what the board might contain. Averaging these values out, it naturally concludes that some squares are less likely to have mines on than others... simply because of the random nature of the probability calculating procedures.
It then picks whichever square happened to look like it ought to have the least probability of containing a mine.
In effect: it guesses. But the guessing comes from the probability calculations, not from any higher-level process.
The cool thing about my algorithm, though, is that if you ask it 'where are all the mines?', it will always be able to give you an answer... if there are thirty mines on the board, it *always* knows where it thinks every single one of those thirty mines might be...
26199
In the beginning......
The Cow Posted Jun 23, 2000
Does your program make use of the Minesweeper 'cheat' in windows: if you blow up the first time, then move that bomb to another (random) square.
This'd change the 60% for the Beginner mode to 66%, possibly?
In the beginning......
26199 Posted Jun 24, 2000
You mean there's never a bomb on the square which you lost on last time?
In fact, my program plays against its own version of minesweeper for reasons of easy of interaction, so it doesn't have any little quirks to take advantage of.
There's a better cheat for the Windows 3.11 version of minesweeper, incidentally: I think you type something like SHIFT x z z y ENTER (this isn't likely to be accurate - you could look it up at http://www.eeggs.com ) and then the top-left pixel on your screen changes colour to show if you're hovering over a mine.
26199
In the beginning......
Martin Harper Posted Jun 24, 2000
No, the first square you click is never a bomb...
btw, presumably you might get better results if you randomly guessed at the center, rather than the edges... or maybe vica versa... some element of "look-ahead" would make the program work faster...
In the beginning......
26199 Posted Jun 24, 2000
It's true that the program doesn't take into account how much information it'll get from clicking on a particular square...
Hmmmm. Intuitively, I think the advantage gained in doing so would be incredibly small... but I could be wrong.
*shrug*
26199
In the beginning......
Martin Harper Posted Jun 24, 2000
I suspect that in classic Minesweeper the advantage is of the order of percentage points - but I'm sure I could find variations where it is critically important...
In the beginning......
Baldrick Posted Jun 24, 2000
Have any of you played Minesweeper on really old b/w macs?
In the beginning......
The Cow Posted Jun 25, 2000
The cheat is X Y Z Z Y - from ADVENT fame
Advent was the REALLY old text game (we're talking before 'COLOSSAL' adventure, which took up more than one reel of tape): the name is ADVENT because they only had 6 letter filenames.
In the beginning......
Martin Harper Posted Jun 25, 2000
oh good god - the "magic word"! fond memories...
You are in the Hall of the Mountain King. MyRedDice blocks your way.
In the beginning......
26199 Posted Jun 25, 2000
Grin, I played that one...
Prob'ly wasn't born before it came out, though.
26199
In the beginning......
RangaKoo Posted Jun 27, 2000
I beg to differ. The first square you click on CAN be a bomb - and it's REALLY irritating.
In the beginning......
Martin Harper Posted Jun 27, 2000
*shrug* not on my PC. It's probably different for the mac - I know it's different for some of the clones...
In the beginning......
26199 Posted Jun 27, 2000
I've tested Win 3.1 and Win 95's minesweepers, and it appears MyRedDice is right: the first square you click on is never a mine.
26199
In the beginning......
JininTonix (Confusion is best taken with a wedge of Lime!) Posted Aug 14, 2000
What the *&^*&^ ARE YOU ON ABOUT????!!!
IF YOU CAN HELP THIS ONE OUT THEN THE FLAG IS UPSIDE DOWN ALREADY....
do you know the meaning of autocracy?????
Where do you think these types of ?? come from anyways?
You might as well be playing "Step on the Mine and You DIE"
-Jin
In the beginning......
26199 Posted Aug 14, 2000
Er...
Dare I ask what you're talking about?
26199 (somewhat baffled)
Key: Complain about this post
- 1
- 2
In the beginning......
- 1: RangaKoo (Jun 22, 2000)
- 2: 26199 (Jun 22, 2000)
- 3: The Cow (Jun 23, 2000)
- 4: 26199 (Jun 24, 2000)
- 5: Martin Harper (Jun 24, 2000)
- 6: Martin Harper (Jun 24, 2000)
- 7: 26199 (Jun 24, 2000)
- 8: Martin Harper (Jun 24, 2000)
- 9: Baldrick (Jun 24, 2000)
- 10: The Cow (Jun 25, 2000)
- 11: Martin Harper (Jun 25, 2000)
- 12: Baldrick (Jun 25, 2000)
- 13: 26199 (Jun 25, 2000)
- 14: RangaKoo (Jun 27, 2000)
- 15: RangaKoo (Jun 27, 2000)
- 16: Martin Harper (Jun 27, 2000)
- 17: 26199 (Jun 27, 2000)
- 18: JininTonix (Confusion is best taken with a wedge of Lime!) (Aug 14, 2000)
- 19: 26199 (Aug 14, 2000)
- 20: Martin Harper (Aug 22, 2000)
More Conversations for Creating an Artificial Intelligence to play Minesweeper
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."