1 /*
2 * Copyright (C) 2002 Michael Maurer <mjmaurer@yahoo.com>
3 *
4 * This program gives you software freedom; you can copy, convey,
5 * propagate, redistribute and/or modify this program under the terms of
6 * the GNU General Public License (GPL) as published by the Free Software
7 * Foundation (FSF), either version 3 of the License, or (at your option)
8 * any later version of the GPL published by the FSF.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program in a file in the toplevel directory called "GPLv3".
17 * If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef __EVAL_JOKER_LOW8_H__
20 #define __EVAL_JOKER_LOW8_H__
21
22 #include "handval_low.h"
23 #include "deck_joker.h"
24 #include "inlines/eval_joker_low.h"
25
26 static inline LowHandVal
JokerDeck_Lowball8_EVAL(JokerDeck_CardMask cards,int n_cards)27 JokerDeck_Lowball8_EVAL(JokerDeck_CardMask cards, int n_cards) {
28 LowHandVal loval;
29 loval = JokerDeck_Lowball_EVAL(cards, n_cards);
30 if (loval <= LowHandVal_WORST_EIGHT)
31 return loval;
32 else
33 return LowHandVal_NOTHING;
34 }
35
36 #endif
37