user: ###Introduction

The [I Ching](https://en.wikipedia.org/wiki/I_Ching) (Yijing, or Book of Changes) is an ancient Chinese book of sixty-four hexagrams. 
A hexagram is a figure composed of six stacked horizontal lines, where each line is either Yang (an unbroken line) or Yin (a broken line):
```
---------    ---- ----    ---------    
---- ----    ---- ----    ---------    
---- ----    ---- ----    ---------    
---------    ---- ----    ---- ----    
---------    ---------    ---- ----    
---- ----    ---- ----    ---------    
```
The book is commonly used as an oracle. After asking it a question about one's present scenario,
each line is determined by random methods to be Yang or Yin. The resulting hexagram is then interpreted by the querent as a symbol of their current situation, and how it might unfold.

This kata will consult the I Ching using the three coin method.

###Instructions

A coin is flipped three times and lands heads
or tails. The three results are used to
determine a line as being either:
```
3 tails          ----x----  Yin (Moving Line*)
2 tails 1 heads  ---------  Yang
1 tails 2 heads  ---- ----  Yin 
3 heads          ----o----  Yang (Moving Line*)

*See bottom of description if curious.
```
This process is repeated six times to determine
each line of the hexagram. The results of these
operations are then stored in a 2D Array like so:
In each array the first index will always be the number of the line ('one' is the bottom line, and 'six' the top), and the other three values will be the results of the coin flips that belong to that line as heads ('h') and tails ('t').

Write a function that will take a 2D Array like the above as argument and return its hexagram as a string. Each line of the hexagram should begin on a new line.

should return:
```
---------
---------
----x----
----o----
---- ----
---- ----
```
You are welcome to consult your new oracle program with a question before pressing submit. You can compare your result [here](http://www.ichingfortune.com/hexagrams.php). The last test case is random and can be used for your query.

*[1] A Moving Line is a Yang line that will change
to Yin or vice versa. The hexagram made by the coin
throws represents the querent's current situation,
and the hexagram that results from changing its
moving lines represents their upcoming situation.*

Answer: {"fn_name": "oracle", "inputs": [[[["two", "h", "h", "t"], ["six", "t", "h", "t"], ["four", "t", "t", "t"], ["one", "h", "t", "h"], ["three", "h", "h", "h"], ["five", "t", "t", "h"]]], [[["six", "t", "t", "h"], ["one", "h", "h", "t"], ["three", "t", "h", "h"], ["two", "t", "t", "t"], ["five", "h", "h", "t"], ["four", "t", "t", "h"]]], [[["five", "h", "h", "h"], ["four", "t", "t", "h"], ["two", "h", "t", "h"], ["one", "h", "h", "t"], ["six", "t", "h", "t"], ["three", "h", "h", "h"]]], [[["one", "t", "t", "t"], ["two", "t", "t", "t"], ["three", "h", "t", "h"], ["four", "h", "h", "t"], ["six", "t", "h", "t"], ["five", "t", "h", "h"]]], [[["three", "h", "t", "h"], ["four", "t", "t", "h"], ["one", "h", "h", "h"], ["two", "t", "t", "h"], ["six", "t", "h", "t"], ["five", "h", "t", "h"]]], [[["four", "t", "h", "h"], ["six", "t", "t", "t"], ["one", "h", "h", "t"], ["three", "t", "t", "t"], ["two", "t", "h", "t"], ["five", "t", "h", "t"]]], [[["five", "t", "h", "h"], ["six", "t", "t", "t"], ["three", "h", "h", "t"], ["one", "t", "t", "t"], ["two", "t", "h", "t"], ["four", "t", "h", "t"]]], [[["six", "t", "h", "t"], ["one", "t", "t", "t"], ["four", "h", "h", "t"], ["three", "t", "t", "t"], ["two", "t", "h", "t"], ["five", "t", "h", "t"]]], [[["two", "t", "h", "h"], ["six", "t", "t", "t"], ["one", "h", "h", "t"], ["three", "t", "h", "t"], ["four", "t", "h", "t"], ["five", "t", "h", "h"]]], [[["four", "t", "h", "h"], ["two", "t", "t", "h"], ["three", "h", "h", "t"], ["one", "t", "h", "h"], ["five", "t", "h", "t"], ["six", "t", "h", "t"]]]], "outputs": [["---------\n---------\n----x----\n----o----\n---- ----\n---- ----"], ["---------\n---- ----\n---------\n---- ----\n----x----\n---- ----"], ["---------\n----o----\n---------\n----o----\n---- ----\n---- ----"], ["---------\n---- ----\n---- ----\n---- ----\n----x----\n----x----"], ["---------\n---- ----\n---------\n---- ----\n---------\n----o----"], ["----x----\n---------\n---- ----\n----x----\n---------\n---- ----"], ["----x----\n---- ----\n---------\n---- ----\n---------\n----x----"], ["---------\n---------\n---- ----\n----x----\n---------\n----x----"], ["----x----\n---- ----\n---------\n---------\n---- ----\n---- ----"], ["---------\n---------\n---- ----\n---- ----\n---------\n---- ----"]]}