Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-16-2008, 01:12 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
pokereval()

Could this function (for example when "holdem" is the game type) be fixed so that when given 5 common cards and 3 dead cards, it will give 100%, 0% or 50%, no matter what iteration is given.

Here's some examples:

NPC Code:

Player 1: hearts_10,diamonds_queen
Player 2: spades_3,spades_10
Player 1: 40%
Player 2: 60%
Trashing one card and dealing the flop...
Cards in the table: clubs_king,hearts_8,clubs_9
Player 1: 66%
Player 2: 33%
Trashing one card and dealing the turn...
Cards in the table: clubs_king,hearts_8,clubs_9,hearts_3
Player 1: 36%
Player 2: 64%
Trashing one card and dealing the river...
Cards in the table: clubs_king,hearts_8,clubs_9,hearts_3,spades_4
Player 1: 25%
Player 2: 75%



In the above example, player 1 = winner with pair in 3 (should be 100%)



Next example..

NPC Code:

Player 1: diamonds_10,spades_7
Player 2: spades_8,hearts_10
Player 1: 60%
Player 2: 40%
Trashing one card and dealing the flop...
Cards in the table: diamonds_7,hearts_9,clubs_2
Player 1: 62%
Player 2: 37%
Trashing one card and dealing the turn...
Cards in the table: diamonds_7,hearts_9,clubs_2,clubs_queen
Player 1: 72%
Player 2: 28%
Trashing one card and dealing the river...
Cards in the table: diamonds_7,hearts_9,clubs_2,clubs_queen,clubs_ace
Player 1: 50%
Player 2: 50%



I have no idea why it shows it as 50/50 when it should show 100% to player 1 with a winning hand of pair in 7..

So, could the function be made to give 100% or 0% (and only 50% when it's a split) after the river card? (When 5 common cards and 3 dead cards are given as parameters)
__________________
Reply With Quote
 

Tags
cards, eval, holdem, poker, pokereval


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.