~ubuntu-branches/ubuntu/intrepid/mancala/intrepid

« back to all changes in this revision

Viewing changes to mancala.c

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2007-08-19 13:56:48 UTC
  • mfrom: (4.1.1 gutsy)
  • Revision ID: james.westby@ubuntu.com-20070819135648-6cxhiv8yz9z75wo3
Tags: 1.0.1-2
* Lets join the Debian Games team !
* Honour nostrip: prevent stripping by overriding LDOPT (Closes: #437587)
* Improve the manual page by fixing hyphens and linking to Wikipedia

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: mancala.c,v 1.1.1.1 1995/07/25 11:55:21 sverrehu Exp $ */
 
1
/* $Id: mancala.c,v 1.2 2007-06-13 18:29:52 sverrehu Exp $ */
2
2
/**************************************************************************
3
3
 *
4
4
 *  FILE            mancala.c
208
208
 *
209
209
 *  FUNCTION      Set up variables for a new game.
210
210
 */
211
 
void initGame(void)
 
211
void initGame(int stones_pr_hole)
212
212
{
213
213
    int    q, w;
214
214
    Board  *b;
238
238
    for (player = 0; player < 2; player++) {
239
239
        b->mancala[player] = 0;
240
240
        for (w = 0; w < MAX_HOLES; w++)
241
 
            b->hole[player][w] = STONES_PR_HOLE;
 
241
            b->hole[player][w] = stones_pr_hole;
242
242
    }
243
243
}
244
244