Fortress Cannons Fortress Cannons

You have found the enemy. It's the legions of chaos. You are the artillery commander of the fort and it’s up to you to give commands so that each cannon shoot at the legions.

The map used in this mission is a hex grid with a maximum size of 12x9, where each hex is numbered from A1 to L9. (A - L indicate a column, and 1 - 9 indicate a row.)

You are given three arguments: the first one is the position of your fort (a string), the second is the specification of each cannon(a list of tuples), and the third is the position of enemies (a set of strings).

  • The details of the specification of each cannon (tuple) are:
    • The first value is the firing-arc. This is the shooting area for the cannon (see the following images). The...
You should be an authorized user in order to see the full description and start solving this mission.