moontommy / pytextgames

A Python class containing text games to run in terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List of games:

Game Variables Return type
Guess the number playername:string, lowest:int, highest:int void
Hangman playername:string void

Example for playing Hangman:

# Declare playername
playername = "John Doe"
# Import Hangman Class
from pytextgames import Hangman
# Declare game for our friend John
g = Hangman(playername)
# Let's go play
g.play()

About

A Python class containing text games to run in terminal

License:GNU General Public License v3.0


Languages

Language:Python 100.0%