From ae7bb3deadbd4650d79ae56904e081bb4acf3378 Mon Sep 17 00:00:00 2001 From: Bertram Felgenhauer Date: Thu, 15 May 2008 03:30:55 +0200 Subject: [PATCH] add README and statistics. --- README | 14 ++++++++++++++ mine.cabal | 3 +++ statistics | 29 +++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 README create mode 100644 statistics diff --git a/README b/README new file mode 100644 index 0000000..e788b05 --- /dev/null +++ b/README @@ -0,0 +1,14 @@ +This is a Haskell implementation of Programmer's Minesweeper by +John D Ramsdell. See + http://www.ccs.neu.edu/home/ramsdell/pgms +for the original. + +To add a new strategy, create a Haskell module that implements it, and +add it to the list in Strategies.hs. Then add the module itself it the +mine.cabal file and you're set. Two example strategies are provided, +SimpleStrat.hs and Strat1.hs. + +Note: The mine executable will launch a GUI by default. Run mine --help +to see its other capabilities. + +Have fun! diff --git a/mine.cabal b/mine.cabal index d6a2f80..8fcd83b 100644 --- a/mine.cabal +++ b/mine.cabal @@ -2,6 +2,8 @@ Name: mine Version: 0.0 Stability: experimental Copyright: (c) 2008 Bertram Felgenhauer +Maintainer: Bertram Felgenhauer +Category: Game License: BSD3 License-File: LICENSE Synopsis: Programmer's Mine Sweeper in Haskell @@ -15,6 +17,7 @@ Build-Type: Simple Data-Dir: data Data-Files: icons.png +Extra-Source-Files: README, statistics Library HS-Source-Dirs: src diff --git a/statistics b/statistics new file mode 100644 index 0000000..20f33b7 --- /dev/null +++ b/statistics @@ -0,0 +1,29 @@ +================================= [Beginner] ================================= + +Summary for Strategy1 + won: 55637/100000 (55.637%) + lost: 44363/100000 (44.363%) + +Summary for SimpleStrat + won: 59822/100000 (59.822%) + lost: 40178/100000 (40.178%) + +=============================== [Intermediate] =============================== + +Summary for Strategy1 + won: 24293/100000 (24.293%) + lost: 75707/100000 (75.707%) + +Summary for SimpleStrat + won: 30167/100000 (30.167%) + lost: 69833/100000 (69.833%) + +================================== [Expert] ================================== + +Summary for Strategy1 + won: 307/100000 (0.307%) + lost: 99693/100000 (99.693%) + +Summary for SimpleStrat + won: 690/100000 (0.69%) + lost: 99310/100000 (99.31%) -- 2.11.4.GIT