
public class Tomb {


/* How the positions in the tomb are labeled.
        1 5 2
        6 9 7
        3 8 4
*/
	private static int labelMap[]  = { 0, 1, 3, 7, 9, 2, 4, 6, 8, 5 } ;

	private Card position[] = new Card[10] ;

	public Tomb () {
		for ( int i = 0 ; i < position.length ; i++ )
			position[i] = new Card() ;
	}

	public void set ( Card aCard, int i ) {
		if ( ( 1 <= i ) && ( i <= 9 ) )
			position[i] = aCard ;
	}

	public Card get ( int i ) {
		if ( ( 1 <= i ) && ( i <= 9 ) )
			return position[i] ;
		else {
			Card aCard = new Card() ;
			return aCard ;
		}
	}

	public boolean isEmpty ( int i ) {
		if ( position[i].getValue().equals("empty") || position[i].getSuit().equals("empty") )
			return true ;
		else
			return false ;
	}

	public static int getMap ( int i ) {
		return labelMap[i]-1 ;
	}

}


