A downloadable game for Windows

Dev vs Hacker - Battle

You're a dev who knows about logic operators and the basics of a virus behaviour. Your worst nightmare happened and you need to fight the viruses coming using your logic operator knowledge!

How to play

Unfortunately I was unable to implement the tutorial I would like in the game due to lack of time. So if you haven't figured out what to do, here's a more detailed explanation.

Logical operators - operators work as follows:
True worth 1
False worth 0
|| is the same as adding.
&& is the same as multiplying.
! inverts the value, if 0 is 1, if 1 is 0.

Let's go to the examples.
True && True this is the same as 1 times 1 which is 1 (true).
True || False this is the same as 1 plus 0 which is 1 (true).
False || False this is the same as 0 plus 0 which is 0 (false).
! False && True this is the same as inverted 0 -> 1, 1 times 1, this is 1 (true).

In mathematics we use parentheses to specify the order in which the accounts are made, in the same way it works with logical operators.

(True && True) || False, first we solve what is in parentheses and then we join with the rest, in this case it would be (1 * 1) + 0 this is 1 (true).

The inverted sign works with parentheses as well. So if we do! (True && False) the result of what is in parentheses will be reversed! (1 * 0) ->! (0) -> 1

How Viruses works

All the viruses do some damage on reaching the computer. Each one has a special skill, for now just the trojan have already implemented skills. When the trojan reaches the computer he can open a door for new viruses or shake your screen continuously. Everyone has a text in the bottom specifying the logic sentence to be solved. Then click on the virus that you know the answer and move to the right direction, right for true and left for false.

How to install

Just unzip the game files and click in Dev vs Hacker Battle executable to run the game.

Download

Download
Dev vs Hacker Battle Game 15 MB

Leave a comment

Log in with itch.io to leave a comment.