crearBaraja (){

		for(var i = 0; i < 40; i++){
			
			var valor = i % 10 + 1;
			
			this.cartas.set(new Carta(i, valor, 0));

		}

		//baraja con 8 reyes
		if(this.tipo == 1){

			this.cartas.set(1, new Carta(1, 1));
			this.cartas.set(2, new Carta(2, 10));

			this.cartas.set(11, new Carta(11, 1));
			this.cartas.set(12, new Carta(12, 10));

			this.cartas.set(21, new Carta(21, 1));
			this.cartas.set(22, new Carta(22, 10));

			this.cartas.set(31, new Carta(31, 1));
			this.cartas.set(32, new Carta(32, 10));

		}

	}
/* carga las cartas para esta mesa */
carga las cartas para esta mesa
carga las cartas para esta mesa
crearBaraja (){
		for(var i = 0; i < 40; i++){
			var valor = i % 10 + 1;
			this.cartas.set(new Carta(i, valor, 0));
		}
		if(this.tipo == 1){
			this.cartas.set(1, new Carta(1, 1));
			this.cartas.set(2, new Carta(2, 10));
			this.cartas.set(11, new Carta(11, 1));
			this.cartas.set(12, new Carta(12, 10));
			this.cartas.set(21, new Carta(21, 1));
			this.cartas.set(22, new Carta(22, 10));
			this.cartas.set(31, new Carta(31, 1));
			this.cartas.set(32, new Carta(32, 10));
		}
	}
crearBaraja ( ) { for ( var i = 0 ; i < 40 ; i ++ ) { var valor = i % 10 + 1 ; this . cartas . set ( new Carta ( i , valor , 0 ) ) ; } if ( this . tipo == 1 ) { this . cartas . set ( 1 , new Carta ( 1 , 1 ) ) ; this . cartas . set ( 2 , new Carta ( 2 , 10 ) ) ; this . cartas . set ( 11 , new Carta ( 11 , 1 ) ) ; this . cartas . set ( 12 , new Carta ( 12 , 10 ) ) ; this . cartas . set ( 21 , new Carta ( 21 , 1 ) ) ; this . cartas . set ( 22 , new Carta ( 22 , 10 ) ) ; this . cartas . set ( 31 , new Carta ( 31 , 1 ) ) ; this . cartas . set ( 32 , new Carta ( 32 , 10 ) ) ; } }
carga las cartas para esta mesa
carga las cartas para esta mesa
//baraja con 8 reyes