Hackers VS Admins - DO+DEV Hackaton Submission (Part 3 - Final)
Tags: dohackathon
Published: 2020-12-17 21:36:57

## What I built

Hey there people on the web. I hope everyone is building marvelous stuff for this amazing hackathon and I am looking forward to seeing a lot of cool projects. Let me tell you a little bit about my project.

### Category Submission: 

Random Roulette 🕹️

### App Link

https://devtectives.asciinaut.sh/

### Screenshots

This is the room choosing screen:

![Starting](https://dev-to-uploads.s3.amazonaws.com/i/h0105uosb798asuft7d3.png)

This is the screen of the game before it starts:

![first-login](https://dev-to-uploads.s3.amazonaws.com/i/r7yk9zbzc2t9yd9xa35f.png) 

This is the 'discuss' round where everyone discusses who to vote for to put in jail.

![dead-player-killer-won](https://dev-to-uploads.s3.amazonaws.com/i/d3bgovvpw1t8r6cjj2zn.png) 


This is what all the players see when it's the medic's round (explanation of the rules in the description):

![black-screen](https://dev-to-uploads.s3.amazonaws.com/i/wp633x4yxbasigszaekq.png)

Oh, and here is a little gif of my opening animation:

![f1c73e592f97bde21fa1816eb6e29257](https://dev-to-uploads.s3.amazonaws.com/i/pxxblbxe2ckr4zusoduv.gif) 
  

### Description

The game is simply a murder mystery. I doubt it if the majority of the players haven't played this format before.

#### Rules:

General Rules:
The game is a murder mystery game where there are 1 hacker, 1 firewall, and the rest are sysadmins. The goal of the game is to catch the hacker through discussion after each round. If the hacker manages to hack all players, he wins. If the sysadmins manage to catch the hacker throughout the game, they win.

What do the rounds consist of:
Each round consists of 4 stages:
* Stage 1 - The screen for all players, except for the hacker becomes black and he chooses his target.
* Stage 2 - The screen for all players, except for the firewall becomes black and he chooses who to defend.
* Stage 3 - The screen for all players comes clean and the results of the hacking appear. If the firewall managed to defend the target, nobody is hacked. If, however, the firewall does not manage to defend the target, the avatar of the player who is hacked is marked with skull and bones and is therefore hacked. Everyone then chooses who to eject from the game, based on the discussion around who the hacker is. If there is a majority of votes towards one player, he goes to jail and is therefore ejected.
* Stage 4 - Everybody has a little time to think over what happened and the stages loop throughout the next rounds.

### Link to Source Code

https://github.com/ascii-naut/DO-DEV-Hackaton

### Permissive License

https://github.com/ascii-naut/DO-DEV-Hackaton/blob/main/LICENSE

## Background

I was heavily inspired by Among Us (predictable, eh?) and I also remember playing this particular format of murder mystery games with a group of friends.

### How I built it

I've been working as a sysadmin for 1 year and as you can imagine, development is not one of my strong sides. Having that in mind, I am amazed by how easy DigitalOcean's app platform is. I am so glad I don't have to deal with server stuff and have the ability to deploy my app with a click of a button. It's superb, really!

I also want to thank everyone who is posting answers on the internet, as I would not be able to finish this journey without you all. Thank you.


### Additional Resources/Info

The game is being built with:
* [socket.io](http://socket.io/)
* [DigitalOcean's APP platform](https://www.digitalocean.com/docs/app-platform/)
* Bootstrap for grinding

P.S. Initially, the name of my submission was 'Murders in the ocean' but after long thinking, I thought hackers VS admins is a better theme for a hackathon.