Python/memory.py
def tap(x, y):
    "Update mark and hidden tiles based on tap."
    global clicks
    spot = index(x, y)
    mark = state['mark']

    if mark is None or mark == spot or tiles[mark] != tiles[spot]:
        state['mark'] = spot
        clicks +=1
        print("Guesses= {:d}".format((clicks)))
    else:
        hide[spot] = False
        hide[mark] = False
        state['mark'] = None
        global couples
        couples+=1
Update mark and hidden tiles based on tap.
Update mark and hidden tiles based on tap.
Update mark and hidden tiles based on tap .
def tap(x, y):
    global clicks
    spot = index(x, y)
    mark = state['mark']
    if mark is None or mark == spot or tiles[mark] != tiles[spot]:
        state['mark'] = spot
        clicks +=1
        print("Guesses= {:d}".format((clicks)))
    else:
        hide[spot] = False
        hide[mark] = False
        state['mark'] = None
        global couples
        couples+=1
def tap ( x , y ) : global clicks spot = index ( x , y ) mark = state [ 'mark' ] if mark is None or mark == spot or tiles [ mark ] != tiles [ spot ] : state [ 'mark' ] = spot clicks += 1 print ( "Guesses= {:d}" . format ( ( clicks ) ) ) else : hide [ spot ] = False hide [ mark ] = False state [ 'mark' ] = None global couples couples += 1
Update mark and hidden tiles based on tap.
Update mark and hidden tiles based on tap .
"Update mark and hidden tiles based on tap."
x
y