Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Heres an example implementation of the createboard function in Python that ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started