Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
partial FEN parser with an internal board representation
  • Loading branch information
dogeystamp committed Sep 23, 2024
0 parents commit c3439bd
Show file tree
Hide file tree
Showing 5 changed files with 408 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "chess_inator"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
11 changes: 11 additions & 0 deletions src/bin/scratch.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use chess_inator::Position;

fn main() {
let fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR ";
let board = Position::from_fen(fen.into()).unwrap();
println!("{}", board);

let fen = "rnbqkbnr/pp1ppppp/8/2p5/4P3/5N2/PPPP1PPP/RNBQKB1R ";
let board = Position::from_fen(fen.into()).unwrap();
print!("{}", board);
}
Loading

0 comments on commit c3439bd

Please sign in to comment.