i'm playing with xcode to create a poker hand analizer. I've used the specialK hand evaluator. after included the evaluator in my project i've detached two threads ( with 125k cycles each ) to attempt to run monte carlo simulation in order to check percentage of winning for each player... my problem is that 125k x 2 cycles takes about 40 seconds to run on an iphone 4. does anyone have any suggestions ?

有帮助吗?

解决方案

Have you tried comparing the percentages derived from runs at 125K simulations versus those derived from smaller runs, say 5K or 10K? It's possible the percentages converge closely enough for practical purposes.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top