byte[] holeCards = new byte[] { (byte)header[0], (byte)header[1] };
if(numBoardCards != (byte)header[2]) {
throw new RuntimeException("not right number of board cards");
}
ScoreMaps sm = new ScoreMaps((byte)numBoardCards, holeCards);
HandRecord iterator = new HandRecord(numBoardCards, holeCards);
short length;
short score;
int count;
// THIS CODE HAS BEEN TESTED -- DO NOT TOUCH!!!!!!!!!!!!!!!!!!!!
while(iterator.hasMoreElements) {
iterator.advanceRecord();
length = dis.readShort();
for(int i = 0; i < length/6; i++) {
score = dis.readShort();
count = dis.readInt();
sm.addScoreCountFromFile(iterator, score, count);
}
}
dis.close();