def posicion(numero_casilla):
from Tablero import Tablero
for x in range (16):
for y in range(16):
if Tablero[x][y]['numero']==int(numero_casilla):
return(x,y)
Posición stands for position. This snippet returns the position of the given tile in the board matrix
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.