r/adventofcode • u/mrHtheGreat • Dec 02 '22
Visualization [2022 Day 2 Part 1][Nim] Using Emojis to Visualize all games of Rock-Paper-Scissors in Nim
95
Upvotes
r/adventofcode • u/mrHtheGreat • Dec 02 '22
4
u/mrHtheGreat Dec 02 '22
This animation was done in Nim using p5nim, a P5.js wrapper. You can view the animation yourself here and also view the source code by clicking "Show source" at the bottom.
This animation shows all 2500 games (according to Part 1) that was in the input file using emojis. It starts off with both players getting ready to play (hands are still), then they start shaking their hands and reveal their choice. The left one is the elfs choice and the right one is your choice. After the game an emoji will show the result of the game, a green checkbox means you won that match, a dash means it was a draw and a red cross means you lost.
4
u/daggerdragon Dec 03 '22
This is one ☝️ of the very few 🤏 acceptable ✔️ uses of emoji 😤.
Good job 👍 on the
Visualization👀!2
u/JollyGreenVampire Dec 02 '22
Awsome
Processing + Nim sounds like a dream.
3
u/cafecl0pe Dec 02 '22
Man, people are awesome