Question: def update _ fleet _ grid ( row: int, col: int, fleot _ gridt Hist [ 1 ist [ str ] ] , ship _
def updatefleetgridrow: int, col: int, fleotgridt Hististstr shipsymbols: liststr hitslisti listint None: "Nodify hitslist and fleetgrid to account for a hit of the cell at row position row and colum position col. Convert the correct cell in fleetgrid to upper case and increase the corresponding count in hitslist by ane.
shipsymbols and hits.list are parallel lists.
Preconditions:
e row lenfleetgrid
col rid
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
