Skip to content

Commit

Permalink
adjust #derive[] attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-fabiane committed Apr 26, 2023
1 parent e560f64 commit 1347063
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[derive(Copy, Clone)]
enum Color {
White,
Black,
Expand All @@ -19,10 +20,12 @@ struct Square {
rank: Rank,
}

#[derive(Copy, Clone)]
enum File {
A, B, C, D, E, F, G, H
}

#[derive(Copy, Clone)]
enum Rank {
R1, R2, R3, R4, R5, R6, R7, R8
}
Expand All @@ -42,14 +45,6 @@ struct Input {
castling_rights: CastlingRights // castling rights for both sides
}

impl InputLayer {
fn new() -> Self {
Self {
board: [[None; 8]; 8],
}
}
}

fn main() {
println!("Hello, world!");
}

0 comments on commit 1347063

Please sign in to comment.