Skip to content

Commit

Permalink
Update firewall tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaman committed Jul 15, 2023
1 parent 5d62752 commit 000c778
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tutorials/cyber-kingdom/firewall/firewall_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ cyber.setupFirewall(function () {
```

## Worm @showdialog
It's a Virus! This virus seems to be a worm that is trying to enter...
It's some malware! This malware seems to be a worm that is trying to enter the castle...
We need to create a rule to stop it coming in the castle!
![Worm](https://raw.githubusercontent.com/CausewayDigital/Minecraft-EE-MakeCode/main/tutorials/cyber-kingdom/firewall/images/level_2.jpg)


## Deny rule
We need to come up with a rule to block access to the worm, but still allow villagers in.
Add a ``||cyber:Add deny firewall rule||`` block to your rules. It allows you to tell the guards to deny access to anyone that satisfies the rule.
Add a ``||cyber:Add deny firewall rule||`` block to your rules. It allows you to tell the guards to deny access to anything that satisfies the rule.

### Distinguishing Features
Can you see anything that might help us distinguish between a villager and a virus?
Can you see anything that might help us distinguish between a villager and a worm?
Press the < (back) button to check the lookout view for what is coming if you aren't sure.
```template
cyber.setupFirewall(function () {
Expand Down
2 changes: 1 addition & 1 deletion tutorials/cyber-kingdom/firewall/firewall_3.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ It's a Virus!


## Stop the virus
Add another rule to stop the virus.
A different type of malware is coming! Add another rule to stop the virus.
Can you see anything that might help us distinguish between a villager and a virus?
Remember, you can press the < (back) button to check the lookout view again.

Expand Down
4 changes: 2 additions & 2 deletions tutorials/cyber-kingdom/firewall/firewall_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Are they all going to be allowed through the firewall?

## More villagers
You may need to make rules using an **and** statement. This means you can combine 2 rules together.
Watch out, some of these villages don't have hats, but they are carrying items like a pickaxe or map.
Watch out, some of these villages don't have hats, but they are carrying items like a pickaxe or map. This means we can't just block anything not wearing a hat.


```template
Expand All @@ -34,7 +34,7 @@ cyber.addDenyFirewallRule(cyber.requireHat(WearingHat.NoHat))
```

### ~ tutorialhint
The virus has 2 legs and doesn't seem to be holding anything.
The virus doesn't seem to be wearing a hat and doesn't seem to be holding anything.

```package
causeway-digital-makecode-extension=github:causewaydigital/pxt-causeway-digital-extension#cyber-kingdom
Expand Down
Binary file modified tutorials/cyber-kingdom/firewall/images/level_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/cyber-kingdom/firewall/images/level_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 000c778

Please sign in to comment.