Skip to content

Battleship: Ship rules #19

@FlyingWolFox

Description

@FlyingWolFox

New feature
Must work with map parser

  • Ship types and quantity

    • 5 Hydroplanes: (<^>)
    • 4 Submarines (o)
    • 3 Cruiser (<>)
    • 2 Battleship (<==>)
    • 1 Aircraft Carrier (<===>)
  • Must enforce the rules

  • The ships should be at least one square of distance of each other

  • Make rule deactivation easy (in code)

Two choices can be made:

  1. Maintain the actual file formatting, but identify each ship inside of the program
  2. Force a new file formatting, which will give the ships ready

The second is easier in te code, but how the formatting will be done I have no idea
The first appear to be the right choice, making this work with the map parser

Metadata

Metadata

Assignees

Labels

BattleshipIssue related to BattleshipenhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions