Present time

This commit is contained in:
Daniel Flanagan 2021-12-25 11:18:14 -06:00
parent 3785e23497
commit 6b00c07dae
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
1 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,18 @@
import ./common, std/[strutils, sequtils, tables, strformat, algorithm]
import ./common, std/[strutils, sequtils, tables, strformat, algorithm, hashes]
proc p1(input: Lines): uint64 =
0
var cukes = input
while cukes.hash != nextCukes.hash
var nextCukes = cukes
for y,line in cukes:
for x,c in cukes:
case c:
# don't forget to wrap
of '>': # TODO: check next x
of 'v': # TODO: check next y
else: continue
cukes = nextCukes
inc result
proc p2(input: Lines): uint64 =
0