#Petyr Baelish
You never know whose side Petyr Baelish is on.
package Humans;
/**
* Always keep your foes confused. If they are never certain who you are or
* what you want, they cannot know what you are like to do next.
* @author Rusher
*/
public class PetyrBaelish extends Human {
/**
* Randomly take the side of good or evil.
* @param history The past votes of every player
* @return A String "good" or "evil
*/
public String takeSides(String history) {
return Math.random() < 0.5 ? "good" : "evil";
}
}
This entry will only be included if the number of players is even. This ensures that there will always be a majority.