Skip to content
Snippets Groups Projects
Select Git revision
  • 4a0ca28bd9afdf4ba218653033359595dff20097
  • master default protected
2 results

load.py

Blame
  • Forked from Vuillemot Romain / INF-TC1
    Source project has a limited visibility.
    load.py 580 B
    labyrinthe = [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
    
    def affiche_labyrinthe(l):
        print('\n'.join([''.join(['{:4}'.format(item) for item in row]) 
            for row in l]))