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 = {0, 0,500, 1000,						//vert  positif
						10, 10, 10, 500, 500,
						20, 20, 20, 10, 10, 0,
						35, 35, 35, 20, 20, 10, 0,
						55, 55, 35, 35, 20, 10,
						80, 80, 55, 35, 20,
						1000000000, 80, 55, 35 
		};
		
		/*
		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] == 2){
				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] == empty) //sur le point de gagner
//			val += 1500;
//		
//	   	if (jeu[15] == player || jeu[36] == player )	val += 100; 
	   	
	 ////////////////\\\\\\\\\\\\\\\\
	//////// POSITION JOUEUR \\\\\\\\\
   //////////////////\\\\\\\\\\\\\\\\\\
	
	   	int [] tabJoueur = {35,55,80,1000000000,
	   					20,35,55,80,80,
	   					10,20,35,35,55,55,
	   					0,10,20,20,35,35,35,
	   					0,10,10,20,20,20,
	   					500,500,10,10,10,
	   					1000,500,0,0}; 
	   	
		
	   	
	   	
	for (int i1=0; i1<37; i1++){
		if (jeu[i1] == 1){
			val -= tabJoueur[i1];
		}
	} 
	//Application des fonctions d'evaluations 
	val -= frontalRougeGauche(jeu);
	
		
	 ////////////////////////////////////////////////////////
		
		if(player==1)
			val=-val;
		
		return val;
		}