Skip to content

Add a "Salvo" mode #8

@retailcoder

Description

@retailcoder

Currently blocked by #7

Once there's an IGameMode interface, the game needs a SalvoMode implementation so that each turn consists of:

  • "Marking" positions on the enemy grid (click to mark, right-click to un-mark).
  • Handle a double-click to confirm marked positions and shoot them all at once.
  • Number of positions to mark depends on the number of friendly ships still afloat.
  • Number of shots per ship could be configurable, e.g. Carrier could shoot 2 positions if unharmed, or 1 if damaged; or, each ship afloat gives player 1 position to mark per turn.

The GridState enum could have a MarkedPosition value that recycles the InvalidPosition member's value, which is currently only used in the deployment phase. Because of Worksheet UI limitations with the conditional formatting of the grid, no new enum values can be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions