Use the single line characters in its trail #5

Closed
opened 2023-11-23 22:40:07 +01:00 by sacha · 1 comment
Owner

Ref: https://gist.github.com/dsample/79a97f38bf956f37a0f99ace9df367b9

Iterate through snake.tail and give every segment its own character... Or depending on the keypress give it sign. 🤔

ASCII code 191 = ┐ ( Box drawing character single line upper right corner )
ASCII code 192 = └ ( Box drawing character single line lower left corner )
ASCII code 196 = ─ ( Box drawing character single horizontal line )
ASCII code 217 = ┘ ( Box drawing character single line lower right corner )
ASCII code 218 = ┌ ( Box drawing character single line upper left corner )
ASCII code 179 = │ ( Box drawing character single vertical line )
Ref: https://gist.github.com/dsample/79a97f38bf956f37a0f99ace9df367b9 Iterate through `snake.tail` and give every segment its own character... Or depending on the keypress give it sign. 🤔 ASCII code 191 = ┐ ( Box drawing character single line upper right corner ) ASCII code 192 = └ ( Box drawing character single line lower left corner ) ASCII code 196 = ─ ( Box drawing character single horizontal line ) ASCII code 217 = ┘ ( Box drawing character single line lower right corner ) ASCII code 218 = ┌ ( Box drawing character single line upper left corner ) ASCII code 179 = │ ( Box drawing character single vertical line )
sacha referenced this issue from a commit 2023-11-24 21:38:50 +01:00
Author
Owner

Screenshot_2023-11-24_21-41-30.png

Its great. :-)

![Screenshot_2023-11-24_21-41-30.png](/attachments/1b3b76d2-a416-4e70-a4fe-c38a4d298fcb) Its great. :-)
sacha closed this issue 2023-11-24 21:42:01 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: golang/snake#5
No description provided.