Design Mind
Blog to discuss about OO design concepts, patterns and models.If you wish to write to me : neolite77@gmail.com. Please bear with me till I polish the contents here.
Tuesday, 16 April 2013
Human Behavior model
Labels:
Human Behavior,
Human behaviour model.,
OOD,
UML,
UML design
Monday, 15 April 2013
Car race design
Labels:
car race,
car race design,
design,
OOD,
UML,
UML design
Monday, 8 April 2013
Snake and ladder design
In this article, the idea is to put out a simple design for the snake and ladder game which you can probably use in your college assignments or while building your first games using some programming language. Everyone is aware of the of the game and the rules for playing it. I shall not put it down here, rather delve into creating the class diagram for the same.
Snake and Ladder is a board game and is played by 1 or more players. Board contains numbers 1 to 100 and the player who reaches 100 the first is the winner. The game has various obstacles in the form of snakes which will swallow the player , and move the player down and there are various helpers in the form of ladders as well, which will take the player forward from one location to another. The play starts with the player rolling the dice and the dice number determines the conditions during the game.There are rules which determine when a player can start playing and you can decide what are they before starting the game. Ex: A player needs to roll out 6 on the dice to start the game. There are also rules that decides whether the user has another chance to play if the user climbs the ladder or rolls out 6 on dice. All these rules have to be decided in the beginning of the game.
Snake and Ladder is a board game and is played by 1 or more players. Board contains numbers 1 to 100 and the player who reaches 100 the first is the winner. The game has various obstacles in the form of snakes which will swallow the player , and move the player down and there are various helpers in the form of ladders as well, which will take the player forward from one location to another. The play starts with the player rolling the dice and the dice number determines the conditions during the game.There are rules which determine when a player can start playing and you can decide what are they before starting the game. Ex: A player needs to roll out 6 on the dice to start the game. There are also rules that decides whether the user has another chance to play if the user climbs the ladder or rolls out 6 on dice. All these rules have to be decided in the beginning of the game.
Labels:
design,
Object oriented design,
OOD,
Snake and Ladder,
snake and ladder game,
UML,
UML design
Subscribe to:
Posts (Atom)