View Full Version : Gaming

08-19-2005, 08:57 PM
Does anyone know of a tutorial for writing gaming programs such as poker? I need the code for dealing. Would this be like a random program command? How would you set the limits (cards in each suite)?

08-19-2005, 09:10 PM
Poker is one very complex game to try and code. Not least of which is that you will either require Artifical Intelligence if the opponent is the computer, or a centralised gaming engine for multiplayer games - JavaScript is client-side and therefore any "card action" only takes place on one user's computer.

So you would need a change of environment - a server-side application or a downloadable executable that all reference the same gaming server. Appropriate languages would include, but not limited to, Java, C++, maybe even Visual Basic.

Logic is the same for dealing cards, but syntax is different for each language.

Best policy is to learn a language and a technology pretty well before embarking on a project such as this. I would suggest downloading some poker apps and working out how they work, figure out what language they are written in and go from there.

Hope this helps.


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum