> Everybody seems to be advocating a database-based approach. > I wouldn't try to assign a value to each hand at all, you > need a function that compares hands similar to the way humans do.
Or, you could consider using a rule engine, which is designed to solve this sort of problem. The only Java-based rule engine I'm familiar with is JESS: http://www.jessrules.com/jess/index.shtml However, a quick Google search found a specific rule engine for poker, written in Python: http://directory.fsf.org/poker-engine.html Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259632 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

