new square constructors
This commit is contained in:
parent
de321719f4
commit
ad1c4c57ad
7 changed files with 59 additions and 44 deletions
|
|
@ -36,7 +36,7 @@ macro_rules! by_square {
|
|||
let mut $sq: u8 = 0;
|
||||
while $sq < 64 {
|
||||
res[$sq as usize] = {
|
||||
let $sq = Square::from_index($sq).unwrap();
|
||||
let $sq = Square::new($sq).unwrap();
|
||||
$e
|
||||
};
|
||||
$sq += 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue