Let's mow!!!

Tests

Mowing is a small interface which simulates some automatic mowers in a rectangular field.

A mower is symbolized by three attributes:

A mower can receive three differents orders:

(if you are wondering why 'G' and 'D' instead of 'L' and 'R', that's because the subject was in french... but strangely enough, it's 'W' for West and not 'O' for 'Ouest')

Knowing that, you can write your own instructions in the textarea before clicking of the "Mow them all!" button and enjoying the result. Here is the syntax for the instructions:

Simple example:

5 5
1 2 N
GAGAGAGAA
3 3 E
AADAADADDA