Code example for BitSet

Methods: cardinality

0
	 *<UL> 
	 *@return the color to render the prisoner (based on it's strategy) 
	 */ 
	public Color getColor()
	{ 
		double card = Strategy.cardinality();
		card = card/71;
		if(card > .65)
			return new Color(0xFF,0xFF,0x00); //YELLOW
		else if(card > .6)
			return new Color(0x99,0xCC,0x32); //YELLOW GREEN
		else if(card > .55)
			return new Color(0x52,0x7F,0x76); //GREEN
		else if(card > .5)
				return new Color(0x4D,0x4D,0xFF); //NEON BLUE
		else if(card > .45)
			return new Color(0x23,0x23,0x8E);	//NAVY BLUE
		else if(card > .4)
			return new Color(0xFF,0x7F,0x00);	//ORANGE
		else if(card > .35)
Experience pair programming with AI  Get Codota for Java