Вы находитесь на странице: 1из 8

KAUN BANEGA CROREPATI Padmashree Bhat M.S.

Ramaiah Institute Of Technology-Bangalore STORY BOARD "Kaun Banega Crorepati is a quiz based game show. 1. AUDITIONEE, registers for the show by answering a given question through SMS. 2. Based on their answer production team selects for next round at their place. 3. Here the AUDITIONEE is selected for the hot seat based on the result of Fastest Finger First (FFF). 4. Once selected, he fixes the lower limit of the cash prize which he will take if he answers wrongly anywhere after the cash prize limit question. 5. Till the minimum cash prize question there is time limit to answers individual questions till then. 6. In the course of the game he gets four life line, i)50:50,ii).phone a friend, iii).audience poll and iv).expert advice. 7. If he continues giving the correct answer he receives one crore. 8. During different season, festive occasion there may be special episodes which may feature dhamaka Jodi, celebrity special, Scholl events etc. 9. Terms and conditions for participants, sponsors, host, and audience are maintained by production team.

THE MAIN DESIGN

APPLYING SOFTWARE DESIGN PATTERNS TO THE ABOVE STORY 1. FACADE


Intent

Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use. In this case the terms conditions can be considered as a faade as it provides the unified interface for various sub systems (audience, sponsors, participants and host). Participants Faade: Here Faade being a unified interface knows what part of the terms and conditions belongs to which sub class. Subsystem classes: Implement terms and conditions.

2. ADAPTER Intent Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible Participants 1. Target (Medium Media) Defines the domain-specific interface that Client uses. It may need to implement different interfaces to reach the viewers. Eg: for television broadcast the interface is totally different than to display over the net. . 2. Client (Audience, Participants, Host) Collaborates with objects conforming to the Target interface 3. Adaptee (Show Contents and Terms and Condition) Defines an existing interface that needs adapting. Eg: displaying over net 4. Adapter (KBC Show) Adapts the interface of Adaptee to the Target interface

3. STRATEGY Intent Define a family of algorithms, encapsulate each one, and make them Interchangeable. Strategy lets the algorithm vary independently from clients that use it. Participants 1. Strategy (Lifeline) Declares an interface common to all supported algorithms. Context uses this interface to call the lifeline whenever required, or it doesnt calls at all. 2. Concrete Strategy (Lifeline, Question) Answers the question using the Strategy interface (i.e.; lifeline). 3. Context (Composition) It is configured with a Concrete Strategy object.

4. ABSTRACT FACTORY Intent Provide an interface for creating families of related or dependent objects without specifying their concrete classes. Participants 1. Abstract Factory (show): Declares an interface that gives way for combining contestant and occasion pairs. 2. Concrete Factory(show1and show2) Implements the operations to create concrete product objects. 3. Abstract Product (contestant, episode_type) Here contestant class comprised of a common man, Jodi (pair) or celebrity/ies. Episode type class consists of special occasion or general. 4. Client: Audience and host uses/views the interface defined by the production i.e., show.

5. Decorator: Intent Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to sub classing for extending functionality. Participants: 1. Component (question) Defines the interface for objects that can have responsibilities added to them dynamically. 2. Concrete Component (Play_from_home, Studio_audience) Defines an object to which additional responsibilities can be attached. It basically defines an add_on that adds a functionality with being in the compliance of the domain. 4. Decorator Maintains a reference to a Component object and defines an interface that conforms to Component's interface. 5. Concrete Decorator (Add_on_Interface) It adds responsibilities to the component, By allowing people sitting at home to call at the very moment the question is asked similar to FFF, they need to call and answer. On answering correctly they win cash prize. Studio Audience: If the time is very less to start a new show , then there can be a similar rapid fire question round for studio audience.

Вам также может понравиться