https://github.com/kurone-kito/dfs-test
🛣 The practice of the depth-first search; since 2022.4
https://github.com/kurone-kito/dfs-test
dfs-algorithm example-project
Last synced: 22 days ago
JSON representation
🛣 The practice of the depth-first search; since 2022.4
- Host: GitHub
- URL: https://github.com/kurone-kito/dfs-test
- Owner: kurone-kito
- License: mit
- Archived: true
- Created: 2022-04-22T00:18:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T14:05:44.000Z (over 2 years ago)
- Last Synced: 2024-12-19T21:25:59.566Z (11 months ago)
- Topics: dfs-algorithm, example-project
- Language: TypeScript
- Homepage: https://github.com/kurone-kito/fantomo
- Size: 1.28 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.ja.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.ja.md
Awesome Lists containing this project
README
# 🛣 The practice of the depth-first search
The project is a practice of the depth-first search for [👻 Fantomo](https://github.com/kurone-kito/fantomo).
## TL; DR
```sh
npm ci && npm run build && npm run bin
```
### Result
```txt
●●──k●┬┐
└┼●┬┴k┼P
┌┼┼┤┌k┼┐
├┼●k┼k┤│
└k┼┤├●┘╵
●┬┼┴┼┼┬┐
├┼┼P●P┼k
└┴●╵kk┴╴
```
- `┼`: Route
- `●`: Mine
- `k`: Key
- `P`: Spawn area
## System Requirements
- Node.js Fermium LTS (`^14.19.1`)
## Install the dependencies
```sh
npm install
```
## Build (transpile)
The command creates a `dist` directory with the compiled JavaScript files.
```sh
npm run build
```
When you want to build with watch on development, you can use the command.
```sh
npm start
```
## Invoke the transpiled code
The command invokes the transpiled code: `dist/index.mjs`.
```sh
npm run bin
```
## Linting
```sh
npm run lint
npm run lint:fix # Lint and auto-fix
```
## Testing
```sh
npm run test
```
Currently, the command works as an alias for the `npm run lint` command.
## Rules for Development
Introduce commit message validation at commit time.
“**[Conventional Commits](https://www.conventionalcommits.org/ja/)**”
rule is applied to discourage committing messages that violate conventions.
## LICENSE
MIT