Auto urgent commit.

This commit is contained in:
2025-03-31 09:50:06 +02:00
parent 874ed0c007
commit f2ae2cbc13
2 changed files with 79 additions and 0 deletions

17
turing/mc.py Normal file
View File

@@ -0,0 +1,17 @@
import Tabidir, exemples
class Configuration:
def __init__(self, ruban,position, etat_courant):
self.ruban = ruban
self.position = position
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+slef.ruban.__str__()
return chaine
if __name__ == "__main__":
ruban = Ta