String subclass to return character representing a neuron.
| 26 | |
| 27 | |
| 28 | class Neuron(str): |
| 29 | """String subclass to return character representing a neuron.""" |
| 30 | |
| 31 | CHAR = "██" |
| 32 | CHANCE_OF_DEATH = 35 |
| 33 | |
| 34 | def __new__(cls) -> str: |
| 35 | return str.__new__(cls, cls.CHAR) |
| 36 | |
| 37 | |
| 38 | class Grid: |
no outgoing calls
no test coverage detected