/**********************************************************************
 *
 *   FreeDoko a Doppelkopf-Game
 *    
 *   Copyright (C) 2001-2003  by Diether Knof and Borg Enders
 *
 *   This program 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 2 of 
 *   the License, or (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details. 
 *   You can find this license in the file 'gpl.txt'.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 *   MA  02111-1307  USA
 *
 *  Contact:
 *    Diether Knof dknof@gmx.de
 *    Borg Enders  borg@borgsoft.de
 *
 *********************************************************************/ 

#ifndef CLASS_HEURISTICS_HEADER
#define CLASS_HEURISTICS_HEADER

#include "../../card/card.h"
class Trick;
class Hand;
class HeuristicInterface;
class Game;

class Heuristics {
  public:

    static Card choose_ace(Trick const& trick,
			   HeuristicInterface const& hi);
    static Card choose_for_color_trick(Trick const& trick,
				       HeuristicInterface const& hi);
    static Card choose_pfund(Trick const& trick,
			     HeuristicInterface const& hi);
    static Card best_winning_card(Trick const& trick,
				  HeuristicInterface const& hi, 
				  unsigned pointmodi = 0 );
    static Card jab_for_ace(Trick const& trick,
			    HeuristicInterface const& hi);
    static Card create_fehl(Trick const& trick,
			    HeuristicInterface const& hi);
    static Card play_low_high(Trick const& trick,
			      HeuristicInterface const& hi);
    static Card play_for_team(Trick const& trick,
			      HeuristicInterface const& hi);
    static Card jab_fox(Trick const& trick,
			HeuristicInterface const& hi);
    static Card SecondBestTrump(HeuristicInterface const& hi);  
    static Card play_highest_color(Trick const& trick,
				   HeuristicInterface const& hi,
				   Card::Color const co);
    static bool make_announcement(HeuristicInterface const& hi,
				  Game const& game);
    static bool say_no90(HeuristicInterface const& hi ,
			 Game const& game);
    static bool say_no60(HeuristicInterface const& hi ,
			 Game const& game);
    static bool say_no30(HeuristicInterface const& hi ,
			 Game const& game);
    static bool say_no0(HeuristicInterface const& hi ,
			Game const& game);
    static int CalcHandValue(HeuristicInterface const& hi,
			     Game const& game);
  private:
    static Card choose_pfund_card(Trick const& trick,
				  HeuristicInterface const& hi);
    static Card lowest_best_trump_card(Trick const& trick,
				       Hand const& hand,
				       HeuristicInterface const& hi);
	static Card Heuristics::best_winning_card_single_picture(Trick const& t, 
	  Card::Value v, HeuristicInterface const& hi, unsigned pointmodi );
	static Card Heuristics::best_winning_card_triple_picture(Trick const& t, HeuristicInterface const& hi, unsigned pointmodi )
	;
	static Card Heuristics::best_winning_card_double_picture(Trick const& t, Card::Value v1, Card::Value v2, HeuristicInterface const& hi, unsigned pointmodi )
	;

}; // class Heuristics

#endif // #ifndef CLASS_HEURISTICS_HEADER
