Skip to content

Commit

Permalink
Create 04_theGuard.md (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
kedilayanaveen10 committed Jan 21, 2023
1 parent 7607868 commit a865e23
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions solutions/bonus/04_theGuard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 04_theGuard.md

## Jail the Guard
Put blocks around the guard
```javascript
map.placeObject(half_width+1, half_height-1,'block');
map.placeObject(half_width+2, half_height-1,'block');
map.placeObject(half_width+3, half_height-1,'block');
map.placeObject(half_width+1, half_height,'block');
map.placeObject(half_width+3, half_height,'block');
map.placeObject(half_width+1, half_height+1,'block');
map.placeObject(half_width+2, half_height+1,'block');
map.placeObject(half_width+3, half_height+1,'block');
```


0 comments on commit a865e23

Please sign in to comment.