Ask coding questions

← Back to all posts
1
program detects empty nested list as containing "X"s and "Y"s
ShamrockKing (0)

look at the code pres run then put winning_move(board) into the console and please help explain why that returns as true https://repl.it/@ShamrockKing/TEST
im working on it for school in my computer science class and its the only error in my code the problem is that when the nested list board is empty this code detects it as being a win from the X player or Y player (this is a tic tac toe code to detect if someone won)

Commentshotnewtop
1
katyadee (826)

Hey there, would you mind adding a bit more background to your post?

1
katyadee (826)

@ShamrockKing Please add this to the post body/title =)