You play as the shark. Each time you kill the fish, you gain 1 point. But if the fish reach the tree at the bottom, then you lose one heart. When you reach 0, the game will stop automatically. Use A and D to move left and right.
I got this idea from Ready, Set Code.