Skip to main content

A virtual ant farm of sorts

Project description

Hunter

Summary

This is a simple project to explore the idea of simulating a hunter trying to survive in his/her environment, and the development of all the systems necessary to accomplish that.

Currently, the gameplay is represented by ASCII characters rendered in a small console window. There is an H, the Hunter, that moves around and attempts to survive. The Hunter's vital stats are displayed on the left and the Hunter's action log is displayed at the bottom. When hungry, the Hunter will search for berries to eat or rabbits to hunt (the R's), and when tired, the Hunter will return to camp (C) to sleep.

There are two player controls right now:

  • F - toggle fog of war
  • H - toggle user interface

And that's it! This is not a game for playing so much as observing (like an ant farm). From this humble start, I hope to build a rich world that is genuinely enjoyable to observe. And eventually I do plan to add more ways for the player to interact with the world. But for now, you'll have to use your imagination. :)

If you really want to tinker, you can modify the stats in this file. For example, in the "rabbit" section try changing "spawn" to 0.2 and see what happens. User beware: there are tons of ways to break the game messing with this file!


drawing

For more info, see blog entries in the blog directory. There, you can read about my progress, process, goals for the future, and general ruminations. This post, where I organized my thoughts on how to simulate creatures of varying complexity, may be a particularly interesting starting point.

Installation

Using Python Eggs

Install pyenv. For MacOSX, run the following:

> brew install pyenv

Note: some other setup steps may be necessary.

Using pyenv, install Python 3.8 or higher:

> pyenv install 3.8.0

Install the Hunter egg:

> pip install hunter-tdb==0.8.0

Run the game!

> run hunter

Running from source

Install python 3.8 or higher:

However you like. :)

Clone source:

git clone https://github.com/trevordbabcock/hunter.git

Install requirements:

cd hunter
pip install -r requirements.txt

Run the game:

./hunter_pkg/main.py

Have fun! Any feedback is welcome. :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hunter_tdb-1.3-py3.8.egg (124.6 kB view details)

Uploaded Egg

File details

Details for the file hunter_tdb-1.3-py3.8.egg.

File metadata

  • Download URL: hunter_tdb-1.3-py3.8.egg
  • Upload date:
  • Size: 124.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.4

File hashes

Hashes for hunter_tdb-1.3-py3.8.egg
Algorithm Hash digest
SHA256 68b59ad63c1584778ee33c9fb82915ce97651daa5f55fdaea2fbd66117713832
MD5 eeaee24a3622457cbad020ed82a896c7
BLAKE2b-256 d18276b10d618c605f33465d6e11ba060860493e6ceab83832327495d4665233

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page