use tabled::{
settings::{themes::BorderCorrection, Alignment, Span, Style},
Table,
};
fn main() {
let data = [
("0-0", "0-1", "0-2"),
("1-0", "1-1", "1-2"),
("2-0", "2-1", "2-2"),
("3-0", "3-1", "3-2"),
("4-0", "4-1", "4-2"),
("5-0", "5-1", "5-2"),
("6-0", "6-1", "6-2"),
];
let mut table = Table::new(data);
table.with(Style::modern_rounded());
table.modify((0, 1), Span::column(2));
table.modify((1, 0), Span::column(isize::MAX));
table.modify((2, 1), Span::column(-1));
table.modify((3, 2), Span::column(isize::MIN));
table.modify((4, 0), Span::column(0));
table.modify((5, 1), Span::column(0));
table.modify((6, 2), Span::column(0));
table.modify((4, 0), Span::column(1));
table.with(BorderCorrection::span());
table.with(Alignment::center());
println!("{table}");
}