|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.thomaso.bridge.impossible.ImpossibleBook | +--com.thomaso.bridge.impossible.PavlicekBook
An encoding from Richard Pavlicek. This encoding comes from an email discussion with Richard Pavlicek. It is considerably simpler and more natural than my encoding. See his Mapping of Bridge Deals page for a description of the algorithm.
Fields inherited from class com.thomaso.bridge.impossible.ImpossibleBook |
Pages |
Constructor Summary | |
PavlicekBook()
|
Method Summary | |
int[] |
getPage(java.math.BigInteger pageNo)
Convert an integer between 0 and Pages-1 to a deal. |
java.math.BigInteger |
index(int[] whom)
Abstract: Should take a deal and find its index in the book |
static void |
main(java.lang.String[] args)
|
Methods inherited from class com.thomaso.bridge.impossible.ImpossibleBook |
getPage, getPageAsVector, main |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PavlicekBook()
Method Detail |
public int[] getPage(java.math.BigInteger pageNo)
ImpossibleBook
getPage
in class ImpossibleBook
com.thomaso.bridge.impossible.ImpossibleBook
pageNo
- The page requested.public java.math.BigInteger index(int[] whom)
ImpossibleBook
index
in class ImpossibleBook
com.thomaso.bridge.impossible.ImpossibleBook
whom
- An array telling where each cards is placed.public static void main(java.lang.String[] args)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |