import java.util.Vector; public class TestGameInformation { public static void main(String[] args){ String str=new String("(;EV[第67期日本本因坊戦預選]DT[2011-03-09]PC[関西棋院]SZ[19]KM[7.5]US[棋聖道場]SO[]BR[五段]WR[九段]PB[河英一]PW[苑田勇一]RE[W+2.5]GC[苑田の名局];B[qd];W[pp];B[dc];W[cp];B[ep];W[eq];B[fq];W[dq];B[ce];W[nc];B[kd];W[qc];B[pc];W[pd];B[qb];W[rc];B[od];W[pe];B[oc];W[rb];B[nq];W[qn];B[fp];W[cn];B[jp];W[pf];B[nd];W[pj];B[pq];W[qq];B[qr];W[oq];B[pr];W[op];B[or];W[np];B[mp];W[mo];B[lp];W[rq];B[hd];W[mg];B[nk];W[lo];B[ko];W[lm];B[pk];W[oj];B[ok];W[qj];B[lk];W[kn];B[qk];W[mi];B[kj];W[jf];B[je];W[if];B[ij];W[db];B[ec];W[le];B[ld];W[hr];B[gr];W[iq];B[mr];W[io];B[fm];W[hn];B[dm];W[cm];B[dl];W[cc];B[cd];W[cl];B[dk];W[cj];B[eb];W[mj];B[mk];W[me];B[rj];W[ri];B[rl];W[sj];B[im];W[jo];B[kp];W[jm];B[il];W[rr];B[ch];W[ci];B[sk];W[rk];B[do];W[co];B[rj];W[si];B[bi];W[bj];B[in];W[jn];B[ho];W[ip];B[hp];W[kr];B[lr];W[kq];B[lq];W[bh];B[bg];W[ai];B[dh];W[gf];B[he];W[hf];B[er];W[dr];B[gi];W[ie];B[id];W[pb];B[ob];W[qa];B[hq];W[ir];B[on];W[nn];B[rn];W[ro];B[qm];W[pn];B[qo];W[om];B[rp];W[qp];B[so];W[ke];B[jd];W[nb];B[oa];W[md];B[mc];W[mb];B[lc];W[ej];B[fk];W[bf];B[cg];W[ag];B[be];W[ne];B[lb];W[kh];B[pm];W[oo];B[ds];W[cs];B[es];W[gs];B[hs];W[is];B[fr];W[cr];B[cf];W[fe];B[fd];W[dn];B[en];W[ji];B[af];W[ii];B[hi];W[fj];B[gj];W[ee];B[ah];W[bi];B[jq];W[jr];B[ih];W[ge];B[gd];W[rk];B[nj];W[ni];B[rj];W[oe];B[ma];W[rk];B[sl];W[ol];B[mm];W[jk];B[jj];W[jl];B[ik];W[pl];B[ql];W[nm];B[ml];W[ek];B[el];W[fh];B[mn];W[ln];B[gh];W[gk];B[fl];W[pa];B[na];W[eg];B[ck];W[bk];B[ra];W[sa];B[ks];W[rs];B[ro];W[qs];B[ps];W[po];B[li];W[lh];B[fi];W[ei];B[jg];W[jh];B[ig];W[kg];B[hh];W[dp];B[eo];W[eh];B[gg];W[fg];B[de];W[ed];B[sq];W[sr];B[lj];W[kl];B[ef];W[dd];B[ag];W[rj];B[sp])"); SgfTree tree=new SgfTree(); Vector v=tree.getSgfTree(str); GameInformation gi=new GameInformation(); gi.editGameInformation(v); System.out.println(gi.getBlackPlayer()); System.out.println(gi.getBlackRank()); System.out.println(gi.getWhitePlayer()); System.out.println(gi.getWhiteRank()); System.out.println("komi=" + gi.getKomi()); System.out.println("rule=" + gi.getRule()); System.out.println("gameName=" + gi.getGameName()); System.out.println("date=" + gi.getDate()); System.out.println("timeLimit=" + gi.getTimeLimit()); System.out.println("result=" + gi.getResult()); System.out.println("event=" + gi.getEvent()); System.out.println("place=" + gi.getPlace()); System.out.println("gameComment=" + gi.getGameComment()); System.out.println("size=" + gi.getSize()); System.out.println("getSgfGameInformation()=" + gi.getSgfGameInformation()); } }