I need a program that can recognize a variety of cards (see image titled Card Selection Phase) and, then, automatically play a single card each turn based on a list of predefined list of variables; for example, if health is above a certain threshold (e.g., 800), a shield card will be played instead of a healing card (see image titled Health & Shield Example). However, when health is below the prescribed threshold, the program will play what's called a "healing card" (see image titled Healing Cards). If everything is above the specified thresholds/requirements, then the program will simply "pass" on that turn. In this game, there is a thirty second time limit for each turn (timer is located above card selection frame), and after each opponent selects a card, a short animated sequence occurs.
Other requirements for the program include:
Be able to monitor and regulate pip count according to specified minimum to play appropriate cards (see image titled Pip Count).
Be able to distinguish between playable and non-playable cards (see image titled Playable & Non-Playable).
Play a "Reshuffle" card when total card count is below the specified minimum threshold (see image titled Reshuffle & Minimum Threshold); moreover, program must be able to keep track of the number of reshuffles in deck and discard when necessary.