Take-A-Glance

Glance is a language that is meant to bridge the gap between code and human description.

"Take a glance" is a game that teaches you the basics of Glance

We will be using Glance to help find objects on the screen

Each level has a label containing a Glance selector pointing to the object you should click on.
For example:

Sometimes the description is not enough by itself.

In these cases we want to add context to our selectors

the > sign is used to give our target (on the right side) the relevant scope (on the left)

In the example below, "circle > square" would be instructing the selector to look for a target square that is in the scope of a circle.

Since there are multiple square on the screen, we narrowed our scope to the square that is inside the circle.

The ^ sign is used for cases where we want to give more information about our object.

In the example below, "circle > square" would be instructing the selector to look for a square that is in the scope of a circle.

Since there is only one yellow square, We could also describe the square as:

"yellow ^ square", which would be instructing Glance to look for an object which is both yellow and a square

The # sign is used to extend our selector, narrowing down which objects it describes.

One of the common uses is when we cannot find a way to differentiate between identical elements, we can tell it to choose a specific one by designating it's place.

In the example below, the two square are identical, so we can reference the second square by using:

"square#2"

Thank you for playing.

If you would like to know more about Glance

visit this website