Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 2 Forum
Date: Thu Sep 20 2001 2:59 pm
Author: Danish, Matt R. <mrd@cmu.edu>
Subject: Addendum

I would just like to make a quick note that if you are going to use the setRows and setCols to change the dimension of the maze you will have to call LoadMaze to recreate the roomList and wallList, and LoadMaze takes its own row and column parameters anyway.

setRows and setCols could be defined to call LoadMaze with an alteration to only one parameter, the other one being drawn from the current state---but, judging from the test suites which do not use this functionality and other discussion board replies which state that it simply alters the value of numRows and numCols, this does not seem to be the proper solution.

One further idea is to simply leave the setRows and setCols methods private and have them only be called by LoadMaze, but it adds an unnecessary method call to LoadMaze (they will only be used once, and too simple), and it is not clear from the assignment whether this is permitted or whether the methods have to be public.

Post response

Go to the previous messageGo to the following message
Current Thread Detail:
MazeCreator's setRows and setCols meth...      Danish, Matt R.      Thu Sep 20 2001 2:45 pm       
Addendum      Danish, Matt R.      Thu Sep 20 2001 2:59 pm       
Re: Addendum      Agarwal, Aditya      Fri Sep 21 2001 2:24 am       

Back to previous screen