// This program simply plays 10000 hands of 9 handed // poker and displays a matrix of all the hands and // how often they won class test { public static void main(String [] args) { final int numberofplayers = 9; final int iter = 10000; deck a = new deck(); card [][] pocket = new card[2][numberofplayers]; card [] board = new card[5]; card [] burn = new card[3]; float [][] winner = new float[13][13]; for(int i=0;i<13;i++) for(int j=0;j<13;j++) winner[i][j] = 0; hand [] h = new hand[numberofplayers]; for(int i=0;i max) { max = winner[i][j]; maxi1 = i; maxi2 = j; } System.out.print (" " + winner[i][j] + " "); } System.out.println(""); } System.out.println("max: "+ max +"at "+(++maxi1)+","+(++maxi2)); } }