Deck of cards #3072
TomJGooding
started this conversation in
Show and tell
Deck of cards
#3072
Replies: 1 comment 2 replies
-
NIce! You could build any number of card games with this. :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm still not sure this toy project is really worthy of sharing here, but I've been working on creating a deck of cards in the terminal.
This has been a fun challenge to implement in Textual, including dragging widgets with the mouse, stacking widgets using layers, and animating offsets.
[EDIT: I forgot to mention also differentiating a mouse click from a click-and-drag. I was caught out by this, so linking my fix in case it helps someone else]
I'm sure some of the code could be optimised, so any feedback would be much appreciated!
This project was inspired by usolitaire, which you should check out if you haven't already!
Beta Was this translation helpful? Give feedback.
All reactions