proj1 - Overview CMSC 330 Organization of Programming...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CMSC 330: Organization of Programming Languages Project 1 – Maze Solver CMSC 330 2 Overview • Write Ruby program to process maze files – Parse standard maze file • Goals – Learn Ruby data structures – Learn basic text processing CMSC 330 3 Maze 2D square maze with walls separating cells Examples +-+-+-+-+ |e| | | + + + +-+ | | +-+ + + + | | | + +-+ +-+ | |s | +-+-+-+-+ +-+-+-+-+ |e| | | + + +-+-+ | | | +-+ + + + | | | + +-+ +-+ | |s | +-+-+-+-+ Unsolvable Solvable CMSC 330 4 Parts of Project Read in maze from simple maze file, then 1. Find maze properties 2. Rank paths by cost 3. Pretty-print maze 4. Decide whether maze is solvable Parse standard maze file 2. Else translate into simple maze file CMSC 330 5 Maze Specification • Maze – An n n array of cells
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

proj1 - Overview CMSC 330 Organization of Programming...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online