Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Mark
- import connectfour
- game = connectfour.new_game()
- game = connectfour.drop(game,4)
- game = connectfour.drop(game,4)
- game = connectfour.drop(game,4)
- game = connectfour.drop(game,4)
- for row in game.board:
- print(row)
- #print(connectfour.BOARD_COLUMNS)
- #print(len(game.board))
- def print_user_board(game_state: game, amount_of_columns = 0) -> None:
- """prints the board the user sees"""
- user_board = []
- if amount_of_columns == (connectfour.BOARD_COLUMNS - 1):
- return
- else:
- for row in game.board:
- user_board.append(row[amount_of_columns])
- print(user_board)
- print_user_board(game, amount_of_columns + 1)
- print_user_board(game)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement