alanhdu / hunt

Play Hunt (the terminal game) online at http://quiet-forest-3036.herokuapp.com/
1 stars 0 forks source link

Hunt

Trying to implement the hunt terminal game online.

Plan to use Python backend and coffee/javascript frontend. Flask and Socket-IO to connect them (maybe we should use Node.js?)

Usage

On a system with only python2.7 just run:

python server.py

Otherwise you need to deliberately use python2.7, so run:

python2 server.py

Prereqs:

Python 2.7


Install the python dependencies with pip, or your preferred method.

Coffeescript


Javascript


Description - from terminal man page

The object of the game Hunt is to kill off the other players. There are no rooms, no treasures, and no monsters. Instead, you wander around a maze, find grenades, trip mines, and shoot down walls and players. The more players you kill before you die, the better your score is.

Instructions - from terminal man page (for real version, see INSTRUCTIONS.md)

Hunt uses the same keys to move as vi(1) does, i.e., h, j, k, and l for left, down, up, right respectively. To change which direction you're facing in the maze, use the upper case version of the movement key (i.e., HJKL). You can only fire or throw things in the direction you're facing. Other commands are:

Your score is the decayed average of the ratio of number of kills to num‐ ber of times you entered the game and is only kept for the duration of a single session of Hunt.

Hunt normally drives up the load average to be approximately (# of players + 0.5) greater than it would be without a Hunt game executing.