root/gemmes.h
| Revision 106, 1.9 kB (checked in by ng, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | /*************************************************************************** |
| 2 | * This file is part of the 'gemmes' project * |
| 3 | * * |
| 4 | * * |
| 5 | * Copyright (C) 2007 by * |
| 6 | * GARCH Soufiane * |
| 7 | * GUILLAUME Nicolas <ng@ngsoft-fr.com> * |
| 8 | * * |
| 9 | * * |
| 10 | * This program is free software; you can redistribute it and/or modify * |
| 11 | * it under the terms of the GNU General Public License as published by * |
| 12 | * the Free Software Foundation; version 2 of the License only. * |
| 13 | * See the COPYING file. * |
| 14 | ***************************************************************************/ |
| 15 | |
| 16 | |
| 17 | |
| 18 | #ifndef GEMMES_H |
| 19 | #define GEMMES_H |
| 20 | |
| 21 | #include "board.h" |
| 22 | |
| 23 | /* Nombre d'essai maximum lors de la création d'un plateau */ |
| 24 | #define MAX_TRY_COUNT 100 |
| 25 | |
| 26 | /* demarre un nouveau jeu |
| 27 | * nlines : nombre de ligne (y) |
| 28 | * nrows : nombre de colonnes (x) |
| 29 | * ngemmes : nombre de gemmes |
| 30 | * s : chaine aléatoire, peut être NULL |
| 31 | * silent : si non nul, seul la commande dump affichera qqch |
| 32 | */ |
| 33 | void gemmes_start_loop(int nlines, int nrows, int ngemmes, char * s, int silent); |
| 34 | |
| 35 | |
| 36 | /* demarre un nouveau jeu avec les options par defaut */ |
| 37 | #define gemmes_start_loop_defaut() gemmes_start_loop(8, 8, 7, NULL, 0) |
| 38 | |
| 39 | |
| 40 | /* start ihm, can be the cli, the sdl gui...*/ |
| 41 | void gemmes_start_ihm(board_t b); |
| 42 | |
| 43 | void gemmes_dump(board_t b); |
| 44 | |
| 45 | /* Autoplay */ |
| 46 | void gemmes_autoplay(board_t b); |
| 47 | |
| 48 | /* Autoplay & create a test file on stdout */ |
| 49 | void gemmes_autoplay_createtest(board_t b); |
| 50 | |
| 51 | #endif |
Note: See TracBrowser for help on using the browser.
