Recommended Posts

How i can calcucate best poker hand if i mine script save card numbers and countrys in .ini file. ? i m so poor in math so i dont wanna trie. first i ask here. if no1 help i m sad Edited by fataly

Share on other sites

What is the "best" card? I've never played poker. Maybe if you give more details we can help you.

Share on other sites

i mean this:

First:

while 1

_waituntilflop()

_calculatebesthand()

if _notgoodhand then

_fold()

endif

if _raise then

_raise5()

elseif not _raise then

_check()

endif

wend

I got func and these working. now i want that _calculatebesthand() func.... but dont know how to make

Share on other sites

Yes, but which is the best card?! I don't know poker. And how does _readcards function stores the cards.

Share on other sites

spade = "xS" (black)

Cross = "xc" (black)

Heart = "xh" (Red)

Other red card dont remeber name = "xd" (red)

aces are best i thing. and 2 are lowest.

in game there are :

onepair

twopair

threekind

fourkind

fullhouse

straight

flush

and i thing these can check with this:

Func _findyourhand()
If _checkflush() = 1 And _checkstraight() = 1 And \$c = "10" Then
\$handrecords += 1
\$d & " " & \$d & \$d)
ElseIf _checkflush() = 1 And _checkstraight() = 1 Then
\$handrecords += 1
ElseIf _checkfourkind() = 1 Then
\$handrecords += 1
ElseIf _checkfullhouse() = 1 Then
\$handrecords += 1
ElseIf _checkflush() = 1 Then
\$handrecords += 1
ElseIf _checkstraight() = 1 Then
\$handrecords += 1
ElseIf _checkthreekind() = 1 Then
\$handrecords += 1
ElseIf _checktwopair() = 1 Then
\$handrecords += 1
ElseIf _onepair() = 1 Then
\$handrecords += 1
ElseIf _highcard() = 1 Then
\$handrecords += 1
EndIf
EndFunc

\$cgen = "2s"

\$cgen = "2c"

\$cgen = "2h"

\$cgen = "2d"

\$cgen = "3s"

\$cgen = "3c"

\$cgen = "3h"

\$cgen = "3d"

\$cgen = "4s"

\$cgen = "4c"

\$cgen = "4h"

\$cgen = "4d"

\$cgen = "5s"

\$cgen = "5c"

\$cgen = "5h"

\$cgen = "5d"

\$cgen = "6s"

\$cgen = "6c"

\$cgen = "6h"

\$cgen = "6d"

\$cgen = "7s"

\$cgen = "7c"

\$cgen = "7h"

\$cgen = "7d"

\$cgen = "8s"

\$cgen = "8c"

\$cgen = "8h"

\$cgen = "8d"

\$cgen = "9s"

\$cgen = "9c"

\$cgen = "9h"

\$cgen = "9d"

\$cgen = "Ts"

\$cgen = "Tc"

\$cgen = "Th"

\$cgen = "Td"

\$cgen = "Js"

\$cgen = "Jc"

\$cgen = "Jh"

\$cgen = "Jd"

\$cgen = "Qs"

\$cgen = "Qc"

\$cgen = "Qh"

\$cgen = "Qd"

\$cgen = "Ks"

\$cgen = "Kc"

\$cgen = "Kh"

\$cgen = "Kd"

\$cgen = "As" ace of spade

\$cgen = "Ac" ace of cross

\$cgen = "Ah" ace of heart

\$cgen = "Ad" ace of ?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account