initial BoardValueMap

This commit is contained in:
2025-02-20 16:19:42 -05:00
parent 1fe7658deb
commit dc9432b07b
4 changed files with 23 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ type ChainCollection = ArrayVec<Chain, 8>;
/// Map of all points on the board against some type T
/// Used to index like so: example[i][j]
/// with each coordinate
struct PosMap<T>(ArrayVec<T, BOARD_AREA>);
pub struct PosMap<T>(ArrayVec<T, BOARD_AREA>);
impl<T> PosMap<T> {
pub fn get(&self, row: usize, col: usize) -> &T {

View File

@@ -3,5 +3,5 @@ mod board;
mod misc;
mod piece;
pub use board::{Board, Winner};
pub use board::{Board, PosMap, Winner};
pub use piece::Piece;