Skip to content

Commit 23c4499

Browse files
committed
2022/Day 02
1 parent 81fff94 commit 23c4499

File tree

1 file changed

+3
-6
lines changed
  • src/main/kotlin/me/grison/aoc/y2022

1 file changed

+3
-6
lines changed

src/main/kotlin/me/grison/aoc/y2022/Day02.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ class Day02 : Day(2, 2022) {
2525
).withDefault { 0 }
2626

2727
private val roundEnding = mapOf(
28-
// lose
29-
"A X" to 'Z' /* 🗿⤑✂️ */, "B X" to 'X' /* 📜⤑✂️ */, "C X" to 'Y' /* ✂️⤑📜 */,
30-
// draw
31-
"A Y" to 'X' /* 🗿⤑🗿 */, "B Y" to 'Y' /* 📜⤑📜 */, "C Y" to 'Z' /* ✂️⤑✂️ */,
32-
// win
33-
"A Z" to 'Y' /* 🗿⤑📜 */, "B Z" to 'Z' /* 📜⤑✂️ */, "C Z" to 'X' /* ✂️⤑🗿 */
28+
"A X" to 'Z' /* 🗿⤑✂️ */, "B X" to 'X' /* 📜⤑✂️ */, "C X" to 'Y' /* ✂️⤑📜 */, // lose
29+
"A Y" to 'X' /* 🗿⤑🗿 */, "B Y" to 'Y' /* 📜⤑📜 */, "C Y" to 'Z' /* ✂️⤑✂️ */, // draw
30+
"A Z" to 'Y' /* 🗿⤑📜 */, "B Z" to 'Z' /* 📜⤑✂️ */, "C Z" to 'X' /* ✂️⤑🗿 */ // win/
3431
)
3532
}

0 commit comments

Comments
 (0)