Examples of ScoreMaps


Examples of stage1.ScoreMaps

    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();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.