Ad
  • Default User Avatar

    players has a .name property. I thought part of the fun was that you can't see the property by viewing the list.
    It is there. Try print(players[1].name)

  • Custom User Avatar

    I print the players in python and result is as follows:
    [<main.Player object at 0x7ffbf3a11828>,
    <main.Player object at 0x7ffbf27b6ef0>,
    <main.Player object at 0x7ffbf27b6860>,
    <main.Player object at 0x7ffbf27b66a0>,
    <main.Player object at 0x7ffbf27b6668>,
    <main.Player object at 0x7ffbf27b6470>,
    <main.Player object at 0x7ffbf27b6630>,
    <main.Player object at 0x7ffbf27b6438>,
    <main.Player object at 0x7ffbf27b6518>,
    <main.Player object at 0x7ffbf27b6358>]

    Is codewars changing something in test framework in buggy way, or this cata is not ready for python?

  • Custom User Avatar

    Print the players array to the console. The array used in the example test cases is different than the array used in the description.

  • Custom User Avatar

    I need a little more explaining. How do I find out what is in the player's array? I was assuming
    players = [a,b,c,d]

    but then one of the test's has this

    Test.assert_equals(duck_duck_goose(players, 10), "z")

    I think it should be "b". Where did "z" come from?

  • Custom User Avatar

    wow, I can't believe ruby has hypot calculators built in. This is awesome!