a java program to simulate war game