https://github.com/simonamdev/laser-gun-assignment
https://github.com/simonamdev/laser-gun-assignment
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonamdev/laser-gun-assignment
- Owner: simonamdev
- License: mit
- Created: 2018-03-05T13:22:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-06T08:23:33.000Z (about 8 years ago)
- Last Synced: 2025-03-26T12:11:27.269Z (12 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laser Gun Assignment
Script to check which laser guns are within a specified range, with a default range of 112,000 metres.
## Requirements
* Python 3.x interpreter
* Input file (sample and test files provided)
## Usage
*Please note that you may have to run the following commands with python3 rather than python on most linux systems.*
Running `python distance_checker.py -h` will show the required and optional arguments that can be applied.
Required:
* File path to the input file
Optional:
* Minimum Gun Distance. If it is not provided, then the default will be used instead
Example usage:
`python distance_checker.py -file-path /data/test.in -minimum-distance 500`
### Tests
Pytest is required to be installed to run the tests. To run them:
`pytest tests.py`
## Licence
MIT