Skip to content

Commit cfec6ae

Browse files
committed
Moved const to constants.
1 parent 4135c08 commit cfec6ae

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/backend/constants.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
use crate::backend::types::bitboard::BitBoard;
66
use crate::backend::types::square::Square;
77

8+
pub const STARTING_POS: &str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
9+
810
pub const SIDE_LENGTH: i8 = 8;
911
pub const SQUARES_AMOUNT: usize = 64;
1012

@@ -41,6 +43,7 @@ pub const F2: Square = 13;
4143
pub const G2: Square = 14;
4244
pub const H2: Square = 15;
4345
pub const A7: Square = 48;
46+
4447
pub const B7: Square = 49;
4548
pub const C7: Square = 50;
4649
pub const D7: Square = 51;

‎src/backend/game_state/fen_parser.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ use crate::backend::types::piece::{Piece, Side};
66
use crate::backend::types::square::Square;
77
use crate::backend::types::square::square_from_rank_and_file;
88

9-
pub const STARTING_POS: &str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
10-
119
/// Parses a FEN (Forsyth-Edwards Notation) string and updates the corresponding game game_state.
1210
/// https://www.chessprogramming.org/Forsyth-Edwards_Notation
1311
///

0 commit comments

Comments
 (0)