Code combat/
Code for the game
#Get the Gems and defeat the ogres
hero.moveRight(3)
hero.moveUp(1)
hero.moveRight(1)
hero.moveDown(1)
hero.moveDown(1)
hero.moveDown(1)
hero.moveRight(1)
hero.moveRight(3)
hero.attack("Brak")
hero.attack("Brak")
hero.moveRight(1)
hero.attack("Treg")
hero.attack("Treg")
# You need to say a password to open
the Library Door!
# The password is in the Hints!
# Click the blue Hints button above the code window.
# If you ever get stuck, click Hints!
hero.moveRight(1)
hero.say("hush!") # ∆
hero.moveRight(1)
# Defeat the ogres.
# Remember that they each take two hits.
hero.moveRight(1)
hero.attack("Rig")
hero.attack("Rig")
hero.attack("Gurt")
hero.attack("Gurt")
hero.attack("Ack")
hero.attack("Ack")
# Free the prisoner, defeat the guard
and grab the gem.
# Free Patrick from behind the "Weak Door".
hero.attack("Weak Door")
# Defeat the guard, named "Two".
hero.moveRight(3)
hero.moveRight(1)
hero.attack("Two")
hero.attack("Two")
# Get the gem.
hero.moveDown(3)
Summary of the assignment
I enjoyed this assignment because it was simple but it allowed me to see the greater picture and how coding works at a basic level. This
also gave me the opportunity to familiarize myself with certain aspects of the language. I played in code combat because I am at the
beginners level and I need to see how everything is made from the beginning. Overall, this was a fun and easy assignment. I believe
computer language impacts everyone because nowadays we are so dependent in technology that uses computer language even to the
most basic level. At a minimum, the cellphones that we posses bring us in the loop of computer language. I think everyone can benefit
from knowing computers language. Like any other language, being able to speak computer language allows us to communicate with
computers and create an array of programs that cam range from simple "flappy bird" games to a complex school website. Computer
language can affect the world in a positive and a negative manner. Hacking can be one of those negative scenarios when the language
can be used to take advantage of those that are most vulnerable. In recent years, the field of robotics in medicine has seen much
improvement. One of my favorite designs in this field is the Da Vinci Surgical System. I believe this machine portrays the many ways in
which computer language can benefit us.