Skip to content

Python interface for running text-based games using Dumb Frotz.

License

Notifications You must be signed in to change notification settings

thilina27/Frotz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frotz

Python interface for running text-based games using Dumb Frotz.

This is made based with PyFrotz (github) (not required to install this package). Only tested on Windows 10.

Requirements

Only requirement is to have Dumb Frotz (windows)

Usage

Use command line to play the game.

from Frotz import Frotz

# load your game file
data = 'games\zork1.z5'
# Dumb Frotz location
dfrotz =  "C:\dfrotz.exe"
game = Frotz(data, dfrotz)

# use it inside code
game_intro = game.get_intro()
print(game_intro)

# send command to game
output = game.do_command("open")
print(output)

To run games interactively in the terminal.

from Frotz import Frotz
data = 'games\zork1.z5'
game = Frotz(data, "C:\dfrotz.exe")
game.play_loop()

Games

few dames are provided in this repo,more games are available here.

Miscellaneous

If you are the copyright holder for any of these game files and object to their distribution in this repository, e-mail the owner at madhusanka.thilina(a-t)gmail.com.

About

Python interface for running text-based games using Dumb Frotz.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published