fixed a bug where the x and y where inverted in the board class

This commit is contained in:
Faraphel 2023-02-20 22:23:57 +01:00
parent be138594df
commit b9e087d1fd

View file

@ -10,6 +10,6 @@ def copy_array_offset(src: np.array, dst: np.array, offset: Point2D) -> None:
:dst: destination array
:offset: the offset where to copy the array
"""
row, column = offset
column, row = offset
width, height = src.shape
dst[row:row + width, column:column + height] = src