Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
Q&A How do you play cops and robbers?

This Q&A will be used as a general guide to cops-and-robbers challenges. It is not fully inclusive of every cops-and-robbers challenge but it's a good baseline. Basic Premise Cops and Robbers...

0 answers  ·  posted 4y ago by Corsaka‭  ·  edited 4y ago by Corsaka‭

Question cops-and-robbers
#3: Post edited by user avatar Corsaka‭ · 2020-12-07T10:52:01Z (about 4 years ago)
add note
  • This Q&A will be used as a general guide to [cops-and-robbers](https://codegolf.codidact.com/categories/46/tags/4456) challenges. It is not fully inclusive of every cops-and-robbers challenge but it's a good baseline.
  • # Basic Premise
  • Cops and Robbers is a coding challenge that requires you to "crack" a language within a set period of time.
  • Cops create a program that works in at least one language, and post the code for it.<br>
  • Robbers have to try and figure out a language that will work with the supplied source code.
  • Two threads will be created. One for cops, containing all of the challenges, and one for robbers, containing answers for each challenge.
  • <hr>
  • ## Cops
  • * Write a program fulfilling the challenge set in the question, in a language of your choosing.
  • * Obfuscate that code to make it as difficult to guess as possible.
  • * Post a response in the "Cops" thread, formatted as such:<br>
  • `# ???, N bytes` replacing N with the number of bytes, then adding your source code in a code block.
  • * Robbers will try to guess a language that your answer works in. It does not matter if you did not use that language; if it works, it counts.<br>
  • If they do guess, change your title to:<br>
  • `# Language, N bytes, cracked by [Username](Link to answer in robber thread)`.
  • * If nobody has found a correct language within 7 days, you may reveal the answer by changing the title to:<br>
  • `# Language, N bytes, safe`
  • * Ensure that nobody has answered your question in the Robber thread before you reveal your answer.
  • You gain a point for every safe answer.
  • <hr>
  • ## Robbers
  • * Find an uncracked, unsafe answer in the Cops thread.
  • * Attempt to decode the language used in it. Any language that compiles the program will be sufficient to "crack" it.
  • * Once you have cracked the code, post an answer in the Robbers thread with the format:<br>
  • `# Language, N bytes, cracks [Username's post](Link to question in Cops thread)`
  • * Reply to the original post with a comment linking to your answer in the Robbers thread.
  • You gain a point for every question you crack.
  • <hr>
  • **The winner of each challenge is the person with the most points at the end.**
  • This guide does not include the extra challenges that cops-and-robbers questions may include; robbers may be given a challenge to encode their posts a specific way, but this must be specified in the original challenge! Cops may not introduce extra challenges.
  • This Q&A will be used as a general guide to [cops-and-robbers](https://codegolf.codidact.com/categories/46/tags/4456) challenges. It is not fully inclusive of every cops-and-robbers challenge but it's a good baseline.
  • # Basic Premise
  • Cops and Robbers is a coding challenge that requires you to "crack" a language within a set period of time.
  • Cops create a program that works in at least one language, and post the code for it.<br>
  • Robbers have to try and figure out a language that will work with the supplied source code.
  • Two threads will be created. One for cops, containing all of the challenges, and one for robbers, containing answers for each challenge.
  • <hr>
  • ## Cops
  • * Write a program fulfilling the challenge set in the question, in a language of your choosing.
  • * Obfuscate that code to make it as difficult to guess as possible.
  • * Post a response in the "Cops" thread, formatted as such:<br>
  • `# ???, N bytes` replacing N with the number of bytes, then adding your source code in a code block.
  • * Robbers will try to guess a language that your answer works in. It does not matter if you did not use that language; if it works, it counts.<br>
  • If they do guess, change your title to:<br>
  • `# Language, N bytes, cracked by [Username](Link to answer in robber thread)`.
  • * If nobody has found a correct language within 7 days, you may reveal the answer by changing the title to:<br>
  • `# Language, N bytes, safe`
  • * Ensure that nobody has answered your question in the Robber thread before you reveal your answer.
  • You gain a point for every safe answer.
  • <hr>
  • ## Robbers
  • * Find an uncracked, unsafe answer in the Cops thread.
  • * Attempt to decode the language used in it. Any language that compiles the program will be sufficient to "crack" it.
  • * Once you have cracked the code, post an answer in the Robbers thread with the format:<br>
  • `# Language, N bytes, cracks [Username's post](Link to question in Cops thread)`
  • * Reply to the original post with a comment linking to your answer in the Robbers thread.
  • * **You may only guess once for each question, so answer wisely!**
  • You gain a point for every question you crack.
  • <hr>
  • **The winner of each challenge is the person with the most points at the end.**
  • This guide does not include the extra challenges that cops-and-robbers questions may include; robbers may be given a challenge to encode their posts a specific way, but this must be specified in the original challenge! Cops may not introduce extra challenges.
#2: Post edited by user avatar Corsaka‭ · 2020-12-07T10:40:50Z (about 4 years ago)
add link
  • This Q&A will be used as a general guide to [cops-and-robbers] challenges. It is not fully inclusive of every cops-and-robbers challenge but it's a good baseline.
  • # Basic Premise
  • Cops and Robbers is a coding challenge that requires you to "crack" a language within a set period of time.
  • Cops create a program that works in at least one language, and post the code for it.<br>
  • Robbers have to try and figure out a language that will work with the supplied source code.
  • Two threads will be created. One for cops, containing all of the challenges, and one for robbers, containing answers for each challenge.
  • <hr>
  • ## Cops
  • * Write a program fulfilling the challenge set in the question, in a language of your choosing.
  • * Obfuscate that code to make it as difficult to guess as possible.
  • * Post a response in the "Cops" thread, formatted as such:<br>
  • `# ???, N bytes` replacing N with the number of bytes, then adding your source code in a code block.
  • * Robbers will try to guess a language that your answer works in. It does not matter if you did not use that language; if it works, it counts.<br>
  • If they do guess, change your title to:<br>
  • `# Language, N bytes, cracked by [Username](Link to answer in robber thread)`.
  • * If nobody has found a correct language within 7 days, you may reveal the answer by changing the title to:<br>
  • `# Language, N bytes, safe`
  • * Ensure that nobody has answered your question in the Robber thread before you reveal your answer.
  • You gain a point for every safe answer.
  • <hr>
  • ## Robbers
  • * Find an uncracked, unsafe answer in the Cops thread.
  • * Attempt to decode the language used in it. Any language that compiles the program will be sufficient to "crack" it.
  • * Once you have cracked the code, post an answer in the Robbers thread with the format:<br>
  • `# Language, N bytes, cracks [Username's post](Link to question in Cops thread)`
  • * Reply to the original post with a comment linking to your answer in the Robbers thread.
  • You gain a point for every question you crack.
  • <hr>
  • **The winner of each challenge is the person with the most points at the end.**
  • This guide does not include the extra challenges that cops-and-robbers questions may include; robbers may be given a challenge to encode their posts a specific way, but this must be specified in the original challenge! Cops may not introduce extra challenges.
  • This Q&A will be used as a general guide to [cops-and-robbers](https://codegolf.codidact.com/categories/46/tags/4456) challenges. It is not fully inclusive of every cops-and-robbers challenge but it's a good baseline.
  • # Basic Premise
  • Cops and Robbers is a coding challenge that requires you to "crack" a language within a set period of time.
  • Cops create a program that works in at least one language, and post the code for it.<br>
  • Robbers have to try and figure out a language that will work with the supplied source code.
  • Two threads will be created. One for cops, containing all of the challenges, and one for robbers, containing answers for each challenge.
  • <hr>
  • ## Cops
  • * Write a program fulfilling the challenge set in the question, in a language of your choosing.
  • * Obfuscate that code to make it as difficult to guess as possible.
  • * Post a response in the "Cops" thread, formatted as such:<br>
  • `# ???, N bytes` replacing N with the number of bytes, then adding your source code in a code block.
  • * Robbers will try to guess a language that your answer works in. It does not matter if you did not use that language; if it works, it counts.<br>
  • If they do guess, change your title to:<br>
  • `# Language, N bytes, cracked by [Username](Link to answer in robber thread)`.
  • * If nobody has found a correct language within 7 days, you may reveal the answer by changing the title to:<br>
  • `# Language, N bytes, safe`
  • * Ensure that nobody has answered your question in the Robber thread before you reveal your answer.
  • You gain a point for every safe answer.
  • <hr>
  • ## Robbers
  • * Find an uncracked, unsafe answer in the Cops thread.
  • * Attempt to decode the language used in it. Any language that compiles the program will be sufficient to "crack" it.
  • * Once you have cracked the code, post an answer in the Robbers thread with the format:<br>
  • `# Language, N bytes, cracks [Username's post](Link to question in Cops thread)`
  • * Reply to the original post with a comment linking to your answer in the Robbers thread.
  • You gain a point for every question you crack.
  • <hr>
  • **The winner of each challenge is the person with the most points at the end.**
  • This guide does not include the extra challenges that cops-and-robbers questions may include; robbers may be given a challenge to encode their posts a specific way, but this must be specified in the original challenge! Cops may not introduce extra challenges.
#1: Initial revision by user avatar Corsaka‭ · 2020-12-07T10:40:24Z (about 4 years ago)
How do you play cops and robbers?
This Q&A will be used as a general guide to [cops-and-robbers] challenges. It is not fully inclusive of every cops-and-robbers challenge but it's a good baseline.

# Basic Premise

Cops and Robbers is a coding challenge that requires you to "crack" a language within a set period of time.

Cops create a program that works in at least one language, and post the code for it.<br>
Robbers have to try and figure out a language that will work with the supplied source code.

Two threads will be created. One for cops, containing all of the challenges, and one for robbers, containing answers for each challenge.
<hr>

## Cops
* Write a program fulfilling the challenge set in the question, in a language of your choosing.
* Obfuscate that code to make it as difficult to guess as possible.
* Post a response in the "Cops" thread, formatted as such:<br>
`# ???, N bytes` replacing N with the number of bytes, then adding your source code in a code block.
* Robbers will try to guess a language that your answer works in. It does not matter if you did not use that language; if it works, it counts.<br>
If they do guess, change your title to:<br>
`# Language, N bytes, cracked by [Username](Link to answer in robber thread)`.
* If nobody has found a correct language within 7 days, you may reveal the answer by changing the title to:<br>
`# Language, N bytes, safe` 
* Ensure that nobody has answered your question in the Robber thread before you reveal your answer.

You gain a point for every safe answer.
<hr>

## Robbers
* Find an uncracked, unsafe answer in the Cops thread.
* Attempt to decode the language used in it. Any language that compiles the program will be sufficient to "crack" it.
* Once you have cracked the code, post an answer in the Robbers thread with the format:<br>
`# Language, N bytes, cracks [Username's post](Link to question in Cops thread)`
* Reply to the original post with a comment linking to your answer in the Robbers thread.

You gain a point for every question you crack.
<hr>

**The winner of each challenge is the person with the most points at the end.**

This guide does not include the extra challenges that cops-and-robbers questions may include; robbers may be given a challenge to encode their posts a specific way, but this must be specified in the original challenge! Cops may not introduce extra challenges.