Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

Secondo test Es2 HW3bis

D
Dave76 (1070 points)
3 6 9
in HW3bis by (1.1k points)
Circa un mese fa un ragazzo ha chiesto il motivo per cui il programma non passasse alcuni test, come per esempio il secondo, nonostante le immagini fossero uguali. Mi trovo nella stessa situazione, ho anche provato a riscaricare il file ma non è cambiato nulla. Come posso fare?
325 views
closed

1 Answer

Best answer
andrea.sterbini (208020 points)
756 1270 2377
by (208k points)
selected by

In alcuni test sbagli il colore da usare.

E   AssertionError= Tuples differ= (222, 195, 190) != (58, 79, 65)
E   
E   First differing element 0=
E   222
E   58
E   
E   - (222, 195, 190)
E   + (58, 79, 65) = images differ, starting at coordinates 439,1 (colors= (222, 195, 190) != (58, 79, 65))

In altri c'è un errore nelle coordinate che sbordano dalla matrice

>       self.immagine[coordinata2][coordinata1] = c
E       IndexError= list index out of range