mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-07 10:50:36 +00:00
22 lines
558 B
Python
22 lines
558 B
Python
import bitab as Tabidir
|
|
import exemples
|
|
class Configuration:
|
|
def __init__(self, ruban,position, etat_courant):
|
|
self.ruban = ruban
|
|
self.position = position:wq
|
|
|
|
self.etat_courant = etat_courant
|
|
|
|
def _str__(self):
|
|
chaine = ' '
|
|
chaine = chaine +(self.position-ruban.imin())*2*' '+self.etat_courant
|
|
chaine = chaine + ' '+ (self.position+ruban.imin()*2*' '+ '|'+'\n')
|
|
chaine = chaine+self.ruban.__str__()
|
|
return chaine
|
|
|
|
if __name__ == "__main__":
|
|
ruban = Tabidir
|
|
|
|
|
|
class Machine:
|