<doocs>0293.Flip Game_1.py
def generatePossibleNextMoves( currentState: str) -> List[str]:
    s = list(currentState)
    ans = []
    for i, c in enumerate(s[:-1]):
        if c == "+" and s[i + 1] == "+":
            s[i] = s[i + 1] = "-"
            ans.append("".join(s))
            s[i] = s[i + 1] = "+"
    return ans
def sample_funcname ( var_0 : str ) -> List [ str ] :
    var_4 = list ( var_0 )
    var_5 = [ ]
    for var_7 , var_9 in enumerate ( var_4 [ : - 1 ] ) :
        if var_9 == "+" and var_4 [ var_7 + 1 ] == "+" :
            var_4 [ var_7 ] = var_4 [ var_7 + 1 ] = "-"
            var_5.append ( "".join ( var_4 ) )
            var_4 [ var_7 ] = var_4 [ var_7 + 1 ] = "+"
    return var_5
