Fully functional, real deck engine How it is supposed to work: -Uses 3 lists, current hand, discard pile and draw pile. -When it starts it puts all cards in a random order into the draw pile, then it draws the top three. -When you use or discard a card it puts it into the 1st spot of the discard pile list When it senses 0 draw cards left, it shuffles your discard into the draw NOTE: Technically the engine can run without the discard because when it runs out of cards in the deck it just deletes all discard and shuffles a new deck
All by me Some bug fixes with help from ChatGPT by OpenAI If you want to use you must give credit