Draw a card from your hand like in Legends of Runeterra mobile version
I played a bit with Phaser drag listeners and I managed to create something similar in HTML5.
Emanuele Feronato's blog
State pattern for changing AI and player control in Phaser 3
Use this design pattern to write better code when player or AI control can be swapped.
Tommy Leung at Ourcade
Color2k - a color parsing and manipulation lib served in 2kB or less
AskQL - a query language that can express every data request
A Look at the JavaScript Module Pattern
Use the JavaScript Module pattern to define public/private methods and encapsulate functionality.