8
Last seen 5 years ago
Member for 5 years, 8 months, 10 days
Difficulty Normal
Very straightforward, how about considering the Set Object, it will make is more concise.
More
Maybe you can write the `True` after the `while` loop, to reduce one more loop.
More
Maybe treat the n1 and n2 as the string type and use the formatting method can concise the codes.
More
This is remarkable...I know that there must be some codes much better and more concise than my 20-line codes, but I didn't expect this level...
More
I think there is no need to import the whole module string, it's ok to
from string import ascii_lowercase
if you only need it
More
What the counter there for? Is it for your own to see how many battles have been done?
More
I don't understand. What if the sequence is in the secondary diagonal?
Isn't these codes just test the main diagonal of the matrix?
More
Is there necessary to write the attribute(health and attack) inside the `__init__`?
More
WOW Russain. So pity I can't understand the language, but the solution is concise.
More
the alpha string also could be imported from string module
from string import ascii_lowercase
More