You should consult a lawyer before finalizing the rules for your hackathon. Here are some rules suggestions you may find useful. If you're running an ​in-person hackathon​, you must include a code of conduct as well. Here’s a template.