[CSC 330] Ace Low Handset

Andrew J. Pounds pounds_aj at mercer.edu
Sat Sep 27 01:36:28 EDT 2025


While I will not reveal all of the handsets I use for grading, this one 
seemed to cause the most trouble for student in years past -- the ace 
low straight.  I am providing it as well as the proper output so you can 
ensure that your code works correctly for this case.

rufus:/tmp/sixcardstud/c++ % sixcardstud ../handset/astraight

*** P O K E R   H A N D   A N A L Y Z E R ***


*** USING TEST DECK ***

*** File: ../handset/astraight
  2C, 3C, 4C, 5D, 2D, AH

*** Hand Combinations...
   2C  3C  4C  5D  2D |  AH
   3C  4C  5D  2D  AH |  2C
   4C  5D  2D  AH  2C |  3C
   5D  2D  AH  2C  3C |  4C
   2D  AH  2C  3C  4C |  5D
   AH  2C  3C  4C  5D |  2D

  --- HIGH HAND ORDER ---
   5D  4C  3C  2C  AH |  2D - Straight
   5D  4C  3C  2D  AH |  2C - Straight
   AH  5D  4C  2C  2D |  3C - Pair
   AH  5D  3C  2C  2D |  4C - Pair
   AH  4C  3C  2C  2D |  5D - Pair
   5D  4C  3C  2C  2D |  AH - Pair

-- 
*/Andrew J. Pounds, Ph.D./*
/Professor of Chemistry and Computer Science/
/Director of the Computational Science Program/
/Mercer University, Macon, GA 31207 (478) 301-5627/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc330/attachments/20250927/6ab02106/attachment.htm>


More information about the csc330 mailing list