Skip to content

Latest commit

 

History

History
78 lines (65 loc) · 1.99 KB

README.md

File metadata and controls

78 lines (65 loc) · 1.99 KB

FizzBuzz

My python implementation of FizzBuzz, a childhood game turned interview question

Inspiration

Table of contents

Back to top Here Installation

Usage

Installation

Requirements:

To use the program the intended way, you must first install it by running one of the following code snippets, depending on your os and terminal.

Windows(Command Prompt):

git clone https://github.com/tinkering-towsperson/fizzbuzz
cd fizzbuzz
poetry config virtualenvs.create false --local
py -m venv .venv
call .\.venv\Scripts\activate.bat
poetry env use .\.venv\Scripts\python.exe
poetry install

Windows(Powershell):

git clone https://github.com/tinkering-towsperson/fizzbuzz
cd fizzbuzz
poetry config virtualenvs.create false --local
py -m venv .venv
.\.venv\Scripts\Activate.ps1
poetry env use .\.venv\Scripts\python.exe
poetry install

*nix(MacOS X/Linux/Unix):

git clone https://github.com/tinkering-towsperson/fizzbuzz
cd fizzbuzz
poetry config virtualenvs.create false --local
source ./.venv/Scripts/activate
poetry env use ./.venv/Scripts/python
poetry install

Usage

After installation, you can run it with default options by running the following:

poetry run fizzbuzz

And for the help message, just run:

poetry run fizzbuzz -h

Footnotes

  1. Installing poetry 1.2:

    *nix(MacOS X/Linux/Unix):

    curl -sSL https://install.python-poetry.org | python3 - --preview
    

    Windows(Powershell):

    (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - --preview
    

    For more information visit https://python-poetry.org/docs/master/#installing-with-the-official-installer