Question: Task 1: Create the board Implement a function named create board (NUM ROWS, NUM_COLS) which creates a 5x10 board (ie. 5 rows and 10
Task 1: Create the board Implement a function named create board (NUM ROWS, NUM_COLS) which creates a 5x10 board (ie. 5 rows and 10 columns) for the basic game but user should be able to input any number. Fill each cell with an empty string ("). Implement the board as a table (ie. a list of lists) in python. This function should return the table (i.e. list of lists). It should not print the board. Input: No input taken Output: A table that represents the 5x10 board with all the cells filled with a value. For example: >>> board = create_board (NUM_ROWS, NUM_COLS) >>> board [['', '], ['' ['' '], [''', ', ''], '], ['', ''
Step by Step Solution
3.49 Rating (152 Votes )
There are 3 Steps involved in it
Heres an example implementation of the createboard function in Python that ... View full answer
Get step-by-step solutions from verified subject matter experts
