i,m just working on a game project that it’s a board game in c++ .
the players have their own cards to play and if they want play a card they need to enter card’s name or they can pass their turn and at the same time they can enter “help” or “help <card’s name>” and i have a problem here how to program second command i mean if player enter help all information will be shown but when he/she enter help with a card’s name only the part that it’s related to the given card will be shown
i just tried to write a function called help with a parameter and in main game flow when i enter help this function will be called and i get another word as input in this function but if i do that entering “help” with no other word won’t work .
i just need a better idea .
1