Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Help in card game (http://www.go4expert.com/forums/help-card-game-t4018/)

cvirus 25Apr2007 18:43

Help in card game
Hello, Im needing help for a program that Im going to do.

The program is a card game and we must have 40 cards, and all the cards must be hiden when the player chose de position of the card she must apear so that he contin. to play and if the player do a sequence all that cards go away and the player 2 plays.

Any ideas? Please

cvirus 27Apr2007 18:31

Re: Help in card game

#include <iostream.h>
#define altura 10
#define largura 4

int main()
    int i,j,pares=0;
    int jogo [altura][largura];
    for (j=1;j<=largura;j++)
    for (i=1;i<=altura;i++)


I have started like this, now i have to put 20 pares of 1,2,3 etc, behind the [X] and when the player chose the coordenates the [x] turns and shows the number behind.

All times are GMT +5.5. The time now is 02:20.