public static int position(Byte[] jeu, byte player){
	
	   	int val=0;
	   	byte opponent=0;
	   	Byte empty = 0;
	   	if (player == 1) opponent = 2;
	   	else if (player == 2) opponent = 1;
	   	else System.out.println("erreur IA");
	   	
	   	
	/* POSITION IA */   
	   	
		int [] tabIA = {50, 15, 50, 1000,
						40, 25, 25, 50, 50,
						40, 25, 25, 50, 25, 15,
						60, 30, 30, 50, 25, 25, 50,
						30, 50, 50, 30, 25, 40,
						75, 75, 50, 30, 40,
						1000000000, 75, 30, 60 
		};
		
		/*
		0, 1, 2, 3
		4, 5, 6, 7, 8,
		9, 10, 11, 12, 13, 14
		15, 16, 17, 18, 19, 20, 21
		22, 23, 24, 25, 26, 27
		28, 29, 30, 31, 32,
		33, 34, 35, 36
		*/
				
		
		for (int i=0; i<37; i++){
			if (jeu[i] == player){
				val += tabIA[i];
			}
		}  
	
//		if ((jeu[22] == player) && (jeu[28] != opponent))	val += 120;
//		if ((jeu[35] == player) && (jeu[34] != opponent)) 	val += 120;
//		
//		if (jeu[29] == player){
//			if ((jeu[28] != opponent) || (jeu[34] != opponent))
//				val += 50;
//		}
//		
//		if ((jeu[23] == player) && (jeu[22] != opponent))		val += 20;
//		if ((jeu[30] == player) && (jeu[35] != opponent))		val += 20;
//	
//		    	   	
//		if (((jeu[24] == player) && (jeu[18] == player)) || ((jeu[18] == player) && (jeu[12] == player)))
//			val += 30;
//			
//			   
//	   	if ((jeu[28] == player || jeu[29] == player || jeu[34] == player) && jeu[33] == 0) //sur le point de gagner
//			val += 1000;
		
	
	 ////////////////\\\\\\\\\\\\\\\\
	//////// POSITION JOUEUR \\\\\\\\\
   //////////////////\\\\\\\\\\\\\\\\\\
	
	   	int [] tabJoueur = {60,30,100,1000000000,
	   					40,30,50,100,100,
	   					40,25,30,50,50,30,
	   					50,25,25,50,30,30,60,
	   					15,25,50,25,25,40,
	   					50,50,25,25,40,
	   					1000,50,15,50}; 
	   	
		for (int i=0; i<37; i++){
			if (jeu[i] == opponent){
				val -= tabJoueur[i];
			}
		}  
		
//		if ((jeu[2] == opponent || jeu[7] == opponent || jeu[8] == opponent) && jeu[3] == empty) //sur le point de perdre
//			val -= 1000;
//	
//		if (jeu[12] == opponent) {
//			if (jeu[7] == 0)	val -= 75;
//				else 			val -= 50;
//				
//	}
//	if (jeu[6] == opponent) {
//		if (jeu[1] == player || jeu[2] == player || jeu[7] == player)
//			val -=50;		
//			else	val -= 75;
//				
//	}
//	if (jeu[13] == opponent) {
//		if (jeu[7] == player || jeu[8] == player || jeu[14] == player)
//			val -= 50;	
//		else
//			val -= 75;
//	}
//	if (jeu[4] == opponent){
//		if (jeu[0] == player)
//			val -= 50;
//	else
//			val -= 75;
//	}
//	if (jeu[27] == opponent){
//		if (jeu[21] == player)
//			val -= 50;
//		else
//			val -= 75;
//		}
//	if (jeu[1] == opponent && (jeu[0] == opponent || jeu[0] == player)) {
//		if (jeu[2] == player && jeu[3] == 0)
//			val -= 1000;
//		else
//			val -= 25;
//	}
//	if (jeu[14] == opponent && (jeu[21] == opponent || jeu[21] == player)) {
//		if (jeu[8] == player && jeu[3] == 0)
//			val -= 1000;
//		else
//			val -= 25;
//	}
//	if (jeu[0] == opponent || jeu[21] == opponent )	val -= 100;  	
			  	
		
	 ////////////////////////////////////////////////////////
		
		return val;
	
	}