Skip to content

Commit

Permalink
Update Aoc1802.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo authored Sep 20, 2023
1 parent 7e1bccd commit 7f6d768
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/includes/Aoc1802.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ const special3 = "🟡"
const special2 = "🔵"

var Aoc1802 = () => {

const [lines, setLines] = useState<string[]>([])
const [lines23, setLines23] = useState<string[]>([])
const [p1, setP1] = useState<number>(0)
const [p2, setP2] = useState<string>("")

const handleData = async () => {

try {
const raws = await FetchData(URL)
setLines(raws)
Expand All @@ -22,6 +24,7 @@ var Aoc1802 = () => {
}

const Solver_Part_One = () => {

let c2: number = 0
let c3: number = 0
let tempLines23: string[] = []
Expand Down Expand Up @@ -64,6 +67,7 @@ var Aoc1802 = () => {
}

const Solver_Part_Two = () => {

let i: number = -1
let len: number = lines.length > 0 ? lines[0].length : 0
let res2: string = ""
Expand Down

0 comments on commit 7f6d768

Please sign in to comment.