Terms & Conditions

Internet Magazine

Non–US new players
Get five 2+2 books

Order Books
Book Translations

Expand All   Collapse All

Forum Archives

## The 2+2 Forums

Be sure to read the   Two Plus Two Internet Magazine

This is an archive. The main forums are here

 You are not logged in. [Login] Main Index · Search · Classified Ads New user · Who's Online · FAQ · Calendar

Internet Gambling >> Software
 Previous Index Next Flat

_D&L_
member

Reged: 05/11/06
Posts: 128
279Mill a second.....
12/27/06 08:52 PM

Made some adjustments to my code, am currently getting 279 Million games per second. Although I still think your algorithm may have greater potential (possibly if I can combine it with mine).

Still not ready to share my algorithm...but i'll provide the following sketch of it...i ommitted some parts, changed descriptive names, etc...so that it can't just be copied (at least not easily).

As you can see its speed is primarily due to being able to solve for many hands in one lookup, skipping to more complex analysis as needed. Whether more complex analysis is needed is also determined by a lookup table.

For c1 = 1 To 46
nFTR(1) = CN(c1)
For c2 = c1 + 1 To 47
nFTR(2) = CN(c2)
For c3 = c2 + 1 To 48
nFTR(3) = CN(c3)
For c4 = c3 + 1 To 49
nFTR(4) = CN(c4)
For c5 = c4 + 1 To 50
nFTR(5) = CN(c5)

rec_number = vRec_Num(non-lexographic indexing algorithm...nftr 1 through 5 as input)

With vType(nftr(1 through 5) as input)

If .Type = 0 Then

For c6 = c5 + 1 To 51
For c7 = c6 + 1 To 52

rank = DW_Array(rec_number + sub_index(c6,c7))

' Select Case rank
' Case 0 To 3000
' h1 = h1 + 1
' Case 3001 To 7000
' h2 = h2 + 1
' Case 7001 To 9000
' h3 = h3 + 1
' Case 9001 To 11000
' h4 = h4 + 1
' Case 11001 To 12000
' h5 = h5 + 1
' Case 12001 To 15000
' h6 = h6 + 1
' Case 15001 To 16000
' h7 = h7 + 1
' Case 16001 To 17000
' h8 = h8 + 1
' Case Else
' h9 = h9 + 1
' End Select

Next c7
Next c6

Else

...omitted...

For c6 = c5 + 1 To 51
For c7 = c6 + 1 To 52

vType = .Type
vnumber = .tnumber

If SN(c6) = vType Then vnumber = vnumber + 1: adjust(vnumber) = CN(c6)
If SN(c7) = vType Then vnumber = vnumber + 1: adjust(vnumber) = CN(c7)

Select Case vnumber
Case Is condition1
rank = DW_Array(rec_number + cindex(c6, c7))
Case condition2
rank = SW_Array(Rec_number2 (another non-lexographic indexing algorithm) * XX)
Case condition3
rank = SW_Array(Rec_number2 * XX + fn1(adjust(6)))
Case Else
rank = SW_Array(Rec_number2 * XX + cindex(c6, c7))
End Select

' Select Case rank
' Case 0 To 3000
' h1 = h1 + 1
' Case 3001 To 7000
' h2 = h2 + 1
' Case 7001 To 9000
' h3 = h3 + 1
' Case 9001 To 11000
' h4 = h4 + 1
' Case 11001 To 12000
' h5 = h5 + 1
' Case 12001 To 15000
' h6 = h6 + 1
' Case 15001 To 16000
' h7 = h7 + 1
' Case 16001 To 17000
' h8 = h8 + 1
' Case Else
' h9 = h9 + 1
' End Select

Next c7
Next c6

End If
End With

Next c5
Next c4
Next c3
Next c2
Next c1

'dump counters

