How would you program a game of go fish?

I'm trying to figure out if it'd be too complicated to put into a simple game-- also not really sure how id do it! I've seen a thread on making a deck of cards, and I've seen a thread on making a poker game but they both seem to be dated.


Making a deck of cards shouldn't be difficult; I know there's been a post about it before, and simple tasks don't really change.
I'm not familiar with that particular game, but if you can translate the rules into a list of who does what and in what order, it's usually pretty trivial to turn that into a program.

The hardest part is probably working out what NPCs will do; but if you can clearly describe your strategy, that's something else that could easily be converted into code.


"Go Fish" or "Call Fish" is a simple card game where each player has 7 cards, you ask another player if they have a card that matches one in your hand, if they do, you combine the matching card with yours and put your matching set down. If they don't have it, you "go fish", aka draw another card from the pile. The object of the game is to run out of cards before the other players.

I'll look at the post about making a deck again! i'm just new to all of this currently so i was wondering if someone had some ideas/ had already done it.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums