auto install/update tools dependency
This commit is contained in:
parent
b5569d4063
commit
57a73a13f7
@ -3,7 +3,7 @@ import std/sequtils
|
||||
import tools/aoc
|
||||
|
||||
let test: AOCDay = initAOCDay(1)
|
||||
echo test.getInputInt().foldl(a + b)
|
||||
printSolution(1, 1, test.getInputInt().foldl(a + b))
|
||||
|
||||
var seen: IntSet = initIntSet()
|
||||
var freq: int = 0
|
||||
@ -14,6 +14,6 @@ while not found:
|
||||
if freq notin seen:
|
||||
seen.incl(freq)
|
||||
else:
|
||||
echo freq
|
||||
printSolution(1, 2, freq)
|
||||
found = true
|
||||
break
|
||||
|
||||
17
aoc2018.nimble
Normal file
17
aoc2018.nimble
Normal file
@ -0,0 +1,17 @@
|
||||
import std/os
|
||||
|
||||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
author = "Stefan Harmuth"
|
||||
description = "aoc2018"
|
||||
license = "GPL-3.0-or-later"
|
||||
srcDir = "."
|
||||
bin = @["aoc2018"]
|
||||
|
||||
|
||||
# Dependencies
|
||||
|
||||
rmDir(joinPath(getHomeDir(), "/.nimble/pkgs/tools-#head"))
|
||||
requires "nim >= 1.6.0"
|
||||
requires "ssh://git@leeloo.drock.de/nim-tools.git#head"
|
||||
1
aoc2018.nims
Normal file
1
aoc2018.nims
Normal file
@ -0,0 +1 @@
|
||||
switch("define", "release")
|
||||
Loading…
Reference in New Issue
Block a user