My program for this hw handles only 4 out of 10 tests. So I focused on one particular situation when my program returns different result:
AssertionError: Lists differ: [True, False, False, False, True, True, False, True, True, False] != [True, True, False, False, True, True, False, True, True, False]
As you can see here only one element differs. So by debugging particulary this case, I found out that the second spaceship can fit to the city if only rotates to 90 degrees. So I redesigned my prgm to handle the case and.... it did mot work!
So, 2 things might be happening here:
1. I did a mistake while debugging and spaceships can't rotate.
2. It can, but my prgrm doesn't work
Help me, so I don't waste time focusing on both cases
AssertionError: Lists differ: [True, False, False, False, True, True, False, True, True, False] != [True, True, False, False, True, True, False, True, True, False]
As you can see here only one element differs. So by debugging particulary this case, I found out that the second spaceship can fit to the city if only rotates to 90 degrees. So I redesigned my prgm to handle the case and.... it did mot work!
So, 2 things might be happening here:
1. I did a mistake while debugging and spaceships can't rotate.
2. It can, but my prgrm doesn't work
Help me, so I don't waste time focusing on both cases