The question is to modify the board in place by accessing the cell at the given row and column and assigning it the value of guess.
I’ve tried countless different attempts of code, tried working with Claude Code, Chat GPT, and Perplexity but nothing seems to be working yet. I’ve attached the different lines of code I’ve attempted below.
if self.is_valid((row, col), guess):
if self.is_valid(row, col), guess)
if self.is_valid(row, col, guess):
Look at line 39 in your code: row, col = next_empty. You already have the row and column values from unpacking next_empty - so when you write self.board[row][col] = guess, you have everything you need. What’s different between line 39 and the attempts you listed?
Look at where line 39 is located versus where you’re trying to write self.board[row][col] = guess. Do you have access to the row and col variables at that point? Think about indentation and scope - where should line 39 be in relation to the line where you modify the board?
Thank you for your suggestion. I’ve tried this many times and tried again after your response, but I’m still getting the same output. Is there something I’m doing incorrectly or this a fault of the platform? Because I feel like I’ve exhausted my options.