View on GitHub

BoilerPlates

This repo contains the structures as per the given requirements.. Creating boiler plates of most common problems will help in understanding how design goals are achieved and what their various trade offs.

Design a Snake-Ladder Game

Requirements

Translation into Objects

Expected Queries

Class Diagram Walk Through

  1. Board and cells need to be built.
  2. Since cells are of different type we are using factory pattern to generate different cells.
  3. Players are of different type we are using factory pattern to generate different players.
  4. Building a player is done using builder pattern.

ClassDiagram

Link

Code

Link

Back2HomePage