summaryrefslogtreecommitdiff
path: root/model/src/piece.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2025-12-08 19:56:48 -0500
committerMica White <botahamec@outlook.com>2025-12-08 19:56:48 -0500
commitfdb2804883deb31e3aeb15bbe588dcc9b7b76bd0 (patch)
treea4c51cd88664cab7b6673dcd3b425fb7a0202a38 /model/src/piece.rs
parent93461aa9399d981db7d8611b3eb166636de4d971 (diff)
Diffstat (limited to 'model/src/piece.rs')
-rwxr-xr-x[-rw-r--r--]model/src/piece.rs42
1 files changed, 21 insertions, 21 deletions
diff --git a/model/src/piece.rs b/model/src/piece.rs
index f36e0a4..860142d 100644..100755
--- a/model/src/piece.rs
+++ b/model/src/piece.rs
@@ -1,21 +1,21 @@
-use crate::PieceColor;
-
-#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
-pub struct Piece {
- king: bool,
- color: PieceColor,
-}
-
-impl Piece {
- pub(crate) const fn new(king: bool, color: PieceColor) -> Self {
- Self { king, color }
- }
-
- pub const fn is_king(self) -> bool {
- self.king
- }
-
- pub const fn color(self) -> PieceColor {
- self.color
- }
-}
+use crate::PieceColor;
+
+#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
+pub struct Piece {
+ king: bool,
+ color: PieceColor,
+}
+
+impl Piece {
+ pub(crate) const fn new(king: bool, color: PieceColor) -> Self {
+ Self { king, color }
+ }
+
+ pub const fn is_king(self) -> bool {
+ self.king
+ }
+
+ pub const fn color(self) -> PieceColor {
+ self.color
+ }
+}