Skip to content

Commit

Permalink
python/scrabble-score: 1st iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Apr 13, 2024
1 parent 18b59c6 commit a0e84d5
Show file tree
Hide file tree
Showing 15 changed files with 669 additions and 3 deletions.
1 change: 1 addition & 0 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@
- [raindrops](./raindrops/README.md)
- [reverse-string](./reverse-string/README.md)
- [roman-numerals](./roman-numerals/README.md)
- [scrabble-score](./scrabble-score/README.md)
1 change: 1 addition & 0 deletions python/scrabble-score/.coverage
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!coverage.py: This is a private format, don't read it directly!{"arcs":{"/home/vpayno/git_vpayno/exercism-workspace/python/scrabble-score/test/__init__.py":[[0,0],[0,-1]],"/home/vpayno/git_vpayno/exercism-workspace/python/scrabble-score/scrabble_score.py":[[0,1],[1,4],[4,34],[34,-1],[34,41],[41,42],[42,44],[44,46],[46,-34],[4,11],[11,13],[13,14],[14,16],[16,18],[18,19],[19,31],[31,-4],[14,15],[15,31],[16,17],[17,31],[18,20],[20,21],[21,31],[20,22],[22,24],[24,25],[25,31],[22,23],[23,31],[24,26],[26,27],[27,31]]}}
53 changes: 53 additions & 0 deletions python/scrabble-score/.coverage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" ?>
<coverage branch-rate="1" branches-covered="0" branches-valid="0" complexity="0" line-rate="0.8846" lines-covered="23" lines-valid="26" timestamp="1713040116221" version="4.5.4">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
<source>/home/vpayno/git_vpayno/exercism-workspace/python/scrabble-score</source>
</sources>
<packages>
<package branch-rate="1" complexity="0" line-rate="0.8846" name=".">
<classes>
<class branch-rate="1" complexity="0" filename="scrabble_score.py" line-rate="0.8846" name="scrabble_score.py">
<methods/>
<lines>
<line hits="0" number="0"/>
<line hits="1" number="4"/>
<line hits="1" number="11"/>
<line hits="1" number="13"/>
<line hits="1" number="14"/>
<line hits="1" number="15"/>
<line hits="1" number="16"/>
<line hits="1" number="17"/>
<line hits="1" number="18"/>
<line hits="1" number="19"/>
<line hits="1" number="20"/>
<line hits="1" number="21"/>
<line hits="1" number="22"/>
<line hits="1" number="23"/>
<line hits="1" number="24"/>
<line hits="1" number="25"/>
<line hits="1" number="26"/>
<line hits="1" number="27"/>
<line hits="0" number="28"/>
<line hits="0" number="29"/>
<line hits="1" number="31"/>
<line hits="1" number="34"/>
<line hits="1" number="41"/>
<line hits="1" number="42"/>
<line hits="1" number="44"/>
<line hits="1" number="46"/>
</lines>
</class>
</classes>
</package>
<package branch-rate="1" complexity="0" line-rate="1" name="test">
<classes>
<class branch-rate="1" complexity="0" filename="test/__init__.py" line-rate="1" name="__init__.py">
<methods/>
<lines/>
</class>
</classes>
</package>
</packages>
</coverage>
2 changes: 2 additions & 0 deletions python/scrabble-score/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = __init__.py, *_test.py
1 change: 1 addition & 0 deletions python/scrabble-score/.pylintrc
7 changes: 6 additions & 1 deletion python/scrabble-score/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,9 @@ And to total:

### Based on

Inspired by the Extreme Startup game - https://github.com/rchatley/extreme_startup
Inspired by the Extreme Startup game - https://github.com/rchatley/extreme_startup

### My Solution

- [my solution](./scrabble_score.py)
- [run-tests](./run-tests-python.txt)
5 changes: 5 additions & 0 deletions python/scrabble-score/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[pytest]
pythonpath = .
addopts = --doctest-modules
markers =
task: exercise task/step
Loading

0 comments on commit a0e84d5

Please sign in to comment.