Skip to content

Validate the complete map #7

Closed
6 of 6 issues completed
Closed

Description

@Melow-code

Here are most of the guidelines given:

Each map should only contain the following characters:

  1. 1 = Wall
  2. 0 = Empty space
  3. N|S|E|W = Player start position and orientation at spawn

The map should be valid with the following rules:

  • The map must be closed/surrounded by walls
  • Each type of element can by separated by one or more empty lines. EXCEPT the map content.
  • Map content should allways be the last element on the file
  • Each type of element can be set up in any order, except the map content (which must be the last element on the file)
  • Except for the map, each type of information from an element can be separated by one or more spaces.
  • The map must be parsed as it is in the file.
  • Spaces are a valid part of the map. The parsing must work on any type of map, if it follows all the other rules.

For more information, please check subject.

Sub-issues

Sub-issues

6 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. added this to the Mandatory milestone on Nov 4, 2026
  2. added
    parsing
    on Nov 4, 2026
  3. changed the title [-]Validate the map following project guidelines[/-] [+]Validate the complete map[/+] on Nov 12, 2026
  4. Melow-code commented on Nov 14, 2026

    @Melow-code
    OwnerAuthor

    I think, at this point, there is nothing else being required, else than extensive testing. If we agree that spaces are invalid chars near 0/N/S/W/E characters, then the parsing and the validation is done for the moment.

  5. moved this from Backlog to Done in CUB3Don Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    parsing

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions