Skip to content

Commit

Permalink
feat(coords): improving storage of coordinates (thomas-mauran#75)
Browse files Browse the repository at this point in the history
* fix: `Coord` struct for storing coordinates

* fix(Coord): `opt_new()` is cleaner w/ `TryInto`

---------

Co-authored-by: Jeromos Kovacs <[email protected]>
  • Loading branch information
JeromeSchmied and Jeromos Kovacs authored Jul 16, 2024
1 parent d729af1 commit 84c4525
Show file tree
Hide file tree
Showing 10 changed files with 888 additions and 772 deletions.
381 changes: 208 additions & 173 deletions src/board.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::path::PathBuf;

use ratatui::style::Color;

pub const UNDEFINED_POSITION: i8 = -1;
pub const UNDEFINED_POSITION: u8 = u8::MAX;
pub const WHITE: Color = Color::Rgb(160, 160, 160);
pub const BLACK: Color = Color::Rgb(128, 95, 69);

Expand Down
Loading

0 comments on commit 84c4525

Please sign in to comment.