Git Product home page Git Product logo

shellcraft's Introduction

Cover Image

ShellCraft is a game about mining, crafting, and puzzling, loosely based on Ted Chiang's short story Seventy-Two Letters.

# Install ShellCraft with pipx or pip:
$ pipx install shellcraft

# Run ShellCraft:
$ shellcraft

Read the full documentation here.

PYPI Travis PyUp Black

shellcraft's People

Contributors

maebert avatar pyup-bot avatar

Stargazers

 avatar Tonghe Wang avatar Josh Peters avatar Yurii Mazurevich avatar Henri Bourcereau avatar Taurus Olson avatar GAURAV avatar Connor McLaughlin avatar Tedley M avatar Justin Bass avatar Mike McConnell avatar Nicholas Swanson avatar vagelim avatar Niraj avatar

Watchers

James Cloos avatar  avatar  avatar

shellcraft's Issues

Commands in multiple shells prompts stack trace

  • ShellCraft version: 0.9.2
  • Python version: 2.7.9
  • Operating System: Windows 10 running cygwin

Description

Opened new shell window and tried performing "mine clay" in both shells. Stack trace displays (instead of an elegant error message).

What I Did

$ shellcraft mine clay
Traceback (most recent call last):
  File "/usr/bin/shellcraft", line 9, in <module>
    load_entry_point('shellcraft==0.9.2', 'console_scripts', 'shellcraft')()
  File "/usr/lib/python2.7/site-packages/shellcraft-0.9.2-py2.7.egg/shellcraft/cli.py", line 75, in main
    cli()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/shellcraft-0.9.2-py2.7.egg/shellcraft/cli.py", line 31, in inner
    callback(**kwargs)
  File "/usr/lib/python2.7/site-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/shellcraft-0.9.2-py2.7.egg/shellcraft/cli.py", line 106, in mine
    duration, quantity = game.mine(resource)
TypeError: 'NoneType' object is not iterable

Great idea. Unfortunately the game is incomplete.

  • ShellCraft version: 0.9.4
  • Python version: 3.5.1
  • Operating System: Debian GNU/Linux 9.4 (stretch) x86_64

Description

Hello maebert,
I really like the concept this game and the concepts. However it seems the most interesting part is missing. For example, I managed to research the dynamite but can't craft it. I saw the Names and the Epithets were implemented but there's no way to interact with them.

Do you plan to continue this game? I think it has a lot of potential.

Error on shellcraft resources

  • ShellCraft version: 0.9.2
  • Python version: 2.7.9
  • Operating System: Windows 10 running cygwin

Description

Followed tutorial exactly until researching small_cart, then ran shellcraft resources and got a stack trace.

What I Did

$ shellcraft resources
Traceback (most recent call last):
  File "/usr/bin/shellcraft", line 9, in <module>
    load_entry_point('shellcraft==0.9.2', 'console_scripts', 'shellcraft')()
  File "/usr/lib/python2.7/site-packages/shellcraft-0.9.2-py2.7.egg/shellcraft/cli.py", line 75, in main
    cli()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/shellcraft-0.9.2-py2.7.egg/shellcraft/cli.py", line 157, in resources
    echo("*{}: {}*", resource, game.resources.get(resource))
  File "/usr/lib/python2.7/site-packages/shellcraft-0.9.2-py2.7.egg/shellcraft/_cli_impl.py", line 178, in echo
    s = s.format(*vals)
IndexError: tuple index out of range

Errors on Windows 10

  • ShellCraft version: 0.9.2
  • Python version: 2.7.9
  • Operating System: Windows 10, running cygwin

Description

Version 0.6.1 installed and played fine (the old version from a pip install), but 0.92 (latest from git) does not seem to load.

Also unrelated - there are a few typos in the tutorial (doens't, availabel).

What I Did

$ shellcraft
Traceback (most recent call last):
  File "/usr/bin/shellcraft", line 9, in <module>
    load_entry_point('shellcraft==0.9.2', 'console_scripts', 'shellcraft')()
  File "/usr/lib/python2.7/site-packages/shellcraft-0.9.2-py2.7.egg/shellcraft/cli.py", line 61, in main
    game = get_game(game_path)
  File "/usr/lib/python2.7/site-packages/shellcraft-0.9.2-py2.7.egg/shellcraft/cli.py", line 23, in get_game
    GAME = Game.load(path) if os.path.exists(path) else Game.create(path)
  File "/usr/lib/python2.7/site-packages/shellcraft-0.9.2-py2.7.egg/shellcraft/shellcraft.py", line 184, in load
    state = json_format.Parse(f.read(), GameState())
  File "/usr/lib/python2.7/site-packages/protobuf-3.3.0-py2.7.egg/google/protobuf/json_format.py", line 369, in Parse
    return ParseDict(js, message, ignore_unknown_fields)
  File "/usr/lib/python2.7/site-packages/protobuf-3.3.0-py2.7.egg/google/protobuf/json_format.py", line 384, in ParseDict
    parser.ConvertMessage(js_dict, message)
  File "/usr/lib/python2.7/site-packages/protobuf-3.3.0-py2.7.egg/google/protobuf/json_format.py", line 415, in ConvertMessage
    self._ConvertFieldValuePair(value, message)
  File "/usr/lib/python2.7/site-packages/protobuf-3.3.0-py2.7.egg/google/protobuf/json_format.py", line 501, in _ConvertFieldValuePair
    raise ParseError('Failed to parse {0} field: {1}'.format(name, e))
google.protobuf.json_format.ParseError: Failed to parse action field: Failed to parse completion field: time data '2017-07' does not match format '%Y-%m-%dT%H:%M:%S'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.