Skip to content

Commit

Permalink
Removed CompressablePosition
Browse files Browse the repository at this point in the history
  • Loading branch information
datawater committed Oct 8, 2024
1 parent a7d89fa commit 5826b0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 306 deletions.
5 changes: 4 additions & 1 deletion libcmbr/src/cmbr/pgntocmbr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@ fn get_fen_from_board(board: &Chess) -> String {
if castles.has(Color::White, CastlingSide::KingSide) {
fen.push('K')
};

if castles.has(Color::White, CastlingSide::QueenSide) {
fen.push('Q')
};

if castles.has(Color::Black, CastlingSide::KingSide) {
fen.push('k')
};

if castles.has(Color::Black, CastlingSide::QueenSide) {
fen.push('q')
};
Expand Down Expand Up @@ -236,7 +239,7 @@ impl CmbrFile {
}

Token::MoveAnnotation(an) => cmbr_variation.moves.push(
(((MOVE_ANNOTATION_TO_NAG[an] as u32) << 8) | 0b10000000)
(((MOVE_ANNOTATION_TO_NAG[*an] as u32) << 8) | 0b10000000)
.into(),
),

Expand Down
1 change: 0 additions & 1 deletion libcmbr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ cfg_if! {
pub mod cmbr;
pub mod error;
pub mod pgn;
pub mod position;
mod utils;

pub use shakmaty::Chess as ChessBoard;
304 changes: 0 additions & 304 deletions libcmbr/src/position/mod.rs

This file was deleted.

0 comments on commit 5826b0f

Please sign in to comment.