Archive

Posts Tagged ‘strength’

Poker Hand Evaluation

March 8th, 2010 Comments off

I need some VB.NET code which will evaluate the strength of a single texas hold’em poker hand. It needs be able to identify the best hand available out of 7 cards dealt, but also to be able to evaluate the strength of a hand at each stage of the hand, so after the first two cards are dealt, after the flop, after the turn, and after the river. At each stage, it needs to be able to return:

1. The percentage likelihood of hitting:
a. A straight flush
b. Four of a kind
c. A fullhouse
d. A flush
e. A Straight
f. Three of a Kind
g. Two Pairs
h. One Pair

2. The overall percentage strength of the hand. For example. If the two player cards are King King, and the flop comes King King Ace, the player has an extremely strong hand, but could could still be beaten by a hand holding Ace Ace if one more Ace comes on the turn or the river, or it could be beaten by any hand holding an Ace, if the Turn and the River are both Aces. At each stage, the evaluator needs to return the percentage chance of there being a better hand than the one the player holds once all cards have been dealt.
This isn’t for a PokerBot or a multiple player hand evaluator, it’s just to return the strength of each given hand as a tool for teaching poker probability.
I’m aware there are some open source pieces of code out there but I don’t have the time to convert them to my exact needs, so I’m hoping someone has something similar already created. I need to be able to easily integrate the code with an existing VB.Net project.

Categories: Programming Tags: , , , , , ,

Cubecart 3 Stock Level Mod

February 22nd, 2010 Comments off

This job is for one of our clients who needs more functionality from cubecarts stock level function. Let me try to explain clearly.

1. The client sells single products for which he will use the current stock level functionality no problem.

2. The clients main products are sold by weight and in different strengths. What he really wants for this is a stock control mod.

Products meaning nothing here is an example.

He sells the following product

5 x strength super washing powder.

In the 5x strength category he will add several products

10 Grams of 5x strength super washing powder $xx
20 Grams Of 5x strength Super washing powder $xxx
30 Grams Of 5x strength Super Washing powder $xxx

With Cubes current system each product would have to have a stock level assigned to it which is no good for the client as he is taking any order in this category from the same bulk stock.

I am thinking a new page in admin with bulk stock control where name of product and gross weight inventory can be added/edited.

Then on the add edit product page an option when it comes to assigning stock levels either

Individual stock control (Cubes current function enter how many you have)

Bulk stock control, If selected the client would need to select simply the product name from a drop down depending on what he added in the bulk stock control page. This way an order of any amount will be deducted from the gross stock level.

That is issue 1

Now for issue 2

The client also sells 10 x strength super washing powder at a different cost this is fine if all the customer is ordering is either 10x or 5x concentrate but the client also wants to sell packages eg

10g Of 5x concentrate and 20g of 10x concentrate and 10g of 10 x concentrate

The packages would be fixed weights and price but obviously a purchase of that product would require 3 bulk stock figures updating/reducing.

So this would require a modification to cubes add edit product routine to allow three products to be added as a package with a gross price.

Finally

All stock levels whether individual stock levels or bulk stock levels should be reduced on ordering.

BUT

Should an order be marked declined, deleted or cancelled in cube admin the inventory/stock levels for that order need adding back to the gross stock figures whether they be individual items or bulk stock items in order to keep the stock control correct.

Happy Bidding

Need A Database

December 15th, 2009 Comments off

Hi
i need a large databse.. you have to search online and create an excel sheet with the column as described
1.name of company
2.website
3.HR Manager name
4.mailing address
5.phone
6.fax
7.strength of employee
8.email id of hr.
i need list of only those companies whose employee strength is more than five hundread..my budget is not high but its huge project…you will have to cover whole eastern part of earth..probably 10-15 countries..
bid only if you can deliver minimum 200 list daily..i will pay via paypal..after every hundread or every 50..i need data to be accurate as i will check it my self..especially regarding staff strength and hr name and email id..
plz send me sample to one list so that i can understand you got my point..
i need a provider who can start this work within 23 hr..plus he or she must have google id..
bid for each 200..my budget is $7-$15 for 200…lower and sincere bidder will get this work..
thanks

Calculation And Others

June 28th, 2009 Comments off

1. Overtime and penalty shots
A hockey game usually never ends in a draw. So we need to extend the calculation for overtime and penalty shots.
Overtime is another 5 minutes of playing. If a team scores the game is over and the team which scored has one.
When there is no score in overtime, they go to shootout. Each team has to select three players for a shootout. If one team scored more after the three, it wins. If it is a draw, each team shoots one more time. If one team scores and the other does not, the team with the goal won. If none scored or both scored it continues 1 one 1 until one team wins.

So we need to add the penalty shooters to the lineup.

I think we can use the same variables for the shootout that we have for the games.

The shooter has the following options.

Score
Miss
Saved by goalie

2. Ticket price
The user needs to be able to set the ticket prices for his seats and stands. This should be possible for all games at once or individually depending on the preference of the User.

3. Calculate the attendance per game
For this we need to create a formula.

Strength home team * Strenght away team * Ranking home team * Ranking away team * Ticket price / Factor

For this we need something on the backend to give points to the ranking and strength and ticket price.
I have attached an Excel sheet to show you what I mean.

So in the backend I want to be able to change the values of the points.
I also want to be able to change the value of the price ranges and strength ranges.
BUT this option needs to be closed once a season has had the first game day so it is fix for a whole season.
I also need to be able to change the factor so that the number is calculated correct.

This formula needs to be in there twice so that once the attendance in the stands and once in the seats is calculated.

Bear