Noeda / adeonbot

NetHack bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adeonbot

NetHack playing bot. This bot can only play vanilla NetHack 3.6.0 and up.

Build instructions

Get stack binary in PATH. You can look inside http://docs.haskellstack.org/en/stable/README/ for some instructions.

Then build:

stack setup      # If you don't have appropriate GHC
stack build
stack exec adeonbot -- botconfig.yaml

That config file, botconfig.yaml should have the NetHack command to run. Here's an example file contents I use on my local setup:

name: Adeonbot
password: supersecret_password             # for public servers
latency: 1000000000                        # nanoseconds to wait until terminal gets idle
nethackCommand: ["./nh360/games/nethack"]
webDiagnosticsPort: 8080
webDiagnosticsHost: 127.0.0.1              # for web diagnostics thingmaling

Environment variables

TERM environment variable should be xterm. Connecting to servers like nethack.alt.org will use this environment variable and bot can get confused if it's not what it expects.

export TERM=xterm

.nethackrc

OPTIONS=color,!autodig,!autopickup
OPTIONS=boulder:0
OPTIONS=!sparkle
OPTIONS=hilite_pet
OPTIONS=!hilite_pile
OPTIONS=lit_corridor
OPTIONS=!rest_on_space
OPTIONS=time
OPTIONS=!showscore
OPTIONS=!showexp
OPTIONS=showrace
OPTIONS=!pet
OPTIONS=!timed_delay
OPTIONS=number_pad:0

# If supported, this will let the bot know when it's okay to write more
# commands to NetHack.

# NetHack 3.6.0 does not support vt_tiledata
# OPTIONS=vt_tiledata

SYMBOLS=S_vcdoor:7
SYMBOLS=S_hcdoor:7
SYMBOLS=S_grave:7
SYMBOLS=S_rock:8
SYMBOLS=S_ghost:X

About

NetHack bot

License:MIT License


Languages

Language:Haskell 92.9%Language:C 5.9%Language:JavaScript 1.2%Language:Makefile 0.0%