From lechner@cs.uml.edu Wed Sep 6 18:29:54 2006 From: Bob Lechner Subject: Re: 91.522 question - Larman drew that slide - I didn't, To: cguffey@gmail.com (Chris Guffey) Cc: alison_lea@yahoo.com, kbagley@us.ibm.com, cguffey@gmail.com, agabriel@cs.uml.edu, lechner@cs.uml.edu (Bob Lechner) RJLRef: $PH/06f522/06f522FAQ/larmanFig9.18.txt: > From cguffey@gmail.com Wed Sep 6 09:17:32 2006 > From: "Chris Guffey" > To: "Bob Lechner" > Subject: 91.522 question > > Hi Prof. Lechner, > I have a question on Fig 9.18 on slide 37 from the homeowrk ppt file. > > In this diagram you connected "Die" to "Monopoly Game", I was wondering why > you decided the "Monopoly Game is played with die" relation is better than > say "Player rolls Die"? > Re: 91.522 question - Larman drew that slide - I didn't, I modify some of his to clarify or make a point, but I don't want to stray far from his examples to maintain a connection with the text. Nevertheless that's a good question. I don't always agree with a text's authors. In this case I cut him some slack, because he said it was a partial model. You are anticipating game play which means a sequence of moves by alternating players. One move associates a player with a dice roll and two values in [1..6]. In a simulation or computer player the side effects of a move include your next board position, owned property and bank balance are part of the current sate of each player. The Player class needs attributes for these properties, but the only one I would regard as the player's 'control' state is the board position between moves. A game with a computer wouldn't REQUIRE saving PAST history, but I would consider it for the post-game record - as would legal and bamking archives. There are lots of potential properties of multi-person, multi-typed inventory games (Monopoly. chess, Risk, etc.) that Larman has not begun to discuss. I have some game data models as samples. Other (athletic) games hava a hierarchy of levels orf play above the individua 'move' level (baseball has a pitch and a swing at the bottom of that hierarchy with several possible outcomes:-). So why don't you try to add a game sequence as a list of moves and their financial results? I expect Larman will do this in future chapters.