Example Code

Score your poker hand.

Code and Documents

Attachment

This small project takes in 5 cards from a standard deck and then tells you the highest hand you can make from them. It also has a "Deal" button that will randomly select five cards as well as letting the user enter the cards manually. After being sent a link to a black jack game I reworked the custom control they used to add card control to my program. This program is based off a first year C programming coursework that was set at the University of Portsmouth. 

Poker hand.png

Related links: http://zone.ni.com/devzone/cda/epd/p/id/3483

Daniel Harryman MEng
CLA, CPI

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors