1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/// Horizontal edge of a [`GameBoard`](crate::GameBoard): the edge rows are added to and removed
/// from.
///
/// Named after the orientation of the edge itself - the top of a board is a horizontal line.
///
/// # Examples
///
/// ```rust
/// use sokoban_elements::*;
///
/// let mut board = GameBoard::new(3, 3, Tessellation::Sokoban);
///
/// board.add_rows(HorizontalEdge::Top, 2);
/// assert_eq!(board.height(), 5);
/// ```
/// Vertical edge of a [`GameBoard`](crate::GameBoard): the edge columns are added to and removed
/// from.
///
/// Named after the orientation of the edge itself - the left side of a board is a vertical line.
///
/// # Examples
///
/// ```rust
/// use sokoban_elements::*;
///
/// let mut board = GameBoard::new(3, 3, Tessellation::Sokoban);
///
/// board.remove_columns(VerticalEdge::Left, 1);
/// assert_eq!(board.width(), 2);
/// ```