Marauder's Map
Magic Trunk
Help
1 2 3 4 5 6 7 8 9 10 11 12

point()




forward()

dig()  reset()

point("north")
forward(5)

point("east")
forward(2)

point("north")
forward(3)

point("west")
forward(4)

point("south")
forward(2)

dig()
Arithmetic Operators
+ means add: 2 + 3 = 5
- means subtract: 3 - 2 = 1
* means multiply: 2 * 3 = 6
/ means divide: 6 / 3 = 2
^ means "to the power of": 3^2 = 9

Comparison Operators
== means is equal to e.g. 4==4
!= means is not equal to e.g. 3!=4
< means is lower than e.g. 2<3
> means is greater than. e.g. 5>1
>= means is greater or equal to e.g. 5>=1 and 5>=5
<= means is lower or equal to e.g. 2<=3 and 2<=2
© 101Computing.net