Created
August 20, 2024 15:16
-
-
Save JaiSuryaPrabu/47ad8bfc5bcfcbaafd7e9d361663b0cb to your computer and use it in GitHub Desktop.
Tic Tac Toe function for displaying the board
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn display_board(board : &Vec<String>){ | |
println!(" {} | {} | {} ",board[0],board[1],board[2]); | |
println!(" ---| --- | ---"); | |
println!(" {} | {} | {} ",board[3],board[4],board[5]); | |
println!(" ---| --- | ---"); | |
println!(" {} | {} | {} ",board[6],board[7],board[8]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment