My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 07, 2008 by siev...@wells.edu
Labels: Featured, Phase-Design
Jobs  
Encapsulate: Better--COMMENT PLEASE!

Modifications Nov. 5 in italics, mostly

Main = Wikoff

Big encasing loop: Play again: Y/N

Calls others, main loop.
Ask for board size, 2 or computer

Ask if 2 person, or computer/person;

Has sufficient space available for global arrays
control flow., change player.

Initializing Globals (preloaded arrays, copy to working array) = Thomas:

  • "Initial" : Algorithm in C++. From rows and columns (Define??)
  • Multiply: Clean and done. Warford conv., Pass x and y by value, return x*y on stack.
Proc: Present instructions

(Proc: Output board (From where/how?) = Stacey)

Proc: User's move Call Output board Solicit move, check validity, repeat. Pass LastPipe (See ToResolve), and change Pipes. Jamie-Leigh

Proc: Computer move (find a valid move, preferably smart, pass it back (See ToResolve) Bailey

Proc: from LastPipe: = Brandon (Pipes to Squares)

From Pipes to Squares, Mark new pipe in, send pair(?) of squares affected. (See ToResolve)

Proc(s): 1 or more: Check if new square, send newsquare/not, check if done, tally win Dayton

(Who's in charge of labeling squares?
dayton (See ToResolve) Output gets from here.)
  • SmpDivMd finds div & mod. Clean & Done.


Algorithms: From horiz/vert pipes labeling, to Squares sides, is pretty clean? (Brandon)

.

Links TopDown GlobalStructs InchStones ToResolve


Comment by odin243, Nov 01, 2008

I'd say we need someone in charge of the main loop, someone in charge of populating the data structures, someone in charge of output, someone in charge of input (and input validation), someone in charge of updating the data structures, someone in charge of seeing who's move it is (or if the game's over). That's 7 major jobs that I can think of. Since the global variables are used by everyone, I don't think it makes sense to assign a person to "oversee" a global variable. Rather, I think we should document the nature of our globals together as a class.


Sign in to add a comment
Hosted by Google Code