Skip to content

kurone-kito/dfs-test

Repository files navigation

🛣 The practice of the depth-first search

The project is a practice of the depth-first search for 👻 Fantomo.

TL; DR

npm ci && npm run build && npm run bin

Result

●●──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

npm install

Build (transpile)

The command creates a dist directory with the compiled JavaScript files.

npm run build

When you want to build with watch on development, you can use the command.

npm start

Invoke the transpiled code

The command invokes the transpiled code: dist/index.mjs.

npm run bin

Linting

npm run lint
npm run lint:fix # Lint and auto-fix

Testing

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” rule is applied to discourage committing messages that violate conventions.

LICENSE

MIT