Skip to main content
3 of 3
Commonmark migration

Ruby, 55 49 bytes

Try it online!

-6 bytes from @MartinEnder

->a{%w"Blinky Inky Pinky Clyde"-(a*''=~/-/?[]:a)}

Ruby arrays can undergo set subtraction, making it very easy to remove the appropriate ghosts.

Value Ink
  • 12.6k
  • 1
  • 17
  • 42