Questions tagged [nethack]

Single-player roguelike video game originally released in 1987 with ASCII graphics. It is a descendant of an earlier game called Hack (1985), which is a descendant of Rogue (1980).

13 questions
27
votes
5 answers

Building a NetHack bot: is Bayesian Analysis a good strategy?

A friend of mine is beginning to build a NetHack bot (a bot that plays the Roguelike game: NetHack). There is a very good working bot for the similar game Angband, but it works partially because of the ease in going back to the town and always…
danieltalsky
  • 7,752
  • 5
  • 39
  • 60
11
votes
7 answers

How to port this NetHack function to Python?

I am trying to write a Python function which returns the same moon phase value as in the game NetHack. This is found in hacklib.c. I have tried to simply copy the corresponding function from the NetHack code but I don't believe I am getting the…
nakedfanatic
  • 3,108
  • 2
  • 28
  • 33
8
votes
2 answers

NetHack corridor implementation

I was just playing around with NetHack as I am in the process of coding up a simplified version for myself. My question is, how are corridors implemented? I have been trying to think of an approach for a few days now and cannot come up with anything…
zburns12
  • 1,783
  • 3
  • 15
  • 16
6
votes
1 answer

How to connect to nethack from Node.js?

I'm just starting an AI bot for the game nethack, and I can't bypass the 'human-check' that's in source. The section of code I'm talking about is nethack/sys/unix/unixunix.c: #ifdef TTY_GRAPHICS /* idea from rpick%ucqais@uccba.uc.edu *…
chrisdotcode
  • 1,569
  • 2
  • 17
  • 22
5
votes
2 answers

What does "NEARDATA" mean in the NetHack source code?

The NetHack source code (written in C) has some things I don't understand. The following code can be found in the Nethack 3.4.3 source code: STATIC_VAR NEARDATA struct engr *head_engr; (on line 9 of engrave.c at…
4
votes
1 answer

How do I compile NetHack in Windows 7?

I like NetHack and I want to dink around with the source a bit for fun. Before I do that I would like to be able to get it to compile out of the box but I'm having no small amount of difficulty getting that to happen. I downloaded the source code…
Will
  • 3,413
  • 7
  • 50
  • 107
0
votes
0 answers

How do I properly install Nethack Learning Environment?

Trying to install Nethack Learning Environment (nle) according to their github: https://github.com/facebookresearch/nle I am running windows 10 x64. I successfully installed all required packages (conda, cmake, cuda, gym, stable-baselines3, even…
lordg52
  • 1
  • 1
0
votes
0 answers

Microsoft.DesktopBridge.props in a C project

I'm trying to build Nethack on Windows, and I get this error message: "C:\NetHack-NetHack-3.6.6_Released\win\win32\vs2017\NetHack.sln" (Clean;Build target) (1) -> "C:\NetHack-NetHack-3.6.6_Released\win\win32\vs2017\NetHackPackage.wapproj" (Clean…
rwallace
  • 31,405
  • 40
  • 123
  • 242
0
votes
1 answer

Displaying 'special' characters from other encodings in UILabel or similar

I'd like to be able to simulate a terminal on my iPhone to play games like Nethack using the primitive graphics I enjoyed on a real DEC terminal. Nethack allows selection of DECgraphics for vt-compatible terminals or IBMGraphics for codepage 437…
Adam Eberbach
  • 12,309
  • 6
  • 62
  • 114
0
votes
0 answers

Nethack build error in MSYS2 mingw32 shell win10 /usr/bin/sh: -c: line 1: syntax error: unexpected end of file

Trying to compile the NETHACK cloned version 3.6.0 from github in msys2 mingw32 shell under WIN10. I completed the steps cd sys/winnt call nhsetup.bat cd ../../src then mingw32-make -f Makefile.gcc fails /usr/bin/sh: -c: line 1:…
M. P.
  • 181
  • 2
  • 5
0
votes
0 answers

Compile NetHack source code - error inside conditional compilation that should be skipped

I'm working on compiling NetHack in Visual Studio 2015 on Windows 7. I'm getting the following error (all preceded with c:\program files (x86)\windows kits\10\include\10.0.10586.0\um\memoryapi.h: 3>(815): error C2143: syntax error: missing ')'…
ErikE
  • 48,881
  • 23
  • 151
  • 196
0
votes
1 answer

Cannot compile previously-modified Nethack using MinGW - Caching issue?

So recently, I was messing around with the source for Nethack, a rather old game. I used this guide to help me get started: Compiling - Wikihack. To test, I first compiled the original source code. A few tweaks later, I was able to get it running…
user3714134
0
votes
1 answer

How to make a Python (2.7.x) program output nethack-like ASCII graphics?

I'm looking to make a console game which would constantly need to output frames of ASCII graphics, but I'm wondering how to make the function much smoother. While I don't believe the nethack-console game isn't written in Python, I'm looking at how…
Air Conditioner
  • 123
  • 1
  • 2
  • 6