Add Lines::findChar() to search for starting points in mazes

This commit is contained in:
2025-06-03 19:21:08 +02:00
parent 2afa527a85
commit 21e154ed34
8 changed files with 25 additions and 29 deletions

View File

@@ -46,3 +46,9 @@ void LinesSolver<T1, T2>::setCharAt(const Point2& point, const char value)
{
lines.setCharAt(point, value);
}
template <typename T1, typename T2>
Point2 LinesSolver<T1, T2>::findChar(const char c) const
{
return lines.findChar(c);
}

View File

@@ -33,4 +33,5 @@ class LinesSolver
bool isInBounds(const Point2& point) const;
char getCharAt(const Point2& point) const;
void setCharAt(const Point2& point, const char value);
Point2 findChar(const char c) const;
};