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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

220 Bilag A<br />

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

394 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 />

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

396 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 ] ) ;<br />

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

398 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 ] ) ;<br />

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

400 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 ] ) ;<br />

401<br />

402<br />

403 }<br />

404 }<br />

405 }<br />

406 }<br />

407 }<br />

408 }<br />

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

410 }<br />

411<br />

412 // f o r b r a e t med 6 k o l o n e r<br />

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

414 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 />

415 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 ] ) ;<br />

416 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 ] ) ;<br />

417 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 ] + ” ”+<br />

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

418 i f ( tModel . noRows > 3) {<br />

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

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

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

;<br />

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

421 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 ] ) ;

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

Saved successfully!

Ooh no, something went wrong!