This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
# MazeGenerator | ||
# MazeGenerator | ||
![Nuget](https://img.shields.io/nuget/v/Kysect.MazeGenerator?style=flat-square) | ||
|
||
|
||
MazeGenerator - учебная библиотека, которая позволяет генерировать карты для игры в лабиринт. | ||
|
||
|
||
Карта лабиринта представляет из себя матрицу Сells[][] | ||
```C# | ||
public enum Cells | ||
{ | ||
Wall, | ||
Empty, | ||
Exit | ||
} | ||
``` | ||
|
||
Пример создания лабиринта | ||
|
||
https://github.com/kysect/MazeGenerator/blob/89657d5857d39e5961e1231bda079e7c4a863da4/Source/Kysect.MazeGenerator.Console/Program.cs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
public enum Cells | ||
{ | ||
Wall, | ||
Empty | ||
Empty, | ||
Exit, | ||
} |
2 changes: 1 addition & 1 deletion
2
...ce/Kysect.MazeGenerator/IMazeGenerator.cs → Source/Kysect.MazeGenerator/IMapGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace Kysect.MazeGenerator; | ||
|
||
public interface IMazeGenerator | ||
public interface IMapGenerator | ||
{ | ||
Cells[][] Generate(int size); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Source/Kysect.MazeGenerator/MazeGenerators/GrowingTree/GrowingTreeGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
using Kysect.MazeGenerator.MazeGenerators.GrowingTree; | ||
|
||
namespace Kysect.MazeGenerator; | ||
|
||
public record SpecialCell(Cells CellType, Coordinate Position); |