Total Complexity | 4 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | 1 | class Board: |
|
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): |
||
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.