FRFlor / cat-mouse

Path Finding demonstration using Typescript Vue

Home Page:https://catmouse.felipeflor.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cat-Mouse

A simple path-finding exercise project!

Build your maze by placing walls within the grid (you can save some time by pressing the random maze generation button at the top toolbar).

Place the cat, the mouse and any amount of milk boxes you want within the grid.

Press Play.

The cat will get all the milk boxes and the mouse, following the path that requires the least amount of moves.

The cat will aim to catch the mouse last. The only way for the mouse not die last, is if the mouse is in the way of the cat's milk path.

Try it out here!

https://catmouse.felipeflor.com

Key points

  • Breadth First Search (Path Finding Algorithm)
  • Typescript Vue
  • Vue Test Utils, Mocha, Chai, Sinon (Test Tools)

Screenshots

Puzzle just before beginning

After the cat ate everything

Setup

npm i && npm run serve

Tests

npm run test

About

Path Finding demonstration using Typescript Vue

https://catmouse.felipeflor.com


Languages

Language:Vue 54.4%Language:TypeScript 43.1%Language:HTML 2.2%Language:JavaScript 0.3%