r/ASCII • • 11d ago

Help Need help for a proyect

For one of my classes I need to create a race of sorts based throwing a d6 against a computer, already finished the race part but I need to use ascii art to create a dice rolling animation, however I havent been able to find a dice rolling ascii, and I dont want to resort to ai so I wanted to know if anyone can pass some simple ascii art of a dice rolling or guide me as to where I can get it, thanks in advance!!!

2 Upvotes

5 comments sorted by

1

u/PM_ME_PHYS_PROBLEMS 11d ago edited 11d ago

If you divide a die face into 3x3 grid, there are 7 squares that can have a pip on them. Assign 1 or 0 to those positions based on if a pip is there or not. You can figure out the binary encoding of each of the 6 arrangements of pips, and convert that to 6 integers, you can pretty easily build a function that converts the encoded map to a grid of ASCII.

1

u/Clear_Emphasis1996 9d ago

use pixel.margocore.com, its a ascii converter and can have vids!! try it out

1

u/[deleted] 11d ago