'Output.Text = h1 & vbNewLine & h2 & vbNewLine & h3 & vbNewLine & h4 & vbNewLine & h5 & vbNewLine & h6 & vbNewLine & h7 & vbNewLine & h8 & vbNewLine & h9 &
vbNewLine

 Post Extras

 Entire topic Subject Posted by Posted on 7 Card Hand Evaluators Gullanian 12/21/06 02:27 PM Re: 7 Card Hand Evaluators theblitz 02/14/07 02:54 AM Re: 7 Card Hand Evaluators Gullanian 02/15/07 03:57 AM Re: 7 Card Hand Evaluators Grunch 01/17/07 12:30 PM Re: 7 Card Hand Evaluators Grunch 01/17/07 12:42 PM Re: 7 Card Hand Evaluators Smelly Cat 01/07/07 07:44 PM Re: 7 Card Hand Evaluators Gullanian 01/08/07 05:38 AM Re: 7 Card Hand Evaluators Mogobu The Fool 01/14/07 12:26 PM Re: 7 Card Hand Evaluators mark007 01/08/07 03:04 PM Re: 7 Card Hand Evaluators darse 01/09/07 07:41 PM Re: 7 Card Hand Evaluators mark007 01/10/07 11:57 AM Re: 7 Card Hand Evaluators RayW 01/10/07 12:45 PM Re: 7 Card Hand Evaluators mark007 01/10/07 12:58 PM Re: 7 Card Hand Evaluators RayW 01/10/07 04:47 PM Re: 7 Card Hand Evaluators mark007 01/10/07 05:21 PM Re: 7 Card Hand Evaluators mark007 01/10/07 09:21 PM Lexographical Algorithm _D&L_ 12/28/06 10:15 AM Re: 7 Card Hand Evaluators _D&L_ 12/21/06 04:43 PM Re: 7 Card Hand Evaluators Phil153 12/24/06 02:15 AM Re: 7 Card Hand Evaluators _D&L_ 12/24/06 03:16 AM Re: 7 Card Hand Evaluators jukofyork 12/24/06 02:07 PM Re: 7 Card Hand Evaluators Phil153 12/24/06 08:50 PM Re: 7 Card Hand Evaluators Gullanian 12/25/06 09:38 PM Re: 7 Card Hand Evaluators mykey1961 12/27/06 01:32 PM Re: 7 Card Hand Evaluators jukofyork 12/27/06 01:52 PM Re: 7 Card Hand Evaluators A.Nironen 12/27/06 06:19 PM Re: 7 Card Hand Evaluators mykey1961 12/27/06 03:18 PM Re: 7 Card Hand Evaluators _D&L_ 12/29/06 10:17 AM Re: 7 Card Hand Evaluators mykey1961 12/29/06 12:35 PM Which is the best packed/unpacked so far? jukofyork 12/29/06 03:23 AM Re: Which is the best packed/unpacked so far? Gullanian 12/29/06 10:12 AM Re: Which is the best packed/unpacked so far? jukofyork 12/29/06 05:17 PM Re: Which is the best packed/unpacked so far? Mogobu The Fool 12/30/06 11:22 AM Re: Which is the best packed/unpacked so far? jukofyork 01/02/07 07:24 AM Re: Which is the best packed/unpacked so far? jukofyork 01/02/07 07:45 AM Re: Which is the best packed/unpacked so far? Steve Brecher 01/02/07 10:41 AM Re: Which is the best packed/unpacked so far? jukofyork 01/03/07 06:43 AM Re: Which is the best packed/unpacked so far? mykey1961 12/30/06 02:21 PM Re: Which is the best packed/unpacked so far? Mogobu The Fool 12/31/06 01:43 PM Re: Which is the best packed/unpacked so far? Gullanian 12/29/06 10:13 AM 279Mill a second..... _D&L_ 12/27/06 08:52 PM Re: 279Mill a second..... Andrew Prock 12/28/06 02:07 AM Re: 279Mill a second..... _D&L_ 12/28/06 06:31 AM Re: 279Mill a second..... Andrew Prock 12/28/06 10:02 AM Re: 279Mill a second..... mykey1961 12/28/06 02:02 PM Re: 279Mill a second..... Gullanian 12/28/06 02:15 PM Re: 279Mill a second..... _D&L_ 12/28/06 07:49 PM Re: 279Mill a second..... A.Nironen 12/29/06 01:07 AM Re: 279Mill a second..... jukofyork 12/28/06 05:25 PM Re: 279Mill a second..... jukofyork 12/28/06 06:51 PM Re: 279Mill a second..... mykey1961 12/28/06 03:54 PM Re: 279Mill a second..... Andrew Prock 12/28/06 03:54 PM Re: 279Mill a second..... mykey1961 12/28/06 04:16 PM Re: 279Mill a second..... Gullanian 12/28/06 05:04 PM Re: 279Mill a second..... Gullanian 12/28/06 02:17 PM Re: 279Mill a second..... Gullanian 12/28/06 02:30 PM Re: 279Mill a second..... Gullanian 12/28/06 03:30 PM Re: 279Mill a second..... _D&L_ 12/28/06 10:28 AM Re: 279Mill a second..... Andrew Prock 12/28/06 10:53 AM Re: 279Mill a second..... mykey1961 12/27/06 11:57 PM Re: 279Mill a second..... _D&L_ 12/28/06 12:02 AM Re: 279Mill a second..... mykey1961 12/28/06 02:51 AM Re: 279Mill a second..... _D&L_ 12/28/06 04:34 AM Re: 7 Card Hand Evaluators _D&L_ 12/27/06 07:46 PM Re: 7 Card Hand Evaluators mykey1961 12/27/06 11:52 PM Re: 7 Card Hand Evaluators _D&L_ 12/28/06 12:00 AM Re: 7 Card Hand Evaluators _D&L_ 12/27/06 06:48 PM Re: 7 Card Hand Evaluators mykey1961 12/28/06 12:15 AM Re: 7 Card Hand Evaluators A.Nironen 12/26/06 07:13 AM Re: 7 Card Hand Evaluators Steve Brecher 12/28/06 05:39 PM Re: 7 Card Hand Evaluators Gullanian 12/26/06 12:58 PM Re: 7 Card Hand Evaluators Gullanian 12/26/06 01:05 PM Re: 7 Card Hand Evaluators A.Nironen 12/26/06 01:14 PM Re: 7 Card Hand Evaluators Gullanian 12/26/06 02:07 PM Re: 7 Card Hand Evaluators _D&L_ 12/26/06 04:05 PM Re: 7 Card Hand Evaluators A.Nironen 12/27/06 01:15 AM Re: 7 Card Hand Evaluators mykey1961 12/27/06 02:40 AM Re: 7 Card Hand Evaluators Adrian20XX 08/28/07 03:22 PM Re: 7 Card Hand Evaluators advis0r 09/18/07 01:11 PM Re: 7 Card Hand Evaluators sputum 09/18/07 02:59 PM Re: 7 Card Hand Evaluators advis0r 09/18/07 03:56 PM Re: 7 Card Hand Evaluators pygmyhipo 09/20/07 04:26 AM Re: 7 Card Hand Evaluators jukofyork 12/26/06 05:26 PM Re: 7 Card Hand Evaluators _D&L_ 12/26/06 05:48 PM Re: 7 Card Hand Evaluators Gullanian 12/26/06 06:07 PM Re: 7 Card Hand Evaluators Gullanian 12/26/06 06:07 PM Re: 7 Card Hand Evaluators Gullanian 12/26/06 06:10 PM Re: 7 Card Hand Evaluators _D&L_ 12/25/06 11:51 PM Re: 7 Card Hand Evaluators Phil153 12/26/06 12:47 AM Re: 7 Card Hand Evaluators _D&L_ 12/26/06 12:53 AM Re: 7 Card Hand Evaluators Andrew Prock 12/24/06 10:03 AM Re: 7 Card Hand Evaluators Gullanian 12/24/06 10:37 AM Re: 7 Card Hand Evaluators jukofyork 12/24/06 01:55 PM Re: 7 Card Hand Evaluators bachfan 12/24/06 05:16 PM Re: 7 Card Hand Evaluators _D&L_ 12/24/06 04:13 PM Re: 7 Card Hand Evaluators justkevin 12/21/06 05:40 PM Re: 7 Card Hand Evaluators _D&L_ 12/21/06 09:49 PM Re: 7 Card Hand Evaluators DonkBluffer 12/22/06 08:02 AM Re: 7 Card Hand Evaluators _D&L_ 12/24/06 01:32 AM Re: 7 Card Hand Evaluators Gullanian 12/23/06 01:34 PM Re: 7 Card Hand Evaluators _D&L_ 12/23/06 09:42 PM Re: 7 Card Hand Evaluators Gullanian 12/23/06 02:15 PM Re: 7 Card Hand Evaluators bachfan 12/23/06 02:48 PM Re: 7 Card Hand Evaluators bachfan 12/23/06 02:52 PM Re: 7 Card Hand Evaluators Gullanian 12/23/06 07:08 PM Re: 7 Card Hand Evaluators Gullanian 12/29/06 10:28 AM Re: 7 Card Hand Evaluators Gullanian 12/29/06 10:39 AM Re: 7 Card Hand Evaluators Steve Brecher 12/29/06 11:50 AM Re: 7 Card Hand Evaluators mykey1961 12/29/06 12:41 PM Re: 7 Card Hand Evaluators Gullanian 12/29/06 01:23 PM Re: 7 Card Hand Evaluators mykey1961 12/29/06 01:59 PM Re: 7 Card Hand Evaluators RayW 12/31/06 05:19 AM Re: 7 Card Hand Evaluators Gullanian 12/29/06 02:52 PM Re: 7 Card Hand Evaluators RayW 12/29/06 05:25 PM Re: 7 Card Hand Evaluators mykey1961 12/30/06 03:05 PM Re: 7 Card Hand Evaluators RayW 01/03/07 09:17 PM Re: 7 Card Hand Evaluators Steve Brecher 01/03/07 11:41 PM Re: 7 Card Hand Evaluators Gullanian 01/04/07 02:01 AM Re: 7 Card Hand Evaluators jukofyork 01/04/07 06:18 AM Re: 7 Card Hand Evaluators RayW 01/04/07 05:06 AM Re: 7 Card Hand Evaluators tripos 03/01/07 12:00 PM Re: 7 Card Hand Evaluators twobitplayer 03/01/07 02:19 PM Re: 7 Card Hand Evaluators jukofyork 03/01/07 02:34 PM Re: 7 Card Hand Evaluators tripos 03/03/07 02:37 PM Re: 7 Card Hand Evaluators tripos 03/04/07 08:34 AM Re: 7 Card Hand Evaluators RayW 03/04/07 10:19 AM Re: 7 Card Hand Evaluators tripos 03/04/07 04:34 PM Re: 7 Card Hand Evaluators pygmyhipo 01/04/07 07:49 PM Re: 7 Card Hand Evaluators RayW 01/05/07 12:26 AM Re: 7 Card Hand Evaluators mykey1961 01/04/07 08:25 PM Re: 7 Card Hand Evaluators RayW 01/05/07 12:59 AM Re: 7 Card Hand Evaluators TheCardGeek 01/05/07 02:08 AM Re: 7 Card Hand Evaluators New York Jet 01/05/07 06:37 PM Re: 7 Card Hand Evaluators Steve Brecher 01/06/07 11:09 PM Re: 7 Card Hand Evaluators RayW 01/05/07 02:25 AM Re: 7 Card Hand Evaluators TheCardGeek 01/05/07 02:28 AM Re: 7 Card Hand Evaluators jbs 01/05/07 01:44 AM Re: 7 Card Hand Evaluators Steve Brecher 01/05/07 12:43 AM Re: 7 Card Hand Evaluators RayW 01/05/07 02:07 AM Re: 7 Card Hand Evaluators Steve Brecher 01/05/07 03:32 AM Re: 7 Card Hand Evaluators RayW 01/05/07 04:52 AM Re: 7 Card Hand Evaluators mykey1961 01/05/07 07:14 AM Re: 7 Card Hand Evaluators TheCardGeek 01/05/07 09:32 AM Re: 7 Card Hand Evaluators jbs 01/05/07 03:10 AM Re: 7 Card Hand Evaluators MrPokerToad 01/04/07 07:38 PM Re: 7 Card Hand Evaluators jukofyork 01/04/07 06:17 AM Re: 7 Card Hand Evaluators Mogobu The Fool 01/14/07 12:10 PM Re: 7 Card Hand Evaluators RayW 01/04/07 07:08 AM Re: 7 Card Hand Evaluators mykey1961 01/04/07 02:37 PM Re: 7 Card Hand Evaluators mark007 01/11/07 09:29 PM Re: 7 Card Hand Evaluators RayW 01/14/07 03:17 PM Re: 7 Card Hand Evaluators mark007 01/14/07 03:25 PM Re: 7 Card Hand Evaluators RayW 01/14/07 03:32 PM Re: 7 Card Hand Evaluators mark007 01/14/07 03:34 PM Re: 7 Card Hand Evaluators RayW 01/14/07 05:27 PM Re: 7 Card Hand Evaluators mark007 01/14/07 05:59 PM Re: 7 Card Hand Evaluators Steve Brecher 01/20/07 11:42 AM Re: 7 Card Hand Evaluators Jurrr 01/23/07 07:40 AM Re: 7 Card Hand Evaluators Steve Brecher 01/23/07 06:15 PM Re: 7 Card Hand Evaluators theblitz 02/01/07 05:00 AM Re: 7 Card Hand Evaluators ThirdEye 02/01/07 07:03 AM Re: 260 Mill / 343 Mill a sec _D&L_ 02/02/07 12:48 PM Re: 260 Mill / 343 Mill a sec RayW 02/02/07 07:53 PM Re: 260 Mill / 343 Mill a sec _D&L_ 02/02/07 08:42 PM Re: VB source code 1 of 2 _D&L_ 02/02/07 08:46 PM Re: VB source code 2 of 2 _D&L_ 02/02/07 09:30 PM Re: 7 Card Hand Evaluators rvg72 01/15/07 01:35 AM Re: 7 Card Hand Evaluators thomash 01/17/07 11:15 AM Re: 7 Card Hand Evaluators mark007 01/17/07 03:04 PM Re: 7 Card Hand Evaluators thomash 01/17/07 04:11 PM Re: 7 Card Hand Evaluators Gullanian 01/17/07 05:12 PM Re: 7 Card Hand Evaluators thomash 01/18/07 09:32 AM Re: 7 Card Hand Evaluators Gullanian 01/18/07 11:39 AM Re: 7 Card Hand Evaluators chrisj1948 01/19/07 12:36 PM Re: 7 Card Hand Evaluators mark007 01/14/07 03:51 PM Re: 7 Card Hand Evaluators RayW 01/14/07 03:07 PM Re: 7 Card Hand Evaluators mark007 01/14/07 03:14 PM Re: 7 Card Hand Evaluators Mogobu The Fool 01/13/07 11:58 PM Re: 7 Card Hand Evaluators Brad Quick 01/14/07 10:39 AM Re: 7 Card Hand Evaluators RayW 01/04/07 05:23 AM Re: 7 Card Hand Evaluators tripos 03/07/07 11:55 AM Re: 7 Card Hand Evaluators tripos 03/07/07 07:57 PM Re: 7 Card Hand Evaluators 404url 03/30/07 01:17 AM Re: 7 Card Hand Evaluators 404url 03/30/07 02:37 AM Re: 7 Card Hand Evaluators 404url 03/30/07 05:47 PM Re: 7 Card Hand Evaluators BinaryMan 05/10/07 01:01 AM Re: 7 Card Hand Evaluators advis0r 05/10/07 10:14 AM Re: 7 Card Hand Evaluators Steve Brecher 05/10/07 12:26 PM Re: 7 Card Hand Evaluators advis0r 05/10/07 02:27 PM Re: 7 Card Hand Evaluators Steve Brecher 05/10/07 03:14 PM Re: 7 Card Hand Evaluators advis0r 05/10/07 06:27 PM Re: 7 Card Hand Evaluators Steve Brecher 05/10/07 06:32 PM Re: 7 Card Hand Evaluators advis0r 05/10/07 08:22 PM Re: 7 Card Hand Evaluators StickGuy 05/20/07 03:07 PM Re: 7 Card Hand Evaluators hanhikoski 06/18/07 05:25 PM Re: 7 Card Hand Evaluators RayW 06/20/07 07:06 PM Re: 7 Card Hand Evaluators Masterplan 08/07/07 11:52 AM Re: 7 Card Hand Evaluators RayW 08/08/07 06:55 PM Re: 7 Card Hand Evaluators Masterplan 08/23/07 12:00 PM Re: 7 Card Hand Evaluators Al P 08/23/07 02:03 PM Re: 7 Card Hand Evaluators Adrian20XX 08/27/07 02:29 PM Re: 7 Card Hand Evaluators RayW 08/23/07 04:29 PM Re: 7 Card Hand Evaluators Al P 08/25/07 07:07 PM Re: 7 Card Hand Evaluators mykey1961 08/25/07 11:35 PM Re: 7 Card Hand Evaluators mykey1961 08/23/07 03:15 PM Re: 7 Card Hand Evaluators jukofyork 08/09/07 11:51 AM Re: 7 Card Hand Evaluators Janis N. 08/18/07 12:01 AM Re: 7 Card Hand Evaluators advis0r 08/18/07 06:54 AM Re: 7 Card Hand Evaluators bokeh 08/05/07 04:43 AM Re: 7 Card Hand Evaluators jukofyork 05/10/07 10:19 AM Re: 7 Card Hand Evaluators advis0r 05/10/07 10:34 AM Re: 7 Card Hand Evaluators Steve Brecher 01/04/07 02:46 PM Re: 7 Card Hand Evaluators RayW 01/04/07 03:26 PM Re: 7 Card Hand Evaluators Steve Brecher 01/04/07 03:44 PM Re: 7 Card Hand Evaluators pygmyhipo 01/03/07 10:23 PM Re: 7 Card Hand Evaluators _dave_ 01/03/07 10:49 PM Re: 7 Card Hand Evaluators Gullanian 12/30/06 11:37 PM Re: 7 Card Hand Evaluators Phil153 12/31/06 01:13 AM Re: 7 Card Hand Evaluators mykey1961 12/31/06 01:36 AM Re: 7 Card Hand Evaluators _D&L_ 12/30/06 11:44 PM Re: 7 Card Hand Evaluators mykey1961 12/29/06 06:28 PM Re: 7 Card Hand Evaluators Gullanian 12/29/06 12:19 PM Re: 7 Card Hand Evaluators mykey1961 12/29/06 06:44 PM Re: 7 Card Hand Evaluators mykey1961 12/29/06 10:11 PM Re: 7 Card Hand Evaluators RayW 12/30/06 05:09 AM Re: 7 Card Hand Evaluators _D&L_ 12/23/06 10:00 PM Re: 7 Card Hand Evaluators Gullanian 12/24/06 12:02 AM Re: 7 Card Hand Evaluators _D&L_ 12/24/06 12:56 AM Re: 7 Card Hand Evaluators Andrew Prock 12/24/06 02:11 PM Re: 7 Card Hand Evaluators bachfan 12/24/06 05:36 PM Re: 7 Card Hand Evaluators bachfan 12/24/06 05:30 PM Re: 7 Card Hand Evaluators _D&L_ 12/24/06 04:38 PM Re: 7 Card Hand Evaluators Andrew Prock 12/24/06 05:36 PM Re: 7 Card Hand Evaluators bachfan 12/24/06 05:41 PM Re: 7 Card Hand Evaluators _D&L_ 12/24/06 06:34 PM Re: 7 Card Hand Evaluators TheCardGeek 01/03/07 02:08 AM Re: 7 Card Hand Evaluators Phil153 01/03/07 03:38 AM Re: 7 Card Hand Evaluators mykey1961 12/26/06 03:34 PM Re: 7 Card Hand Evaluators bachfan 12/24/06 06:47 PM Re: 7 Card Hand Evaluators _D&L_ 12/24/06 06:49 PM

Extra information
0 registered and 6 anonymous users are browsing this forum.

Moderator:  SamIAm, Mike Haven

Forum Permissions
You cannot start new topics