Add CLI option for two player game, and associated framework to hook it all together.
[sgk-go] / interface / interface.h
CommitLineData
7eeb782e
AT
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
2 * This is GNU Go, a Go program. Contact gnugo@gnu.org, or see *
3 * http://www.gnu.org/software/gnugo/ for more information. *
4 * *
5 * Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, *
6 * 2008 and 2009 by the Free Software Foundation. *
7 * *
8 * This program is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU General Public License as *
10 * published by the Free Software Foundation - version 3 or *
11 * (at your option) any later version. *
12 * *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License in file COPYING for more details. *
17 * *
18 * You should have received a copy of the GNU General Public *
19 * License along with this program; if not, write to the Free *
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
21 * Boston, MA 02111, USA. *
22\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
23
24/*-------------------------------------------------------------------------
25 * interface.h
26 * This file contains all headers for interfaces
27 *-------------------------------------------------------------------------*/
28
29#ifndef _PLAY_INTERFACE_H
30#define _PLAY_INTERFACE_H
31
3ebb0002
AT
32#include <stdbool.h>
33
7eeb782e
AT
34#include "gnugo.h"
35#include "sgftree.h"
36
c150f57c
AT
37void play_ascii(SGFTree* tree, Gameinfo* gameinfo,
38 char* filename, char* until);
3ebb0002
AT
39void play_ansi(SGFTree* tree, Gameinfo* gameinfo,
40 char* filename, char* until, bool strict);
de03db18
AT
41void play_twoplayer(SGFTree* tree, Gameinfo* gameinfo,
42 char* filename, char* until);
c150f57c
AT
43void play_gtp(FILE* gtp_input, FILE* gtp_output, FILE* gtp_dump_commands,
44 int gtp_initial_orientation);
45void play_gmp(Gameinfo* gameinfo, int simplified);
46void play_solo(Gameinfo* gameinfo, int benchmark);
47void play_replay(SGFTree* tree, int color_to_test);
48
49void load_and_analyze_sgf_file(Gameinfo* gameinfo);
50void load_and_score_sgf_file(SGFTree* tree, Gameinfo* gameinfo,
51 const char* scoringmode);
7eeb782e
AT
52
53#endif
54
7eeb782e
AT
55/*
56 * Local Variables:
c150f57c
AT
57 * tab-width: 4
58 * c-basic-offset: 4
7eeb782e
AT
59 * End:
60 */