added parameterless constructor for struct BoardSquare

This commit is contained in:
Varga Dávid Lajos
2025-11-16 13:44:41 +01:00
parent acaa7d078a
commit b703d8b9a1

View File

@@ -2,4 +2,14 @@
pub struct BoardSquare {
pub x: usize,
pub y: usize
}
impl BoardSquare {
pub fn new() -> Self {
return Self{
x: 0,
y: 0
};
}
}