Examples of InfoToken


Examples of com.barrybecker4.ca.dj.jigo.sgf.tokens.InfoToken

     */
    protected void parseSGFGameInfo( SGFGame game) {
        Enumeration e = game.getInfoTokens();
        int size = 13; // default unless specified
        while (e.hasMoreElements()) {
            InfoToken token = (InfoToken) e.nextElement();
            if (token instanceof SizeToken) {
                SizeToken sizeToken = (SizeToken)token;
                GameContext.log(2, "info token size ="+sizeToken.getSize());
                size = sizeToken.getSize();
            }
View Full Code Here

Examples of com.barrybecker4.ca.dj.jigo.sgf.tokens.InfoToken

        Enumeration e = game.getInfoTokens();
        int numRows = 15; // default unless specified
        int numCols = 12; // default unless specified
        while (e.hasMoreElements()) {
            InfoToken token = (InfoToken) e.nextElement();
            if (token instanceof Size2Token) {
                Size2Token sizeToken = (Size2Token)token;
                GameContext.log(2, "info token columns =" + sizeToken.getNumColumns() +" rows=" + sizeToken.getNumRows());
                numRows = sizeToken.getNumRows();
                numCols = sizeToken.getNumColumns();
View Full Code Here

Examples of com.barrybecker4.ca.dj.jigo.sgf.tokens.InfoToken

        Enumeration e = game.getInfoTokens();
        int numRows = 15; // default unless specified
        int numCols = 12; // default unless specified
        while (e.hasMoreElements()) {
            InfoToken token = (InfoToken) e.nextElement();
            if (token instanceof Size2Token) {
                Size2Token sizeToken = (Size2Token)token;
                numRows = sizeToken.getNumRows();
                numCols = sizeToken.getNumColumns();
            }
View Full Code Here

Examples of stage3.InfoSet.InfoToken

   
    // we now must create two outcomes corresponding to the player's 2 choices
   
    // Choice 1: Fold
    InfoSetPair ispFold = ispThisNode.addInfoToBoth(
        new InfoToken(infoType, InfoToken.s_fold));
    gtnFold = new TerminalLeafNode(new ContinueItem(ispFold, this));

    // Choice 2: Call
    ciCall = new ContinueItem(
        ispThisNode.addInfoToBoth(new InfoToken(infoType, InfoToken.s_call)),
        this);
  }
View Full Code Here

Examples of stage3.InfoSet.InfoToken

   
    for(int i = 0; i < numClusters; i++) {
      for(int j = 0; j < numClusters; j++) {
        // players {1,2} are assigned to clusters {i,j}
       
        InfoToken iP1 = new InfoToken(InfoToken.s_holeCardsCluster
            [DoGT.s_bc0][DoGT.s_player1], i);
       
        InfoToken iP2 = new InfoToken(InfoToken.s_holeCardsCluster
            [DoGT.s_bc0][DoGT.s_player2], j);
       
        InfoSetPair ispNew = isp.addInfoToOnePlayer(iP1, DoGT.s_player1)
            .addInfoToOnePlayer(iP2, DoGT.s_player2);
       
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.