#! -*- coding:utf-8 -*-
# Author:   qianyong
# Created:  2017/3/10

from majiang2.ai.play_mode import MPlayMode
from majiang2.gang_rule.gang_rule import MGangRule

class MGangRuleFactory(object):
    def __init__(self):
        super(MGangRuleFactory, self).__init__()

    @classmethod
    def getGangRule(cls, playMode):
        """判杠规则获取工厂
        输入参数：
            playMode - 玩法

        返回值：
            对应玩法的判和规则
        """
        return MGangRule()
