Skip to main content
Edied down to save space
Source Link
emanresu A
  • 44.2k
  • 25
  • 40

Schrödinger's cat program

When first run, the program will have a 50/50 chance of doing the following:

A cat program

A standard cat program: read STDIN and put it on STDOUT.

Nothing (no-op)

The programs just halt (the cat is dead).

The behaviour is permanent:

Once the program choose between the two options, it should do it no matter how much times you run the script. This can be done by any means but the program should end and remember its choice when restarted (It's fine if it resets when you reboot).

Schrödinger's cat program

When first run, the program will have a 50/50 chance of doing the following:

A cat program

A standard cat program: read STDIN and put it on STDOUT.

Nothing (no-op)

The programs just halt (the cat is dead).

The behaviour is permanent:

Once the program choose between the two options, it should do it no matter how much times you run the script. This can be done by any means but the program should end and remember its choice when restarted (It's fine if it resets when you reboot).

added 67 characters in body
Source Link
CreaZyp154
  • 833
  • 4
  • 5

Schrödinger's cat programSchrödinger's cat program

When first run, the program will have a 50/50 chance of doing the following:

A cat program

A standard cat program: read STDIN and put it on STDOUT.

Nothing (no-op)

The programs just halt (the cat is dead).

The behaviour is permanent:

Once the program choose between the two options, it should do it no matter how much times you run the script. This can be done by any means but the program should end and remember its choice when restarted (It's fine if it resets when you reboot).

Schrödinger's cat program

When first run, the program will have a 50/50 chance of doing the following:

A cat program

A standard cat program: read STDIN and put it on STDOUT.

Nothing (no-op)

The programs just halt (the cat is dead).

The behaviour is permanent:

Once the program choose between the two options, it should do it no matter how much times you run the script. This can be done by any means but the program should end and remember its choice when restarted (It's fine if it resets when you reboot).

Schrödinger's cat program

When first run, the program will have a 50/50 chance of doing the following:

A cat program

A standard cat program: read STDIN and put it on STDOUT.

Nothing (no-op)

The programs just halt (the cat is dead).

The behaviour is permanent:

Once the program choose between the two options, it should do it no matter how much times you run the script. This can be done by any means but the program should end and remember its choice when restarted (It's fine if it resets when you reboot).

Source Link
CreaZyp154
  • 833
  • 4
  • 5

Schrödinger's cat program

When first run, the program will have a 50/50 chance of doing the following:

A cat program

A standard cat program: read STDIN and put it on STDOUT.

Nothing (no-op)

The programs just halt (the cat is dead).

The behaviour is permanent:

Once the program choose between the two options, it should do it no matter how much times you run the script. This can be done by any means but the program should end and remember its choice when restarted (It's fine if it resets when you reboot).