initial BoardValueMap
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user