amogh-dambal / diogenes-v2

V2 implementation of the Diogenes chess engine. This time in Rust.
0 stars 0 forks source link

Update code to use custom errors and result types instead of panicking #2

Open amogh-dambal opened 6 months ago

amogh-dambal commented 6 months ago

Currently, a lot of functions will panic if they encounter a situation like invalid or malformed input. While that works for an initial implementation, we should really be returning Result types with custom errors that specify the nature of the failure.