Perl: the Markov chain saw | |
PerlMonks |
Re: YAMineSweeperby Juerd (Abbot) |
on Jan 16, 2002 at 14:53 UTC ( [id://139172]=note: print w/replies, xml ) | Need Help?? |
Hi, I like the idea of a simple minesweeper, and tried to make one myself :) Mine doesn't check user input and doesn't auto-sweep, but it fits in 5 lines :) It tests if the user won, and if so, quits the game.
Open (and unflag if flagged) using "x y" ("0 0"), flag with "x y 1" ("0 0 1"). Update (200201161311+0100) Bugs fixed, better checking scan Update (200201191544+0100) A previous bugfix introduced 3 new ones, making the game a bit unpredictable ;) Fixed now. Update (200201200039+0100) I need more sleep. Okay, I believe it's really playable now (I actually tried it this time (kick me not)) As you can see, I'm not very good at this game :)
In Section
Cool Uses for Perl
|
|