// This file is part of Timmi. // // Timmi is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. #ifndef SIMPLEAI_HH #define SIMPLEAI_HH #include class TimmiAI: public TimmiClient { public: TimmiAI(std::string name = "AI"); // Handle lines, call turn_* void mainloop(); // Handle hitting cards // Default implementation hits the worst card in hand virtual void turn_hit(); // Handle beating cards // Default implementation tries to beat and picks if can't be beaten // TODO: Moving - would need a way to check if next player has enough cards virtual void turn_beat(); // Handle adding cards // Default implementation adds cards, but trump cards only if deck is empty virtual void turn_add(); }; #endif