Skip to main content

An example of a package developed with pyenv, built with build using setuptools, uploaded to PyPI using twine, and distributed via pip.

Project description

example workflow

Installing

Please use pip to install. To install run pip install sstgame==0.2.3

Importing

Please add import sstgame at the top of your file to import the module If you would like to import individual games please follow the instructions below

Import Madlibs game

Please add from sstgame import madlib to import the madlib module

Import Would You Rather game

Please add from sstgame import wyr to import the would you rather module

Import Random Number game

Please add from sstgame import numberGuess to import the random number game module

Import Anagram Game

Please add from sstgame import anagram to import the anagram game module

Import Hangman Game

Please add from sstgame import hangman to import the anagram game module

Import Random Game Module

Please add from sstgame import randomGame to import the random game module

madlibs Function

To use the madlibs function you may pass in your own madlib text file if you would like to use your own custom madlibs. Please ensure that each madlib is on a seperate line in the text file. If you would like to use the default text file please do not enter anything.

To access the madlibs function please do madlib.madlib(file.txt)

Example

numberGuess Function

To use the numberGuess function you may pass in a minimum value which will be the lower bound of the number you have to guess and a max value which will be the upper bound of what you will have to guess. If you do not want to pass in any arguments the default will be from 0-100 inclusive.

To access the numberGuess function please do numberGuess.numberGuess(minValue, maxValue)

Example

wouldYouRather Function

To use the wouldYouRather function you may pass in a txt file containing your own custom would you rathers. Please make sure that each entry is on a seperate line. If you do not enter an argument, the function will use the default txt file.

To access the wouldYouRather function please do wyr.wouldYouRather(file.txt)

Example

anagram Function

To use the anagram function please pass in a txt file. If you do not pass in a .txt file the default txt file will be used instead. To access the anagram game function please do anagram.anagram(file.txt)

Example

randomGame Function

To use the randomGame function you may pass in arguments for minValue, maxValue, madLibFile, wyrFile, numberGuessAssert, madLibAssert, wyrAssert The minValue and maxValue will be the inputs for the numberGuess game, the madLibFile will be the txt file for the madlib function, the wyrFile will be the txt for the wouldYouRather function. If you choose to not provide an arguments the default arguments will be used, please refer to each functions section in the README.md for more information. To include a game to be chosen at random please pass in True for the game you would like to include. Please pass in False to exclude it. By default, all games are included and set to True.

To access the randomGame function please do randomGame.randomGame(minValue, maxValue, madLibFile, wyrFile, numberGuessAssert, madLibAssert, wyrAssert)

Example

How To Contribute

In order to contribute please clone https://github.com/software-students-fall2023/3-python-package-exercise-sst3.git and create a branch with your contributions. Please install pipenv and use pipenv shell to set up your virtual enviornment. For testing please upload the package with your changes to TestPyPi and install them into your virtual enviornment to run your tests. Please make sure to write test codes using pytest for any created functions.

Contributors

Richard Li Ryan Zhang Ivan Jing Jeffrey Saeteros

Link to Package

https://pypi.org/project/sstgame/0.2.3/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sstgame-0.2.3.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sstgame-0.2.3-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file sstgame-0.2.3.tar.gz.

File metadata

  • Download URL: sstgame-0.2.3.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for sstgame-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cf98824114cdbc6b91f9e54e971492fcd7aee7b3e5365312dedef13df91e4e58
MD5 ef8475aef2771ae40a44ad4cd44af2dd
BLAKE2b-256 a3796673881f58222b69a6d18f8c3964c81e1111f3a528a9b2ea406e497cbac3

See more details on using hashes here.

File details

Details for the file sstgame-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: sstgame-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for sstgame-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0828fe44a8cee5be6ba38caafc3e4d64570427cabd5b22967cc5cd7a5dd6f5c5
MD5 6be502ca872cb0184b8cccf50e404c50
BLAKE2b-256 c034287e544d7cfdac92a3574769ebd253ad7ba6794ecac2e7d333bb6e0d7e4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page