Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonio-gg-dev/christmas-tree-kata-python
https://github.com/antonio-gg-dev/christmas-tree-kata-python
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/antonio-gg-dev/christmas-tree-kata-python
- Owner: antonio-gg-dev
- License: mit
- Created: 2024-01-25T14:44:53.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-25T15:19:03.000Z (10 months ago)
- Last Synced: 2024-05-02T05:53:21.562Z (7 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Christmas Tree Kata Python
There is a shortage of Christmas trees this year, however, you can help! In the absence of real trees, Santa is going to
teach the children of the world the magic of the console.Unfortunately, being approximately 1,751 years old, Santa can only write binary, and needs your help to write a program
in a more modern language.## Instructions
### Input
Given the children of the world have varying screen sizes, Santa has tasked you with printing a Christmas tree to the
console for a given argument of the tree’s height to accommodate for all the children.### Output
For example a tree with a height of 2 looks like this:
```text
X
XXX
|
```And a tree with a height of 3 looks like this:
```text
X
XXX
XXXXX
|
```And a tree of height 10:
```text
X
XXX
XXXXX
XXXXXXX
XXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX
|
```
## Usage:
This setup uses _make_ and _docker_ to simplify the entire installation and usage process.
### help
Show all available _make_ commands.
```shell
make help
```### build
Build the _docker_ container. **Run this once to start working with the project.**
```shell
make build
```### version
Display the _Python_ version.
```shell
make version
```### test
Run the tests.
```shell
make test
```### coverage
Generates a code coverage report.
```shell
make coverage
```