09.09.2013 Views

Kunstig Intelligens til Brætspillet Taiji - Danmarks Tekniske Universitet

Kunstig Intelligens til Brætspillet Taiji - Danmarks Tekniske Universitet

Kunstig Intelligens til Brætspillet Taiji - Danmarks Tekniske Universitet

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

222 Bilag A<br />

449 i f ( tModel . noRows > 4) {<br />

450 System . out . p r i n t l n ( n . nodeBoard [ 0 ] [ 4 ] + ” ”+n .<br />

nodeBoard [ 1 ] [ 4 ] + ” ”+n . nodeBoard [ 2 ] [ 4 ] + ” ”+n .<br />

nodeBoard [ 3 ] [ 4 ] + ” ”+n . nodeBoard [ 4 ] [ 4 ] + ” ”+n .<br />

nodeBoard [ 5 ] [ 4 ] + ” ”+n . nodeBoard [ 6 ] [ 4 ] ) ;<br />

451 i f ( tModel . noRows > 5) {<br />

452 System . out . p r i n t l n ( n . nodeBoard [ 0 ] [ 5 ] + ” ”+n .<br />

nodeBoard [ 1 ] [ 5 ] + ” ”+n . nodeBoard [ 2 ] [ 5 ] + ” ”+n<br />

. nodeBoard [ 3 ] [ 5 ] + ” ”+n . nodeBoard [ 4 ] [ 5 ] + ” ”+<br />

n . nodeBoard [ 5 ] [ 5 ] + ” ”+n . nodeBoard [ 6 ] [ 5 ] ) ;<br />

453 i f ( tModel . noRows > 6) {<br />

454 System . out . p r i n t l n ( n . nodeBoard [ 0 ] [ 6 ] + ” ”+n .<br />

nodeBoard [ 1 ] [ 6 ] + ” ”+n . nodeBoard [ 2 ] [ 6 ] + ”<br />

”+n . nodeBoard [ 3 ] [ 6 ] + ” ”+n . nodeBoard<br />

[ 4 ] [ 6 ] + ” ”+n . nodeBoard [ 5 ] [ 6 ] + ” ”+n .<br />

nodeBoard [ 6 ] [ 6 ] ) ;<br />

455 i f ( tModel . noRows > 7) {<br />

456 System . out . p r i n t l n ( n . nodeBoard [ 0 ] [ 7 ] + ”<br />

”+n . nodeBoard [ 1 ] [ 7 ] + ” ”+n . nodeBoard<br />

[ 2 ] [ 7 ] + ” ”+n . nodeBoard [ 3 ] [ 7 ] + ” ”+n .<br />

nodeBoard [ 4 ] [ 7 ] + ” ”+n . nodeBoard<br />

[ 5 ] [ 7 ] + ” ”+n . nodeBoard [ 6 ] [ 7 ] ) ;<br />

457 i f ( tModel . noRows > 8) {<br />

458 System . out . p r i n t l n ( n . nodeBoard<br />

[ 0 ] [ 8 ] + ” ”+n . nodeBoard [ 1 ] [ 8 ] + ”<br />

”+n . nodeBoard [ 2 ] [ 8 ] + ” ”+n .<br />

nodeBoard [ 3 ] [ 8 ] + ” ”+n . nodeBoard<br />

[ 4 ] [ 8 ] + ” ”+n . nodeBoard [ 5 ] [ 8 ] + ”<br />

”+n . nodeBoard [ 6 ] [ 8 ] ) ;<br />

459<br />

460<br />

461 }<br />

462 }<br />

463 }<br />

464 }<br />

465 }<br />

466 }<br />

467 System . out . p r i n t l n ( ) ;<br />

468 }<br />

469<br />

470 // f o r b r a e t med 8 k o l o n e r<br />

471 p u b l i c void printNode8x ( Node n ) {<br />

472 System . out . p r i n t l n (” t P r i n t PrintNode ”+n+” Depth : ”+n . d+”<br />

Score ”+n . a+” par ”+n . par+” w ”+n . wc+”,”+n . wr+” b ”+n .<br />

bc+”,”+n . br+” c h i l d r e n : ”+n . c h i l d r e n ) ;<br />

473 System . out . p r i n t l n ( n . nodeBoard [ 0 ] [ 0 ] + ” ”+n . nodeBoard<br />

[ 1 ] [ 0 ] + ” ”+n . nodeBoard [ 2 ] [ 0 ] + ” ”+n . nodeBoard [ 3 ] [ 0 ] + ” ”+<br />

n . nodeBoard [ 4 ] [ 0 ] + ” ”+n . nodeBoard [ 5 ] [ 0 ] + ” ”+n . nodeBoard<br />

[ 6 ] [ 0 ] + ” ”+n . nodeBoard [ 7 ] [ 0 ] ) ;<br />

474 System . out . p r i n t l n ( n . nodeBoard [ 0 ] [ 1 ] + ” ”+n . nodeBoard<br />

[ 1 ] [ 1 ] + ” ”+n . nodeBoard [ 2 ] [ 1 ] + ” ”+n . nodeBoard [ 3 ] [ 1 ] + ” ”+<br />

n . nodeBoard [ 4 ] [ 1 ] + ” ”+n . nodeBoard [ 5 ] [ 1 ] + ” ”+n . nodeBoard<br />

[ 6 ] [ 1 ] + ” ”+n . nodeBoard [ 7 ] [ 1 ] ) ;<br />

475 System . out . p r i n t l n ( n . nodeBoard [ 0 ] [ 2 ] + ” ”+n . nodeBoard<br />

[ 1 ] [ 2 ] + ” ”+n . nodeBoard [ 2 ] [ 2 ] + ” ”+n . nodeBoard [ 3 ] [ 2 ] + ” ”+

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!