Ad
  • Custom User Avatar

    This happens when your code is raising the following:

        res, *xs = calc(xs)  # catching brackets
    TypeError: cannot unpack non-iterable float object
    

    It seems something is trying to import the ast module when this error is handled. Changing the python version effectively avoids the extra imports/failed assertions, but basically, if you fix your code, those failed assertions will disappear.

  • Custom User Avatar

    change the version of Python from 3.11 to an earlier verison, worked for me

  • Custom User Avatar

    Comparison of the 3 most prominent Python solutions, that is.

  • Custom User Avatar

    Your code looks great! I would recommend moving the effective dict within the expected_damage() function, similar to how you had it in the get_move() function in pervision verison. I think it would look cleaner and more encapsulated; however,that is just my humble opinion. Again, great job!