ruby-warrior-intermediate's Introduction
Level 9 Never before have you seen a room so full of sludge. Start the fireworks! Tip: Be careful not to let the ticking captive get caught in the flames. Use warrior.distance_of to avoid the captives. ---- |ssC>| |@sss| |ssC | ---- > = Stairs @ = steven (20 HP) C = Captive (1 HP) s = Sludge (12 HP) Warrior Abilities: warrior.distance_of Pass a Space as an argument, and it will return an integer representing the distance to that space. warrior.look Returns an array of up to three Spaces in the given direction (forward by default). warrior.detonate! Detonate a bomb in a given direction (forward by default) which damages that space and surrounding 4 spaces (including yourself). warrior.listen Returns an array of all spaces which have units in them. warrior.direction_of Pass a Space as an argument, and the direction (:left, :right, :forward, :backward) to that space will be returned. warrior.rescue! Rescue a captive from his chains (earning 20 points) in given direction (forward by default). warrior.bind! Binds a unit in given direction to keep him from moving (forward by default). warrior.attack! Attacks a unit in given direction (forward by default). warrior.health Returns an integer representing your health. warrior.rest! Gain 10% of max health back, but do nothing more. warrior.walk! Move in the given direction (forward by default). warrior.feel Returns a Space for the given direction (forward by default). warrior.direction_of_stairs Returns the direction (:left, :right, :forward, :backward) the stairs are from your location. When you're done editing player.rb, run the rubywarrior command again.
ruby-warrior-intermediate's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.