22b05ad117de9789e6d7eb92b8196c2fd2fd78b4
[mancala] / src / play.h
1 /*
2 *  for Maemo renamed to play.h and adapted (2009, Reto Zingg)
3 *
4 *  Main Mancala Program Module Header -- main.h 
5 *  $Id: main.h,v 1.1.2.8 2004/01/16 20:49:30 sparrow_hawk Exp $
6 *
7 *  Copyright (C) 2003 Kevin Riggle 
8 *  http://cmancala.sourcefoge.net
9 *
10 *  This program is free software; you can redistribute it and/or modify it
11 *  under the terms of the GNU General Public License as published by the
12 *  Free Software Foundation; either version 2, or (at your option) any
13 *  later version.
14 *
15 *  This program is distributed in the hope that it will be useful, but
16 *  WITHOUT ANY WARRANTY; without even the implied warranty of
17 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 *  General Public License for more details, a copy of which may be found in
19 *  the file COPYING provided in the main directory of this release.
20 *
21 */
22
23 /* path to resource files */
24 #define RES_PATH "/usr/share/pixmaps/mancala"
25 #define FONT_PATH "/usr/share/fonts/"
26
27 /* various constants */
28 #define STRING_MAX 1000
29 #define STONE_MAX 10
30 #define DELAY_MAX 1
31 #define DELAY_AI 3000
32
33 /* font sizes */
34 #define TITLE_SIZE 75
35 #define HOME_SIZE 50
36 #define BOARD_SIZE 35
37
38 #define HMN_WAIT 1
39 #define HMN_MOVE 2
40 #define CMP_WAIT 3
41 #define CMP_MOVE 4
42 #define GAME_WON 0
43
44 #define Y_OFFSET 70
45
46 extern int play();
47