Index of /csed/ap/cards/code

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] AcePile.java 14-Oct-2004 14:24 832 [TXT] AllRed.java 14-Oct-2004 14:38 569 [   ] AnythingGoes.java 14-Oct-2004 14:39 221 [TXT] CardAnswers.java 14-Oct-2004 14:24 1.7K [   ] CardTestMain.java 14-Oct-2004 14:24 397 [   ] Deck.java 15-Oct-2004 14:07 1.7K [TXT] DeckTest.java 14-Oct-2004 14:24 780 [TXT] FlushProperty.java 14-Oct-2004 14:39 619 [TXT] HasPair.java 14-Oct-2004 14:40 609 [   ] ICard.java 14-Oct-2004 14:24 255 [   ] IDisplayer.java 14-Oct-2004 14:24 84 [TXT] IHandPropertyTester...> 14-Oct-2004 14:24 533 [   ] IPile.java 14-Oct-2004 14:24 175 [   ] PileTester.java 14-Oct-2004 14:24 1.5K [TXT] PokerGui.java 14-Oct-2004 14:24 6.2K [TXT] README 14-Oct-2004 14:35 1.1K [   ] RealGuiTester.java 14-Oct-2004 14:24 5.9K [   ] SimpleGuiTester.java 14-Oct-2004 14:24 5.6K [   ] SimpleHand.java 14-Oct-2004 14:24 433 [TXT] StatisticalCardTestM..> 14-Oct-2004 14:24 1.2K [   ] TableauxPile.java 14-Oct-2004 14:24 1.2K [   ] TextDisplayer.java 14-Oct-2004 14:24 146
The SimpleHand class has an allRed method
similar to the Card-writeup. This class is meant
to motivate the interface/hierarchy below, but 
it's probably too much to start with the IHandPropertyTester
interface. First use SimpleHand and the
corresponding GUI driver SimpleGuiTester.java

The main in the SimpleGuiTester currently creates
four (4) panels of hand-tests for testing allRed. After
seeing this, for example, students/workshop participants
could change allRed to be hasSeven or hasPair. They'd
need to either leave the wrong name on the allRed method
or change the GUI code where allRed is used. This should
motivate the inheritance hierarchy used in the examples
minimally described below.


The StatisticalCardTestMain runs 10000
(changeable) hands over several different
boolean tests like isFlush, hasPair, etc.

The RealGuiTester shows a GUI view of one
run of any number of isFlush, hasPair, hand
testing classes, see the main method for
it in CardTestMain.java --- the main in
RealGuiTester is meant just to see if it works
with an AnyThingGoes hand-test class.