From 345a99ea44751292ff324b78c3c72b9e8fa4edab Mon Sep 17 00:00:00 2001 From: Luna Lailatova Date: Fri, 9 Dec 2022 20:50:34 +0100 Subject: [PATCH] day9 updated --- day9.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 day9.py diff --git a/day9.py b/day9.py deleted file mode 100644 index edab711..0000000 --- a/day9.py +++ /dev/null @@ -1,39 +0,0 @@ -def expandGrid(direct): - if direct == "U": - gridVisited.append(0, []) - for _ in range(len(gridVisited[1])) - gridVisited[0].append('.') - elif direct == "R" - for i in range(len(gridVisited)) - gridVisited[i].append('.') - elif direct == "D" - gridVisited.append([]) - tempx = len(gridVisited) - 1 - for _ in range(len(gridVisited[0])) - gridVisited[tempx].append('.') - elif direct == "L" - for i in range(len(gridVisited)) - gridVisited[i].append('.') - -gridVisited =[['#']] -posHead = -posTail = - -with open('input9.txt','r') as f: - inp = f.read().splitlines(keepends=False) - -direction = [] -distance = [] - -for i in inp: - tempa, tempb = i.split(' ') - direction.append(tempa) - distance.append(tempb) - -for x in range(len(direction)): - if direction[x] == 'U': - - elif direction[x] == 'R': - elif direction[x] == 'D': - elif direction[x] == 'L': - \ No newline at end of file