Here's an SS of my character a few problems ago.
Here's the first solution:
// Move to the gem.
// Don't touch the walls!
// Type your code below.
this.moveRight();
this.moveDown();
this.moveRight();
So, very simple to get you used to the game. It adds methods/functions (I hate how JS uses "function" for everything when they would be better off distinguishing.)
this.moveXY(x, y); comes a bit later.
Here's an example of a problem solution:
var enemy = this.findNearestEnemy();
var count = 1;
loop {
enemy = this.findNearestEnemy();
if (enemy)
{
if (this.isReady("cleave"))
{
this.cleave(enemy);
} else {
this.shield();
}
}
}
Here's a problem:
// Collect all the coins in each meadow.
// Use flags to move between meadows.
// Press Submit when you are ready to place flags.
loop {
var flag = this.findFlag();
if (flag) {
// Pick up the flag.
} else {
// Automatically move to the nearest item you see.
var item = this.findNearestItem();
if (item) {
var position = item.pos;
var x = position.x;
var y = position.y;
this.moveXY(x, y);
}
}
}
And the solution:
// Collect all the coins in each meadow.
// Use flags to move between meadows.
// Press Submit when you are ready to place flags.
loop {
var flag = this.findFlag();
if (flag) {
// Pick up the flag.
this.pickUpFlag(flag);
} else {
// Automatically move to the nearest item you see.
var item = this.findNearestItem();
if (item) {
var position = item.pos;
var x = position.x;
var y = position.y;
this.moveXY(x, y);
}
}
}
Which shows how they gently ease you into new methods/functions.
They have a business model as well.
It's also open source.
Like... dammit... this is a friggin' cool game. This is the kind of game parents should PAY their kids to play! It's. That. Damn. Good.
Cudos to the developers. They've created a truly useful, brilliant game.