diff options
Diffstat (limited to 'tic_tac_toe/src')
-rw-r--r-- | tic_tac_toe/src/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tic_tac_toe/src/main.rs b/tic_tac_toe/src/main.rs index d1762ba..5bdb7aa 100644 --- a/tic_tac_toe/src/main.rs +++ b/tic_tac_toe/src/main.rs @@ -9,17 +9,18 @@ use console_helpers::{clear_scrn, write_header}; use std::io; fn render_board(board: &Board) -> () { - println!(" 1 2 3"); + println!("+-1--2--3-+"); let mut y = 1; for row_i in 0..3 { let row: Vec<Tile> = (0..3).map(|col_i| board.state[col_i][row_i]).collect(); - print!("{y} "); + print!("{y}"); for tile in row { print!(" {tile} ") } - println!("\n"); + println!("|\n| |"); y += 1; } + println!("+---------+"); } fn get_coord_input() -> Coord { |