Thanks! The project didn’t start with a clear design or established workflow. I began by implementing a custom mouse system, which led me to create a simple card framework for the mouse to interact with. To support more complex card interactions, I introduced a switch mechanic. To help with testing, I built an AI player, and during that process I realized the AI-driven gameplay could put a spin on the standard switch gameplay. At that point, I decided to add controller support and simulated the AI player’s behavior to enable AI move prediction to complement the gameplay.
The code is pretty terrible and I wouldn’t recommend copying much of it as there is a lot of issues with it. This was a one week project so the code quickly became just about getting it to work but I’ll drop the full verse code in the initial post, hopefully it can be a somewhat useful resource.