In this simple but fun challenge, you were asked to determine if Jimmy would fall of their platform. Jimmy has three body parts
\ arranged like this
Platforms are represented with
-. Jimmy will fall off their platform iff they have two or more body parts that are not directly above a platform.
/o\ - -------
Jimmy will balance since all their body parts are above a
/o\ ------ ---
Jimmy will balanced since two body parts are above
/o\ -- ---- --
Jimmy will balance even though they are split between two platforms
Jimmy will not be balanced since two body parts are not above a platform.
Your task is to write a program that takes a platform as a lengthed container containing only
This is code-golf so answers are scored in bytes with fewer bytes being the aim.
- - - - - -- -- -- ---- - -- -- ------- -
0 0 1 1 2 2 2 3