Skip to content

Commit

Permalink
by default give bots lots of HP and deterministic dungeons
Browse files Browse the repository at this point in the history
Compilation for debugging with the bot:
  cabal install --ghc-options="-dcore-lint -debug" -fstd
Execution:
  Bot 1 200000 | Allure > /tmp/log
No segfaults obtained this way so far.
  • Loading branch information
Mikolaj committed Aug 9, 2011
1 parent c5c4a25 commit a769ee7
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Allure.cabal
Expand Up @@ -5,7 +5,7 @@ license: BSD3
license-file: LICENSE
tested-with: GHC==7.0.3
data-files: LICENSE, CREDITS, PLAYING.markdown,
README.markdown, src/config.default, scores
README.markdown, src/config.default, src/config.bot, scores
author: Andres Loeh, Mikolaj Konarski and others
maintainer: Mikolaj Konarski <mikolaj.konarski@funktory.com>
description: This is an alpha prerelease of Allure of the Stars,
Expand Down
8 changes: 8 additions & 0 deletions src/ConfigDefault.hs
Expand Up @@ -14,6 +14,14 @@ import Multiline
configDefault :: String
configDefault = [$multiline|

#ifdef STD

#include "config.bot"

#else

#include "config.default"

#endif

|]
57 changes: 57 additions & 0 deletions src/config.bot
@@ -0,0 +1,57 @@
; This is the default config file, included in the binary itself.
; The game looks for the user config file in ~/.Allure/config.
; We restricts the config file format by insisting that
; options are case-sensitive and permitting only ';' comments.

; If you contribute to the game, please create directory ~/.Allure/
; as described in README.markdown. In this way, you will not accidentally
; commit your private high scores (nor your save files) to the game
; git repository.

[dungeon]
; the hardcoded default for levels with no specified layout:
LambdaCave_1: rogueRoom
; access to stairs may be blocked, so only suitable for the last level:
LambdaCave_10: noiseRoom
LambdaCave_3: bigRoom
depth: 10

[engine]
fovMode: digital
;fovMode: permissive
;fovMode: shadow
fovRadius: 40
randomSeed: 6

; paths to various game files; relative to ~/.Allure/
; (or analogous prefixes for other OSes, see getAppUserDataDirectory)
[files]
highScores: scores
saveGame: save

[heroes]
HeroName_0: you
HeroName_1: Haskell Alvin
HeroName_2: Alonzo Barkley
HeroName_3: Ernst Abraham
HeroName_4: Samuel Saunders
HeroName_5: Roger Robin
baseHP: 1000000
extraHeroes: 0
firstDeathEnds: False

[macros]
; TODO: the following does not work yet:
; ; throw a dart at the closest monster
; t: asterisk Return t Return
; TODO: in gtk it could be implemented via unGetChan,
; unless we prefer an explicit command queue, with flushing, etc.
;
; Angband compatibility
v: t

[monsters]
smellTimeout: 1000

[ui]
historyMax: 500
2 changes: 1 addition & 1 deletion src/config.default
Expand Up @@ -21,7 +21,7 @@ fovMode: digital
;fovMode: permissive
;fovMode: shadow
fovRadius: 40
;randomSeed: 0
;randomSeed: 6

; paths to various game files; relative to ~/.Allure/
; (or analogous prefixes for other OSes, see getAppUserDataDirectory)
Expand Down

0 comments on commit a769ee7

Please sign in to comment.