75. ぷよの移動
ぷよが移動可能な方向は、左右と下。
判別供用体(Discriminated Union、DU)
ぷよの落下もmove関数を利用。
パターンマッチ
match direction with
| Right -> {ps.current with position = x + 1, y }
| Left -> {ps.current with position = x - 1, y }
| Down -> {ps.current with position = x , y + 1 }
というように、書くのが一般的。