A TypeScript-based project that includes both a REST API server and an automated maze solver client. The project is split into two main components:
api/: A Node.js Express server that provides the maze game API endpointsauto-run/: A TypeScript client that automatically solves the maze game using depth-first search algorithm
- RESTful API endpoints for maze game interactions
- Automated maze solving with depth-first search algorithm
- TypeScript implementation with proper type safety
- Modern development setup with Yarn package manager
- Clean and maintainable code structure
The maze sovle will:
- Connect to the API server
- Start a new game
- Solve the maze
- End the game
The API server provides the following endpoints:
GET /game/start: Start a new gameDELETE /: Delete the gameGET /player: Get the playerPUT /player/move: Move to a new roomGET /room/current: Get the current room
The API server is built with:
- Node.js
- Express
- TypeScript
The auto-run client is built with:
- TypeScript
- Node.js
api/: Contains the REST API serverauto-run/: Contains the automated maze solver client
- Node.js (v18 or higher recommended)
- Yarn package manager (v1.22.x)
- TypeScript (v5.x)
- Start the API server:
yarn start:api- Start the maze solver:
yarn start:run#Future Improvements
- Add unit tests