fork download
  1. def drawBoard(board):
  2. # This function prints out the board that it was passed.
  3. # "board" is a list of 10 strings representing the board (ignore index 0)
  4. print(' | |')
  5. print(' ' + board[7] + ' | ' + board[8] + ' | ' + board[9])
  6. print(' | |')
  7. print('-----------')
  8. print(' | |')
  9. print(' ' + board[ 4] + ' | ' + board[5] + ' | ' + board[6])
  10. print(' | |')
  11. print('-----------')
  12. print(' | |')
  13. print(' ' + board[1] + ' | ' + board[2] + ' | ' + board[3])
  14. print(' | |')
Success #stdin #stdout 0.03s 9168KB
stdin
Standard input is empty
stdout
Standard output is empty