Module: AMazeIng
- Defined in:
- lib/a_maze_ing/maze.rb,
lib/a_maze_ing/cli.rb,
lib/a_maze_ing/cell.rb,
lib/a_maze_ing/infor.rb,
lib/a_maze_ing/player.rb,
lib/a_maze_ing/version.rb,
lib/a_maze_ing/game_window.rb,
lib/a_maze_ing/configuration.rb
Overview
Credits to: en.wikipedia.org/wiki/Maze_generation_algorithm I use Depth-first search recursive backtracking algorithm You can find the information in the wiki link
Defined Under Namespace
Modules: Configuration Classes: CLI, Cell, GameWindow, Infor, Maze, Player
Constant Summary collapse
- VERSION =
"0.5.5"- DIMENSION =
700- SIDE_BAR =
180- ROWS =
COLS = 10
- PLAYER_COLOR_PRIMARY =
Color::GREEN
- PLAYER_COLOR_SECONDARY =
Color::AQUA
- PLAYER_COLOR_ANGRY =
Color::RED
- STEP_RATE =
the rate of character speed, in pixel, the higher step rate the slower character will move
4- TARGET_CELL_INDEX_X =
Change this if you don’t want it to be at bottom right
COLS - 1
- TARGET_CELL_INDEX_Y =
ROWS - 1