You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could someone please breakdown how magic methods lt and gt work, how they are called and how return is finally implemented? I’m trying to gain a better grasp and right now I see it as, if all these things don’t work then return False.
I feel the two magic methods have something to do with the code. here in the Game Class that follows, however I am just unsure where or how the gt and lt magic methods are work or where they are called:
Could someone please breakdown how magic methods lt and gt work, how they are called and how return is finally implemented? I’m trying to gain a better grasp and right now I see it as, if all these things don’t work then return False.
See code here:
goselftaught/war.py
Line 15 in 04919ce
@calthoff
The text was updated successfully, but these errors were encountered: