Heads and Tales

Heads and Tales is a sort of adventure RPG with monster building. If you try the Windows binary distribution sorry about the stdlib not being archived. I couldn't make it work any other way. The file you want to run is called 'Heads and Tales.exe'.

Please provide feedback here if you have comments/bugs.

Chard.

(log in to comment)

Comments

I can't run it from source :(

argparse doesn't exist in either python 2.6 or 3.1.
I haven't tested it (I'm on 2.7) but I believe that you can just drop argparse.py into the source directory and it should work.
We figured 2.7/3.2 being 22 months old was enough. :(
Thanks mauve, that fixed it :)

Yeah, I'm living in the past... my 2 year old version of ubuntu doesn't have 2.7 in the repositories. I've been meaning to upgrade but thought I'd leave it till after pyweek.
I am getting this on Win7 32 bit:

Traceback (most recent call last):
  File "run_game.py", line 2, in <module>
  File "gamelib\__main__.pyo", line 225, in main
    
  File "gamelib\__main__.pyo", line 66, in __init__
    
  File "pyglet\window\win32\__init__.pyo", line 131, in __init__
    
  File "pyglet\window\__init__.pyo", line 559, in __init__
    
  File "pyglet\window\win32\__init__.pyo", line 261, in _create
    
  File "pyglet\gl\win32.pyo", line 263, in attach
    
  File "pyglet\gl\win32.pyo", line 208, in attach
    
pyglet.gl.ContextException: Unable to share contexts
My understanding is that that's a Pyglet problem specific to certain video cards. It's possible that updating your video drivers could fix the problem, if they're not up to date at the moment. Alternatively, are you running a dual-monitor setup or anything similarly unusual?

Disabling the Pyglet shadow window could also fix the problem, except that Heads and Tales will not run with the shadow window disabled in its current state. It might be possible to rewrite it to do so, but that's probably outside the scope of Pyweek. Sorry!
I'm just running on a laptop which (sadly) Dell has stopped updating drivers for (grrrr).

I will maybe try on another PC sometime :-)
daftspaniel: Don't miss this game! You will not regret the time you spent getting it running.

To incite some competition — what are the strongest monsters you have built? I have built one with 69/63/60/37 stats after beating the game.