Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/randhir200/maze-game-exit-grid
You are playing the famous Maze Runner Arcade Game. The game contains a maze which has values{'L', 'R', 'U', 'D'}, where L -> indicates that you move left, R -> indicates that you move right, U -> indicates that you move up, while D -> indicates that you move down. The score is calculates as the number of moves in which you exit the grid. If you cannot exit the grid, that means your scoreshould be returned as 0. Given a square matrix, denoting the maze, write a program to calculate the score. Note: You will always enter that the maze through the position (0,0).
https://github.com/randhir200/maze-game-exit-grid
Last synced: 1 day ago
JSON representation
You are playing the famous Maze Runner Arcade Game. The game contains a maze which has values{'L', 'R', 'U', 'D'}, where L -> indicates that you move left, R -> indicates that you move right, U -> indicates that you move up, while D -> indicates that you move down. The score is calculates as the number of moves in which you exit the grid. If you cannot exit the grid, that means your scoreshould be returned as 0. Given a square matrix, denoting the maze, write a program to calculate the score. Note: You will always enter that the maze through the position (0,0).
- Host: GitHub
- URL: https://github.com/randhir200/maze-game-exit-grid
- Owner: Randhir200
- Created: 2022-04-17T10:31:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-17T10:53:17.000Z (over 2 years ago)
- Last Synced: 2024-11-06T03:46:59.247Z (about 2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Maze-Game-Exit-Grid
You are playing the famous Maze Runner Arcade Game. The game contains a maze which has values{'L', 'R', 'U', 'D'}, where L -> indicates that you move left, R -> indicates that you move right, U -> indicates that you move up, while D -> indicates that you move down. The score is calculates as the number of moves in which you exit the grid. If you cannot exit the grid, that means your scoreshould be returned as 0. Given a square matrix, denoting the maze, write a program to calculate the score. Note: You will always enter that the maze through the position (0,0).