## On the Subject of Triamonds

Counting to three! How hard can it be?

This module will display six triangles in the shape of a hexagon. The triangles will not flash, but they will move out from the center and return when the sequence finishes. This will be referred to as a pulse. Triangles will also either face up or down, which will be referred to as orientation. In order to determine what triangles to press, follow the following rules.

### Determining colour and orientation

- First, obtain the colours and orientations in the order they pulsed.
- If the triangle that pulsed second, has the same orientation as the first, flip the orientation and the colour of the second triangle. However, if this colour already appeared in the sequence, invert that colour as well.

### Forming the triamond

If at any point during the rules all three triangles are already placed on the board and they are all adjacent you have obtained your triamond. Whenever this happens, continue to the submit part. The pieces must always be placed in their orientation. The board refers to the image next to this text. Refer to the pseudo-appendix Terminology for all terminologies used.

- Try to place your non-black/white triangles on the board in their given orientation. If any triangle has an incorrect orientation, place it at the position of the inverted colour.
- However, if the previous rule caused overlapping triangles do not apply this rule on the triangle with the incorrect colour and follow the subrules. The colour not responsible for this conflict will be referred to as the remaining colour.
- If the remaining colour is black, place it adjacent to the placed piece and outside the hexagon, and place the unplaced triangle counterclockwise.
- If the remaining colour is white, place it adjacent and inside the hexagon, so that the other unplaced colour can be placed clockwise, while still fitting within the hexagon.
- If the remaining colour is neither black or white. Place the unplaced colour so it fits within the hexagon.