A Traffic Light Simulator
Project description
Traffic Light Simulator Goals
This is an attempt to simulate a simple traffic light. You can specify how long you want each light show before it changes to the next light, as well as the number of light changes you want before the simulator stops running the current light.
Install
Install with pip
You may want to do this in a virtualenv if you don’t want to clutter up your global packages. If you want to use a virtualenv just:
$ virtuanelv testenv $ cd testenv $ . bin/activate
Then simply install with pip:
$ pip install traffic-light-simulator
Clone the repo
Clone this repo, cd into the traffic_light_simulator module
Running the simulator
If you installed with pip, you have a script available to you to run the simulator. Simply enter into your terminal:
$ traffic-light-simulator
Otherwise if you cloned the repo just run the user_interface.py with your interpreter:
$ python user_interface.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for traffic-light-simulator-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a428e58ac6ddd448908b69124d46f8d247600e925b06e19ed83975891d6b2ff8 |
|
MD5 | 06de91290e9941df6baa665f9a3eb19b |
|
BLAKE2b-256 | b100625cfad5231f08d1b83db226305bc32f5d890faf9c50bfd070b8d8180095 |