Pārlūkot izejas kodu

embrace the stupidity

tarfeef101 6 gadi atpakaļ
vecāks
revīzija
43a9867334
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      a3/router.py

+ 1 - 1
a3/router.py

@@ -150,7 +150,7 @@ class graph:
         curnode = rid - 1
         unvisited = [1] * 5
         
-        while(unvisited):
+        while(sum(unvisited)):
             # iterate on routers adjacent to curnode
             for i in range(0, 5):
                 # don't check curnode