From f11d73b61282ca6a2f2574e7ad3d7d46f9ca1f52 Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 14 Jan 2018 00:51:13 +0100 Subject: Implement path finder Signed-off-by: pacien --- src/docs/class.puml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/docs') diff --git a/src/docs/class.puml b/src/docs/class.puml index 68aaf5e..869a707 100644 --- a/src/docs/class.puml +++ b/src/docs/class.puml @@ -3,10 +3,6 @@ skinparam linetype ortho package utils { - class PathFinder { - static List findPath(Board, TileVec2, TileVec2) - } - class Matrix { static int getWidth(...) static int getHeight(...) @@ -116,6 +112,10 @@ package board { TileVec2(col, row) Vec2 toPixelPos() } + + class PathFinder { + static List findPath(Board, TileVec2, TileVec2) + } } package model { -- cgit v1.2.3 From c9c4f27367039c315c6137cbea1099df3716206f Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 14 Jan 2018 13:56:54 +0100 Subject: Typo Signed-off-by: pacien --- src/docs/user.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/docs') diff --git a/src/docs/user.md b/src/docs/user.md index 96303ff..bb24c53 100644 --- a/src/docs/user.md +++ b/src/docs/user.md @@ -106,13 +106,15 @@ A world is defined as valid if its blocks fulfill the following criteria: * The bounding box of the defined world must be made of bounding blocks. * The interior space formed by bounding blocks must be unique and simple. -* Reachable blocks are either be adjacent or belong to the interior space. +* Reachable blocks are either adjacent or belong to the interior space. * The world must contain at least one trash can and one garbage block. Only valid worlds can be loaded into the game. The validity of a world may not guaranty the solvability of the puzzle. +\newpage + __Example of invalid world definition:__ ``` WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW -- cgit v1.2.3