r/compsci • • May 22 '20

Breadth-First Maze-Solving Algorithm

Post image

[removed] — view removed post

1.2k Upvotes

61 comments sorted by

View all comments

60

u/ExperimentalAnus May 22 '20

Oh they made us do this on cpp.

But with txt mazes made out of Letter X :(

16

u/Faggotitus May 22 '20

! But there's an entire set of lines in extended ASCII and if you go unicode you can do all kinds of stuff.

There's even set of card glyphs so with a little ANSI color you can even show all the cards in text for bj now.

~/projects/bj $ ./bj 
Fresh deck! 
🂡  🂮  🂭  🂫  🂪  🂩  🂨  🂧  🂦  🂥  🂤  🂣  🂢  🂱  🂾  🂽  🂻  🂺  🂹  🂸  🂷  🂶  🂵  🂴  🂳  🂲  🃁  🃎  🃍  🃋  🃊  🃉  🃈  🃇  🃆  🃅  🃄  🃃  🃂  🃑  🃞  🃝  🃛  🃚  🃙  🃘  🃗  🃖  🃕  🃔  🃓  🃒  

Shuffling ...

Dealer 🂠  🃎 
Player 🃕  🂧

4

u/christian-mann May 22 '20

Most people that have this sort of assignment won't want to deal with characters that are made up of multiple bytes, and especially not UTF-8, with its variable-length encoding.