This is a library for representing game boards with utilities for doing useful game related functions.
Currently only a simple rectangular grid is supported.
extern crate grid;
extern crate prettytable;
use Grid;
With output:
1
2
3
5
7
9
10
11
+---+----+----+----+
| 1 | 2 | 3 | 4 |
+---+----+----+----+
| 5 | 6 | 7 | 8 |
+---+----+----+----+
| 9 | 10 | 11 | 12 |
+---+----+----+----+
Also checkout the chessboard example: cargo run --example chessboard --features="prettytable"