Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,537 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,525 people online right now. Registration is fast and FREE... Join Now!




NEED HELP ON MANCALA PROGRAM

 
Reply to this topicStart new topic

NEED HELP ON MANCALA PROGRAM, MANCALA

heyyou
23 Nov, 2007 - 04:39 PM
Post #1

New D.I.C Head
*

Joined: 23 Nov, 2007
Posts: 3


My Contributions
I need help on a program making mancala the game using these
functions

CODE

#include<iostream>
#include<iomanip>
using namespace std;

#define BOARDSIZE 14           // total number of slots on board
#define STARTCOUNT 7           // # of pieces to start in each slot
#define SIDE (BOARDSIZE/2-1)   // # of slots on one side (not incl.  store)
#define HUMAN (BOARDSIZE/2)    // position of user's store
#define COMPUTER BOARDSIZE     // position of computer's store
#define true 1
#define false 0
//typedef int bool;

//----------------------------------------
int computerChoice(int board[], int level);
/*----------------------------------------
Returns:
  position in the board array at which its turn should begin
Parameters:
  board: a valid board with dimensions and values as specified by
         the constants above (there is no attempt by this function
     to determine whether or not the board is valid ... in
     other words, if you give it an invalid board, it might
     just crash!)
  level: a value from 0 to 6 (values outside the proper range will
         be adjusted to the nearest valid value)
*/



//----------------------------------------
void displayBoard(int board[]);
/*----------------------------------------
Returns:
  nothing; displays the current state of the board
Parameters:
  board: a valid board with dimensions and values as specified by
         the constants above
*/



how do i do that?
if you cant help can you tell me of a website i could use
User is offlineProfile CardPM
+Quote Post

heyyou
RE: NEED HELP ON MANCALA PROGRAM
24 Nov, 2007 - 05:07 PM
Post #2

New D.I.C Head
*

Joined: 23 Nov, 2007
Posts: 3


My Contributions
aa
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: NEED HELP ON MANCALA PROGRAM
24 Nov, 2007 - 05:19 PM
Post #3

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,868



Thanked: 53 times
Dream Kudos: 550
My Contributions
First off please see the forum rules.

we can help you figure out problems, but we don't do peoples homework.

As for where else you can look... well based upon what you posted, I can only assume that you know nothing about C/C++ and should begin with basic tutorials. Might try reading your text book???

The name "mancala" describes a family of games played around the world. Since this site has many users from all over the world, you could end up with 10 different versions of the game.

help us, help you... take a stab at it, then show us what you have, and maybe we can help you figure it out.
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/7/09 09:13PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month