Ad
  • Custom User Avatar

    no, i actually don't, thanks :)

  • Default User Avatar

    Browsing the other solutions might turn something up.

    Can you make it so that there is only one of those if-elif's, shared between all of them? Make the code repeat instead of repeating the code. You do it somewhat already in your two first loop. But if you were to rotate the board 90 degrees, then you could re-use the first loop. You could also keep a list of coordinates of the 3-cell sets, and iterate through those.