DDD sample with OO
DDD sample with FP
The first game:
How many triangles can you see?
24, details as follows:
[abc abd abe acd ace ade aef aeg aeh afg afh agh ahi ahj ahk aij aik ajk beh ceg def ehk fhj ghi]
The second game:
How many quadrangles can you see?
18, details as follows:
[aceh adeg adeh afhk aghj aghk bcgh bcih bdfh bdjh bekh cdfg cdji ceki dekj efjk egik fgij]