eliot/game/gameio.h
Olivier Teulière b102aafbcd Support for 3 different game modes:
- 'Training' mode: same behaviour as before
  - 'Duplicate' mode: all the players (who can be human players or AI
    players) have the same rack, and the best word is played on the
    board
  - 'Free game' mode: the players (human or AI) have different racks,
    and they play one after another

Status:
  - Core: the main functions are written, but the API could be more
    homogeneous between the different modes.
  - Interfaces: the text interface is almost up-to-date, but the
    wxwindows one only supports Training mode.
  - AI: Currently, AI players always play the best word, which is
    optimal in Duplicate mode but not in FreeGame mode. Other strategies
    will be written in the future.
  - Handling of saved games is broken: a game can be saved and loaded,
    but no information about the mode and the players is stored, so it
    crashes whatever you do after loading the game.
2004-08-07 18:10:42 +00:00

47 lines
2 KiB
C

/* Eliot */
/* Copyright (C) 1999 Antoine Fraboulet */
/* antoine.fraboulet@free.fr */
/* */
/* 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 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 */
/* $Id: gameio.h,v 1.2 2004/08/07 18:10:42 ipkiss Exp $ */
#ifndef _GAMEIO_H
#define _GAMEIO_H
#if defined(__cplusplus)
extern "C" {
#endif
void Game_print_board(FILE*,Game);
void Game_print_board_joker(FILE*,Game);
void Game_print_board_point(FILE*,Game);
void Game_print_board_multipliers(FILE*,Game);
void Game_print_board_multipliers2(FILE*,Game);
void Game_print_nonplayed(FILE*,Game);
void Game_print_playedrack(FILE*,Game,int);
void Game_print_allracks(FILE*,Game);
void Game_print_searchresults(FILE*,Game,int);
void Game_print_points(FILE*,Game);
void Game_print_allpoints(FILE*,Game);
int Game_read_game(FILE*,Game);
void Game_print_game(FILE*,Game);
#if defined(__cplusplus)
}
#endif
#endif /* _GAME_H */