Skip to main content
Commonmark migration
Source Link

#Ruby, 55 49 bytes

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.

#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.

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.

added 38 characters in body
Source Link
Value Ink
  • 12.6k
  • 1
  • 17
  • 42

#Ruby, 5555 49 bytes

Try it online!Try it online!

-6 bytes from @MartinEnder

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

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

#Ruby, 55 bytes

Try it online!

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

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

#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.

Source Link
Value Ink
  • 12.6k
  • 1
  • 17
  • 42

#Ruby, 55 bytes

Try it online!

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

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