- Author: Stef Schulz
- Repository: https://github.com/slothsoft/challenge-tribes
- Open Issues: https://github.com/slothsoft/challenge-tribes/issues
- Wiki: none
In this challenge you manage a tribe so it will grow and be able to survive the other tribes of this world.
You need at least Java 8 or above to run the code.
- Clone this repository
- Import into the IDE of your choice
- Run
TribesChallengeto see the challenge in action - Create your own implementation of
Tribeand put it intode.slothsoft.tribes.contrib, then runTribesChallengeagain to see your tribe
public class MyTribe extends AbstractTribe implements Tribe {
@Override
public String getDisplayName() {
return "My Tribe";
}
@Override
public Color getColor() {
return Color.YELLOW;
}
@Override
public Action execute(Context context) {
// TODO: use context to decide on an action
}
}| Version |
|---|
| Java 8 |
There are a couple of actions tribes do during their life, which are partially returned by the method execute(Context):Action:
| Action | Action |
Source Code |
|---|---|---|
| Skip Round | SETTLE | - |
| Tribe Growths | automatically | Tile.executeRound(), constants Tribe |
| Movement | MOVE_ | Map.executeRound() |
| Splitting up | SPLIT_UP | Map.executeRound() |
| Attacks | automatically | Tile.getAttackedBy(Tile) |
This project is licensed under the MIT License - see the MIT license for details.
