nethackR-package {nethackR}R Documentation

Play nethack from the R terminal

Description

Play nethack from the R terminal.

Details

Package: nethackR Type: Package Title: Play nethack from the R terminal. Version: 1.0 Date: 2011-10-31 Author: Amy Chan (R wrapper); Nethack Gods (nethack) Maintainer: Amy Chan <mathematical.coffee@gmail.com> Description: nethack() to play text-based nethack in the R terminal. License: Nethack General Public Licence LazyLoad: yes

nethack() starts a nethack session in the R terminal.

Nethack options may be passed into nethack(); see nethackOptions for a list of them.

NOTE: on the Rgui interface (the graphics interface for R in Windows), Nethack *cannot* run in the R terminal. Instead, a command prompt window will be launched, in which one can play Nethack.

Installation

**THIS PACKAGE COMES WITH EXECUTABLE VERSIONS OF nethack ALREADY!** This is done for ease of installation - the user does not need to install nethack and add it to their PATH.

However, for security, you may wish to download Nethack from http://www.nethack.org/v343/downloads.html yourself. In that case, replace the files in path/to/your/R/library/nethackR/bin/YOUR_OPERATING_SYSTEM with the ones you downloaded, where YOUR_OPERATING_SYSTEM is 'unix' for Linux & Mac, and 'windows' for Windows.

(Note - I have not tested this under Mac as I do not have access to one).

Author(s)

Amy Chan mathematical.coffee@gmail.com (R wrapper); Nethack Gods (nethack)

References

Nethack is an awesome game not written by me. I take no credit for it. This is merely a wrapper around the nethack program. http://www.nethack.org

See Also

nethack, nethackOptions

Examples

## Not run: 
 # start a game with a valkyrie named 'slartibartfast',
 #  boulders display with '0', autopickup any money,
 #  and show the turn counter.
 nethack(name='slartibartfast',role='valkyrie',boulder=0,autopickup=TRUE,pickuptypes='$',time=TRUE)

## End(Not run)

[Package nethackR version 1.0.1 Index]