Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add some simple help for RubyWarrior

  • Loading branch information...
commit b543a29bef7639c073cf9097a1dbb86b90216ca6 1 parent 9deaf56
@deadprogram deadprogram authored
View
2  .gitignore
@@ -7,4 +7,4 @@ nbproject
*.swp
kidsruby.pid
.sass-cache/*
-rubywarrior
+/rubywarrior/
View
2  public/help/kidsruby/glossary.html
@@ -16,7 +16,7 @@
<body class="lesson-set">
<nav id="top">
<a href="#back" id="prev-lesson">&laquo; Back</a>
- <a href="../index.html">Back to Lessons</a>
+ <a href="../index.html">Back to Main</a>
<a href="#next" id="next-lesson">Next &raquo;</a>
</nav>
<h1>Glossary</h1>
View
2  public/help/ruby4kids/lesson_1.html
@@ -17,7 +17,7 @@
<h1>Ruby4Kids - Game Programming - Lesson 1</h1>
<nav id="top">
<a href="#back" id="prev-lesson">&laquo; Back</a>
- <a href="../index.html">Back to Lessons</a>
+ <a href="index.html">Back to Lessons</a>
<a href="lesson_2.html" id="next-lesson">Next &raquo;</a>
</nav>
View
2  public/help/ruby4kids/lesson_2.html
@@ -17,7 +17,7 @@
<h1>Ruby4Kids - Game Programming - Lesson 2</h1>
<nav id="top">
<a href="lesson_1.html" id="prev-lesson">&laquo; Back</a>
- <a href="../index.html">Back to Lessons</a>
+ <a href="index.html">Back to Lessons</a>
<a href="#next" id="next-lesson">Next &raquo;</a>
</nav>
View
48 public/help/rubywarrior/index.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
+ <title>RubyWarrior</title>
+
+ <!-- Load styles -->
+ <link rel="stylesheet" href="../css/blitzer/jquery-ui-1.8.16.custom.css" type="text/css" media="screen" title="style" charset="utf-8">
+ <link rel="stylesheet" href="../css/master.css" type="text/css" media="screen" title="style" charset="utf-8">
+
+ <!-- Load js -->
+
+ <script type="text/javascript" src="../js/jquery/jquery-1.6.2.min.js"></script>
+ <script type="text/javascript" src="../js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
+</head>
+<body class="lesson-set">
+<h1>Ruby Warrior</h1>
+<nav id="top">
+ <a href="../index.html">Back to Main</a>
+</nav>
+<article class="resource">
+<p>
+Ruby Warrior is a game designed to teach Ruby in a fun, interactive way. It was created by Ryan Bates.
+</p>
+<p>
+You play as a warrior climbing a tall tower to reach the precious Ruby at the top level. On each floor you need to write a Ruby script to instruct the warrior to battle enemies, rescue captives, and reach the stairs. You have some idea of what each floor contains, but you never know for certain what will happen. You must give the Warrior up-front to find their own way.
+</p>
+<p>
+To start the game, you just need to enter this little bit of Ruby code into the editor to the left:
+<pre><code>RubyWarrior.play
+</code></pre>
+</p>
+<p>
+You will also need to program your Player, to tell him or her how to figure out what to do. You can start by also entering this little bit of Ruby code into the editor to the left:
+<pre><code>class Player
+ def play_turn(warrior)
+ # add your code here to tell the warrior what to do
+ end
+end
+</code></pre>
+</p>
+<p>
+Now just click on the "Run" button to start playing the game, and follow the instructions that will start to appear in the "Output" tab. Have fun!
+</p>
+</article>
+</body>
+</html>
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.