HelloChatterbox / pyFrotz

minimal python wrapper around frotz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyFrotz

minimal python wrapper around Frotz

get some classic games to try it out here

install

install the python package from pip

pip install pyfrotz

usage

from pyfrotz import Frotz

# load your game file
data = '/home/user/PycharmProjects/infocom-games-skill/planetfall.z5'
game = Frotz(data)


# use it inside code
game_intro = game.get_intro()
room, description = game.do_command("look")
game.save()  # optionally pass filename, default='save.qzl'
game.restore()  # optionally pass filename, default='save.qzl'


# or play in the cli
game = Frotz(data)
game.play_loop()

About

minimal python wrapper around frotz

License:Apache License 2.0


Languages

Language:Python 100.0%