check50

cs50/labs/2023/x/worldcup


:) tournament.py exists

Log
checking that tournament.py exists...
checking that answers.txt exists...

:) tournament.py imports

Log
checking that tournament.py exists...
importing tournament.py...

:| simulate_tournament handles a bracket of size 2

Cause
check50 ran into an error while running checks!

Log
checking that tournament.py exists...
importing tournament.py...

Error
TypeError: 'bool' object is not iterable
     File "/usr/local/lib/python3.11/site-packages/check50/runner.py", line 148, in wrapper state = check(*args) ^^^^^^^^^^^^
     File "/home/ubuntu/.local/share/check50/cs50/labs/worldcup/__init__.py", line 74, in sim_tournament_2 check_tournament(BRACKET2)
     File "/home/ubuntu/.local/share/check50/cs50/labs/worldcup/__init__.py", line 199, in check_tournament actual = tournament.simulate_tournament(args[0]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/tmp/tmpx6t_zk5k/sim_tournament_2/tournament.py", line 58, in simulate_tournament for i in len(teams) > 1:

:| simulate_tournament handles a bracket of size 4

Cause
check50 ran into an error while running checks!

Log
checking that tournament.py exists...
importing tournament.py...

Error
TypeError: 'bool' object is not iterable
     File "/usr/local/lib/python3.11/site-packages/check50/runner.py", line 148, in wrapper state = check(*args) ^^^^^^^^^^^^
     File "/home/ubuntu/.local/share/check50/cs50/labs/worldcup/__init__.py", line 80, in sim_tournament_4 check_tournament(BRACKET4)
     File "/home/ubuntu/.local/share/check50/cs50/labs/worldcup/__init__.py", line 199, in check_tournament actual = tournament.simulate_tournament(args[0]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/tmp/tmpx6t_zk5k/sim_tournament_4/tournament.py", line 58, in simulate_tournament for i in len(teams) > 1:

:| simulate_tournament handles a bracket of size 8

Cause
check50 ran into an error while running checks!

Log
checking that tournament.py exists...
importing tournament.py...

Error
TypeError: 'bool' object is not iterable
     File "/usr/local/lib/python3.11/site-packages/check50/runner.py", line 148, in wrapper state = check(*args) ^^^^^^^^^^^^
     File "/home/ubuntu/.local/share/check50/cs50/labs/worldcup/__init__.py", line 86, in sim_tournament_8 check_tournament(BRACKET8)
     File "/home/ubuntu/.local/share/check50/cs50/labs/worldcup/__init__.py", line 199, in check_tournament actual = tournament.simulate_tournament(args[0]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/tmp/tmpx6t_zk5k/sim_tournament_8/tournament.py", line 58, in simulate_tournament for i in len(teams) > 1:

:| simulate_tournament handles a bracket of size 16

Cause
check50 ran into an error while running checks!

Log
checking that tournament.py exists...
importing tournament.py...

Error
TypeError: 'bool' object is not iterable
     File "/usr/local/lib/python3.11/site-packages/check50/runner.py", line 148, in wrapper state = check(*args) ^^^^^^^^^^^^
     File "/home/ubuntu/.local/share/check50/cs50/labs/worldcup/__init__.py", line 92, in sim_tournament_16 check_tournament(BRACKET16)
     File "/home/ubuntu/.local/share/check50/cs50/labs/worldcup/__init__.py", line 199, in check_tournament actual = tournament.simulate_tournament(args[0]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/tmp/tmpx6t_zk5k/sim_tournament_16/tournament.py", line 58, in simulate_tournament for i in len(teams) > 1:

:( correctly keeps track of wins

Cause
fails to keep track of wins

Log
running python3 tournament.py 2018m.csv...

:( correctly reports team information for Men's World Cup

Cause
did not find team Belgium

Log
running python3 tournament.py 2018m.csv...

:( correctly reports team information for Women's World Cup

Cause
did not find team Germany

Log
running python3 tournament.py 2019w.csv...

:( answers.txt is complete

Cause
answers.txt does not include timings for each number of simulation runs
Did you put all of your answers in 0m0.000s format?