/* * Copyright 2006 Michael Maurer , * Brian Goetz , * Loic Dachary , * Tim Showalter * * This package 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; version 2 dated June, 1991. * * This package 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 should have received a copy of the GNU General Public License * along with this package; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301, USA. */ #include #include "poker_defs.h" #include "deck_astud.h" #include "mktable.h" #define ACM_COMMENT_STRING \ "AStudDeck_cardMasks[]. Maps card indices (0..32) to CardMasks. \n" \ "The output mask has only one bit set, the bit corresponding to the card\n" \ "identified by the index." #define ACM_FILENAME "t_astudcardmasks" static void doCardMaskTable(void) { StdDeck_CardMask c; int i; MakeTable_begin("AStudDeck_cardMasksTable", ACM_FILENAME, "AStudDeck_CardMask", AStudDeck_N_CARDS); MakeTable_comment(ACM_COMMENT_STRING); MakeTable_extraCode("#include \"deck_astud.h\""); for (i=0; i