Skip to content

A Python class containing text games to run in terminal

License

Notifications You must be signed in to change notification settings

OcelotWalrus/pytextgames

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

List of games:

Game Variables Return type
Guess the number playername:string, lowest:int, highest:int void
Hangman playername:string void
Blackjack playername:string void
Rock, Paper, Scissors 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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%