Exemplo n.º 1
0
 def __mvp(self):
     print u"经过一番估计, 大家认为%s的开发难度为%s点困难度, 这可是个不小的工程,要加油干了。"\
           %(self.__project.name.decode('utf-8'), self.__project.estimate_project_difficulty)
     keyboard.next()
     while (self.__project.remain_difficulty > 0) and (self.__company.money > 0):
       self.work_one_week()
       keyboard.next()
     if self.__company.money > 0:
       print u"%s的第一版终于撸出来啦,他已经具备基本功能"%(self.__project.name)
       self.beta()
     else:
       print u'资金耗尽,项目失败...'
Exemplo n.º 2
0
 def __mvp(self):
     print u"经过一番估计, 大家认为%s的开发难度为%s点困难度, 这可是个不小的工程,要加油干了。"\
           %(self.__project.name.decode('utf-8'), self.__project.estimate_project_difficulty)
     keyboard.next()
     while (self.__project.remain_difficulty > 0) and (self.__company.money > 0):
       self.work_one_week()
       keyboard.next()
     if self.__company.money > 0:
       print u"%s的第一版终于撸出来啦,他已经具备基本功能"%(self.__project.name)
       self.beta()
     else:
       print u'资金耗尽,项目失败...'
Exemplo n.º 3
0
 def opening(self):
     print u'『2015又是一幅好光景啊』' + u',加班结束之后的你看了看四周,已是深夜。'
     print u'你握紧了拳头,心想' + u'『我不能再这么加班下去了,我要改变世界』' + u',灌木丛里的野狗叫了一声,以示鼓励。'
     keyboard.next()
     print u'你决定一起开发一款屌炸天的应用,叫做:'
     self.__project.name = keyboard.input()
     print u'你决定给公司起名为:'
     self.__company.name = keyboard.input()
     print u"你成立了" + self.__company.name.decode('utf-8') +\
           u"你拿出了你毕生的积蓄%s作为%s的启动资金。"\
           %(self.__company.angel_fund, self.__project.name.decode('utf-8'))
     print u'点子和钱都有了,就差几个员工了'
     keyboard.next
Exemplo n.º 4
0
 def opening(self):
     print u'『2015又是一幅好光景啊』'+u',加班结束之后的你看了看四周,已是深夜。'
     print u'你握紧了拳头,心想'+u'『我不能再这么加班下去了,我要改变世界』'+u',灌木丛里的野狗叫了一声,以示鼓励。'
     keyboard.next()
     print u'你决定一起开发一款屌炸天的应用,叫做:'
     self.__project.name = keyboard.input()
     print u'你决定给公司起名为:'
     self.__company.name = keyboard.input()
     print u"你成立了" + self.__company.name.decode('utf-8') +\
           u"你拿出了你毕生的积蓄%s作为%s的启动资金。"\
           %(self.__company.angel_fund, self.__project.name.decode('utf-8'))
     print u'点子和钱都有了,就差几个员工了'
     keyboard.next
Exemplo n.º 5
0
 def hire(self):
     if not self.could_hire():
         return
     print u"你可以最多可以雇佣%s名员工,请谨慎选择:" %(self.max_coders)
     keyboard.next()
     for coder in self.avaliable_coders:
         if not self.could_hire():
             return
         print '------'
         print u"%s: %s 薪水: %s"%(coder.job, coder.name, coder.salary)
         if keyboard.confirm():
             self.coders.append(coder)
             print u"%s加入了你的团队。"%(coder.name)
         if self.coders < self.min_coders:
             print u'你至少需要%s名员工加入你的团队!' %(self.min_coders)
             self.hire()
             return
Exemplo n.º 6
0
 def hire(self):
     if not self.could_hire():
         return
     print u"你可以最多可以雇佣%s名员工,请谨慎选择:" % (self.max_coders)
     keyboard.next()
     for coder in self.avaliable_coders:
         if not self.could_hire():
             return
         print '------'
         print u"%s: %s 薪水: %s" % (coder.job, coder.name, coder.salary)
         if keyboard.confirm():
             self.coders.append(coder)
             print u"%s加入了你的团队。" % (coder.name)
         if self.coders < self.min_coders:
             print u'你至少需要%s名员工加入你的团队!' % (self.min_coders)
             self.hire()
             return
Exemplo n.º 7
0
    def hire(self):
        print u"你可以最多可以雇佣%s名员工,请谨慎选择:" %(self.max_coders)
        keyboard.next()

        #: if has coder could hire
        if not self.could_hire():
            return

        #: if coder is too little
        while len(self.coders) < self.min_coders:
            print u'你至少需要%s名员工加入你的团队!' %(self.min_coders)
            self._hire()

        #: if exit hire
        while len(self.coders) < self.max_coders:
            print "------------------"
            print "当前雇佣程序员人数 %s" %len(self.coders)
            print "------------------"
            print u"是否结束雇佣,确认按 Y"
            if keyboard.confirm():
                break
            else:
                self._hire()
Exemplo n.º 8
0
 def start_hire(self):
     self.hire()
     print ''
     print ','.join(map(lambda x: x.name, self.coders)) + u'带着发家致富的梦想加入的团队。'
     keyboard.next()
Exemplo n.º 9
0
 def start_hire(self):
     self.hire()
     print ''
     print ','.join(map(lambda x: x.name, self.coders)) + u'带着发家致富的梦想加入的团队。'
     keyboard.next()