Trails-Through-Shadows / TTS-API

A communication interface between database and applications, including validation and game logic.
https://api.tts-game.fun/swagger-ui/index.html
0 stars 0 forks source link

[FEATURE] Validation #30

Closed Firestone82 closed 4 months ago

Firestone82 commented 5 months ago

Request for implementation of part validation algoritms that will do the following. Source at: ValidationController.java

Validate:

  1. Part must have at least 5 hexes
  2. Part must have at most 50 hexes
  3. Part is maximum 8 hexes wide and 8 hexes tall
  4. All hexes must be connected
Kkobarii commented 5 months ago

Must the part include the starting hex (0,0,0)? It would make the connection validation more streamlined.

Kkobarii commented 5 months ago

Hexes can't overlap.

Kkobarii commented 5 months ago

Continuing, the validation documentation will be available here (with output docs here). Add anything I should do, just ping me please.