maze_runner_rs 0.2.0

A simple text-based maze game library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// A struct representing a position in the grid
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Position {
    /// X coordinate (column)
    pub x: usize,
    /// Y coordinate (row)
    pub y: usize,
}

impl Position {
    /// Creates a new position with the given coordinates
    pub fn new(x: usize, y: usize) -> Self {
        Position { x, y }
    }
}