An automatic war game