[board] Implement Default for Position
Default returns an empty position.
This commit is contained in:
parent
0bc7e8d542
commit
caef0af244
1 changed files with 6 additions and 0 deletions
|
@ -193,6 +193,12 @@ impl Position {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for Position {
|
||||
fn default() -> Self {
|
||||
Self::empty()
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for Position {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let mut output = String::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue