aligning array
This commit is contained in:
parent
fd778a61a5
commit
ba8507d38a
1 changed files with 5 additions and 6 deletions
|
@ -3,7 +3,6 @@ __author__ = 'gaugendre'
|
||||||
from grid import Grid
|
from grid import Grid
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
# Doesn't need any 'two rows are not the same'
|
# Doesn't need any 'two rows are not the same'
|
||||||
array = [['B', ' ', ' ', ' '],
|
array = [['B', ' ', ' ', ' '],
|
||||||
['B', 'B', ' ', ' '],
|
['B', 'B', ' ', ' '],
|
||||||
|
@ -16,11 +15,11 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
# This one does
|
# This one does
|
||||||
array = [['B', 'B', ' ', ' ', ' ', ' '],
|
array = [['B', 'B', ' ', ' ', ' ', ' '],
|
||||||
[' ', ' ', ' ', ' ', ' ', 'B'],
|
[' ', ' ', ' ', ' ', ' ', 'B'],
|
||||||
['B', 'B', ' ', 'B', ' ', ' '],
|
['B', 'B', ' ', 'B', ' ', ' '],
|
||||||
['B', ' ', ' ', ' ', ' ', ' '],
|
['B', ' ', ' ', ' ', ' ', ' '],
|
||||||
[' ', ' ', ' ', 'R', ' ', ' '],
|
[' ', ' ', ' ', 'R', ' ', ' '],
|
||||||
[' ', ' ', 'R', ' ', ' ', ' ']]
|
[' ', ' ', 'R', ' ', ' ', ' ']]
|
||||||
grid = Grid(len(array), array)
|
grid = Grid(len(array), array)
|
||||||
print(grid)
|
print(grid)
|
||||||
grid.solve()
|
grid.solve()
|
||||||
|
|
Loading…
Reference in a new issue