7 lines
111 B
Python
7 lines
111 B
Python
def char_to_int(char):
|
|
if char == 'L':
|
|
return -1
|
|
if char == '.':
|
|
return 0
|
|
return 1
|