game.py
def insufficient_material(self):
        """Return true if and only if the position is king vs king or
        king vs king and light piece."""
        FEN_fields = self.FEN_string.split(" ")
        board = FEN_fields[0]
        pieces = ""
        for c in board:
            if c in "pnbrqkPNBRQK":
                pieces += c
        if len(pieces) > 3:
            return False
        for c in "prqPRQ":
            if c in pieces:
                return False
        return True
Return true if and only if the position is king vs king or
        king vs king and light piece.
Return true if and only if the position is king vs king or
king vs king and light piece.
Return true if and only if the position is king vs king or king vs king and light piece .
def insufficient_material(self):
        FEN_fields = self.FEN_string.split(" ")
        board = FEN_fields[0]
        pieces = ""
        for c in board:
            if c in "pnbrqkPNBRQK":
                pieces += c
        if len(pieces) > 3:
            return False
        for c in "prqPRQ":
            if c in pieces:
                return False
        return True
def insufficient_material ( self ) : FEN_fields = self . FEN_string . split ( " " ) board = FEN_fields [ 0 ] pieces = "" for c in board : if c in "pnbrqkPNBRQK" : pieces += c if len ( pieces ) > 3 : return False for c in "prqPRQ" : if c in pieces : return False return True
Return true if and only if the position is king vs king or
king vs king and light piece.
Return true if and only if the position is king vs king or king vs king and light piece .
"""Return true if and only if the position is king vs king or
        king vs king and light piece."""
self