diff options
| author | Billy Brown | 2017-12-02 19:38:49 +0000 |
|---|---|---|
| committer | Billy Brown | 2017-12-02 19:38:49 +0000 |
| commit | f8af519f3997b2798b5f7f4e077bf82c603a683e (patch) | |
| tree | 31c7cf7bb8a7ee9a34de467a496799f81b0581fd /client/bitfont.py | |
| parent | Wrote README (diff) | |
| download | longpong-f8af519f3997b2798b5f7f4e077bf82c603a683e.tar.gz longpong-f8af519f3997b2798b5f7f4e077bf82c603a683e.zip | |
Documentation
Diffstat (limited to 'client/bitfont.py')
| -rw-r--r-- | client/bitfont.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/bitfont.py b/client/bitfont.py index 7fa27b4..094616d 100644 --- a/client/bitfont.py +++ b/client/bitfont.py @@ -61,8 +61,12 @@ _bitfont_9 = [ True, True, True, _bitfonts = [ _bitfont_0, _bitfont_1, _bitfont_2, _bitfont_3, _bitfont_4, _bitfont_5, _bitfont_6, _bitfont_7, _bitfont_8, _bitfont_9 ] def bitfont(number): - # Create the fonts - # Generate the digits + """ + Convert a base 10 number into a bitfont, which is represented by a list + representing a 3x5 grid, row by row. A value of True represents a cell + that should be drawn and a value of False represents a cell that should + be left blank. + """ result = [] number = add_digit(result, number) while number > 0: |
