1 | 1 | class Board: |
|
0 ignored issues
–
show
This class should have a docstring.
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods: class SomeClass:
def some_method(self):
"""Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions. ![]() |
|||
2 | |||
3 | 1 | def __init__(self, num_rows, num_columns): |
|
4 | 1 | self._board = dict() |
|
5 | 1 | for row in range(num_rows): |
|
6 | 1 | for column in range(num_columns): |
|
7 | 1 | self._board[(row, column)] = None |
|
8 | |||
9 | 1 | self.rows = num_rows |
|
10 | 1 | self.columns = num_columns |
|
11 | |||
12 | 1 | @property |
|
13 | def board(self): |
||
0 ignored issues
–
show
This method should have a docstring.
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods: class SomeClass:
def some_method(self):
"""Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions. ![]() |
|||
14 | return self._board |
||
15 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.