#Binary Bomb

1 messages · Page 1 of 1 (latest)

olive spokeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

olive spoke
#

Beg your pardon?
Besides your poor grammar, which makes it very hard to understand what you say, it's also unclear what a "binary bomb" even is and it reveals even less about your specific problem at hand.

According to an "article" I have found this is the description of a binary bomb:

A binary bomb is a program that consists of a sequence of phases. Each phase expects you to type a particular string on stdin. If you type the correct string, then the phase is defused and the bomb proceeds to the next phase. Otherwise, the bomb explodes by printing "BOOM!!!" and then terminating. The bomb is defused when every phase has been defused.

According to it, this would be a 1-stage binary bomb (in Python for simplicity):

print("Stage 1")
if input(">>> ") == "stage 1 string":
    print("Defused")
else:
    print("Boom")
olive spokeBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.