Find id for pile center
This commit is contained in:
parent
cb3c5623ae
commit
9bf58c7cef
|
@ -35,7 +35,9 @@ def main(pile, n):
|
|||
[[0, 1, 0, 1, 0], [1, 2, 2, 2, 1], [0, 2, 0, 2, 0], [1, 2, 2, 2, 1], [0, 1, 0, 1, 0]]
|
||||
"""
|
||||
|
||||
return pile
|
||||
center = int((len(pile) - 1) / 2)
|
||||
|
||||
return center
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue