summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan DeMasi <me@jrdemasi.com>2020-06-19 17:07:57 -0600
committerJonathan DeMasi <me@jrdemasi.com>2020-06-19 17:07:57 -0600
commitbe1c844d6455fb898a4b4d6ce06b1ea585640576 (patch)
tree4a660449624348dbc0272adc6d3414063b4782e3
parent0401cca6e2b3d82e9a0efbe43a8d6ddeaed3953f (diff)
downloadprojects-be1c844d6455fb898a4b4d6ce06b1ea585640576.tar
projects-be1c844d6455fb898a4b4d6ce06b1ea585640576.tar.gz
projects-be1c844d6455fb898a4b4d6ce06b1ea585640576.tar.bz2
projects-be1c844d6455fb898a4b4d6ce06b1ea585640576.tar.lz
projects-be1c844d6455fb898a4b4d6ce06b1ea585640576.tar.xz
projects-be1c844d6455fb898a4b4d6ce06b1ea585640576.tar.zst
projects-be1c844d6455fb898a4b4d6ce06b1ea585640576.zip
oops
-rw-r--r--python_beer_bracket/.gitignore138
-rwxr-xr-xpython_beer_bracket/main.py54
2 files changed, 0 insertions, 192 deletions
diff --git a/python_beer_bracket/.gitignore b/python_beer_bracket/.gitignore
deleted file mode 100644
index a81c8ee..0000000
--- a/python_beer_bracket/.gitignore
+++ /dev/null
@@ -1,138 +0,0 @@
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-*$py.class
-
-# C extensions
-*.so
-
-# Distribution / packaging
-.Python
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-wheels/
-share/python-wheels/
-*.egg-info/
-.installed.cfg
-*.egg
-MANIFEST
-
-# PyInstaller
-# Usually these files are written by a python script from a template
-# before PyInstaller builds the exe, so as to inject date/other infos into it.
-*.manifest
-*.spec
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.nox/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*.cover
-*.py,cover
-.hypothesis/
-.pytest_cache/
-cover/
-
-# Translations
-*.mo
-*.pot
-
-# Django stuff:
-*.log
-local_settings.py
-db.sqlite3
-db.sqlite3-journal
-
-# Flask stuff:
-instance/
-.webassets-cache
-
-# Scrapy stuff:
-.scrapy
-
-# Sphinx documentation
-docs/_build/
-
-# PyBuilder
-.pybuilder/
-target/
-
-# Jupyter Notebook
-.ipynb_checkpoints
-
-# IPython
-profile_default/
-ipython_config.py
-
-# pyenv
-# For a library or package, you might want to ignore these files since the code is
-# intended to run in multiple environments; otherwise, check them in:
-# .python-version
-
-# pipenv
-# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
-# However, in case of collaboration, if having platform-specific dependencies or dependencies
-# having no cross-platform support, pipenv may install dependencies that don't work, or not
-# install all needed dependencies.
-#Pipfile.lock
-
-# PEP 582; used by e.g. github.com/David-OConnor/pyflow
-__pypackages__/
-
-# Celery stuff
-celerybeat-schedule
-celerybeat.pid
-
-# SageMath parsed files
-*.sage.py
-
-# Environments
-.env
-.venv
-env/
-venv/
-ENV/
-env.bak/
-venv.bak/
-
-# Spyder project settings
-.spyderproject
-.spyproject
-
-# Rope project settings
-.ropeproject
-
-# mkdocs documentation
-/site
-
-# mypy
-.mypy_cache/
-.dmypy.json
-dmypy.json
-
-# Pyre type checker
-.pyre/
-
-# pytype static type analyzer
-.pytype/
-
-# Cython debug symbols
-cython_debug/
diff --git a/python_beer_bracket/main.py b/python_beer_bracket/main.py
deleted file mode 100755
index 089ea8c..0000000
--- a/python_beer_bracket/main.py
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/usr/bin/env python3
-
-import random
-
-beers = {
- 0: "Labatt Blue Light",
- 1: "Miller Lite",
- 2: "Coors Light",
- 3: "Keystone Light",
- 4: "Bud Light Platinum",
- 5: "Bud Light",
- 6: "Michelob Ultra",
- 7: "Saint Archer Gold",
- 8: "Busch Light",
- 9: "Heineken Light",
- 10: "Miller High Life Light",
- 11: "Amstel Light"
-}
-
-pairs = []
-seen = []
-
-
-def rand_int():
- return random.randint(0, 11)
-
-
-def print_beers():
- counter = 1
- for pair in pairs:
- print("Matchup {0} is {1} and {2}".format(
- counter, beers[pair[0]], beers[pair[1]]))
- counter = counter + 1
- return
-
-
-def main():
- while len(pairs) < 6:
- int1 = rand_int()
- while int1 in seen:
- int1 = rand_int()
- int2 = rand_int()
- while int2 in seen or int2 == int1:
- int2 = rand_int()
- seen.append(int1)
- seen.append(int2)
- pair = (int1, int2)
- pairs.append(pair)
- print_beers()
- return
-
-
-if __name__ == '__main__':
- main()