From 85a7fa37ef47b141e0d13b56e9c096a8332e4e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Varga=20D=C3=A1vid=20Lajos?= Date: Wed, 19 Nov 2025 15:22:15 +0100 Subject: [PATCH] added parameterless constructor for struct MoveBuffer --- engine/src/bitboard/movebuffer.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/src/bitboard/movebuffer.rs b/engine/src/bitboard/movebuffer.rs index 4fb78ca..00b5dda 100644 --- a/engine/src/bitboard/movebuffer.rs +++ b/engine/src/bitboard/movebuffer.rs @@ -4,4 +4,14 @@ pub struct MoveBuffer { buffer: [BitMove; 256], count: usize +} + +impl MoveBuffer { + + pub fn new() -> Self { + return Self { + buffer: [BitMove::quiet(0, 0, None); 256], + count: 0 + }; + } } \ No newline at end of file