コード例 #1
0
 def block_command(self, line):
     if line == "mv basket/apple":
         hint = _("{{gb:Nearly! The full command is}} {{yb:mv basket/apple ./}} {{gb:- don't forget the dot!}}")
         self.send_hint(hint)
         return True
     else:
         return unblock_commands(line, self.commands)
コード例 #2
0
 def block_command(self):
     if self.last_user_input == "mv basket/apple":
         hint = _("{{gb:Nearly! The full command is}} {{yb:mv basket/apple ./}} {{gb:- don't forget the dot!}}")
         self.send_hint(hint)
         return True
     else:
         return unblock_commands(self.last_user_input, self.commands)
コード例 #3
0
 def block_command(self, line):
     if line == "mv basket/apple":
         hint = _(
             "{{gb:Nearly! The full command is}} {{yb:mv basket/apple ./}} {{gb:- don't forget the dot!}}"
         )
         self.send_hint(hint)
         return True
     else:
         return unblock_commands(line, self.commands)
コード例 #4
0
ファイル: challenge_11.py プロジェクト: iamarf/terminal-quest
 def block_command(self):
     if self.last_user_input == "mv cestino/cestino":
         hint = (
             "{{gb:Quasi! Il comando giusto è}} "
             "{{yb:mv cestino/mela ./}} {{gb:- non dimenticare il punto!}}"
         )
         self.send_hint(hint)
         return True
     else:
         return unblock_commands(self.last_user_input, self.commands)
コード例 #5
0
 def block_command(self):
     if self.last_user_input == "mv basket/apple":
         hint = (
             "{{gb:Nearly!  The full command is}} "
             "{{yb:mv basket/apple ./}} {{gb:- don't forget the dot!}}"
         )
         self.send_hint(hint)
         return True
     else:
         return unblock_commands(self.last_user_input, self.commands)
コード例 #6
0
 def block_command(self, line):
     return unblock_commands(line, self.commands)
コード例 #7
0
ファイル: challenge_13.py プロジェクト: iamarf/terminal-quest
 def block_command(self):
     return unblock_commands(self.last_user_input, self.commands)
コード例 #8
0
ファイル: challenge_13.py プロジェクト: neue/terminal-quest
 def block_command(self):
     return unblock_commands(self.last_user_input, self.commands)
コード例 #9
0
 def block_command(self, line):
     return unblock_commands(line, self.commands)
コード例 #10
0
 def block_command(self, last_user_input):
     # default behaviour
     return unblock_commands(last_user_input, self.commands)
コード例 #11
0
 def block_command(self, last_user_input):
     # default behaviour
     return unblock_commands(last_user_input, self.commands)