init
This commit is contained in:
@@ -8,22 +8,26 @@ from helpingFunctions import *
|
||||
|
||||
setSampleMode(False)
|
||||
|
||||
gameScoreA=0
|
||||
gameScoreB=0
|
||||
|
||||
aocDay = identifyDay(sys.argv[0])
|
||||
aocYear = identifyYear(sys.argv[0])
|
||||
|
||||
path = getPath2Data(aocDay)
|
||||
path = getPath2Data(aocDay,aocYear)
|
||||
filename = getFilename2Data(aocDay)
|
||||
|
||||
def taskA (data) -> int:
|
||||
gameScoreA = 0
|
||||
return gameScoreA
|
||||
|
||||
def taskB (data) -> int:
|
||||
gameScoreB = 0
|
||||
return gameScoreB
|
||||
|
||||
def task(task: int,data) -> int:
|
||||
score=0
|
||||
if task == 1:
|
||||
global gameScoreA
|
||||
score = gameScoreA
|
||||
score = taskA(data)
|
||||
elif task == 2:
|
||||
global gameScoreB
|
||||
score = gameScoreB
|
||||
score = taskB(data)
|
||||
return score
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user