Add assessment

This commit is contained in:
Chris Proctor
2024-03-02 20:01:16 -05:00
parent a00d27af7e
commit 501e223a9a

26
assessment.md Normal file
View File

@@ -0,0 +1,26 @@
# Dice Lab Assessment
Checkpoints 1 and 2 look good. Checkpoint 3 doesn't appear to be done--I can come
back to this if you finish this up (or just need to `mwc submit`)
## Checkpoint 1
Using Counter was effective, although `is_three_of_a_kind`
fails with [1, 1, 1, 1, 1]. You could simplify further with
some additional idiomatic python:
```
def is_three_of_a_kind(self):
return max(Counter(self.faces())) >= 3
```
`is_four_of_a_kind` has a similar bug.
## Checkpoint 2
The content of your docstrings looks good. However, most are above their function
rather than inside it. This technically works, but defeats some of the purpose of
docstrings, as there are automated tools that use them and expect to find them in
the right place.
## Checkpoint 3
Not done.