Skip to main content
corrected answer
Source Link

PythPyth - 45 38 35 Bytes

=GwI!:G"a")j-["inky""pinky""blinky""clyde")cG

I!:=Gw"a")j-c:" p bl clyde"d"inky "dcG
I!:z\a)j-c:" p bl clyde"d"inky "dcz"d?:z\aZYcz

-1 more byte thanks to Leaky Nun!

Input must be space delimited, all lowercase; outputs missing ghosts on separate lines unless pac-man is in the input.

Pyth - 45 38 35 Bytes

=GwI!:G"a")j-["inky""pinky""blinky""clyde")cG

I!:=Gw"a")j-c:" p bl clyde"d"inky "dcG
I!:z\a)j-c:" p bl clyde"d"inky "dcz

-1 more byte thanks to Leaky Nun!

Input must be space delimited, all lowercase; outputs missing ghosts on separate lines unless pac-man is in the input.

Pyth - 45 38 35 Bytes

=GwI!:G"a")j-["inky""pinky""blinky""clyde")cG

I!:=Gw"a")j-c:" p bl clyde"d"inky "dcG
j-c:" p bl clyde"d"inky "d?:z\aZYcz

-1 more byte thanks to Leaky Nun!

Input must be space delimited, all lowercase; outputs missing ghosts on separate lines unless pac-man is in the input.

improved answer
Source Link

PythPyth - 45 38 3735 Bytes

=GwI!:G"a")j-["inky""pinky""blinky""clyde")cG

I!:=Gw"a")j-c:" p bl clyde"d"inky "dcG
I!:=Gw\az\a)j-c:" p bl clyde"d"inky "dcG"dcz

-1 more byte thanks to Leaky Nun!

Input must be space delimited, all lowercase; outputs missing ghosts on separate lines unless pac-man is in the input.

Pyth - 45 38 37 Bytes

=GwI!:G"a")j-["inky""pinky""blinky""clyde")cG

I!:=Gw"a")j-c:" p bl clyde"d"inky "dcG
I!:=Gw\a)j-c:" p bl clyde"d"inky "dcG

-1 more byte thanks to Leaky Nun!

Input must be space delimited, all lowercase; outputs missing ghosts on separate lines unless pac-man is in the input.

Pyth - 45 38 35 Bytes

=GwI!:G"a")j-["inky""pinky""blinky""clyde")cG

I!:=Gw"a")j-c:" p bl clyde"d"inky "dcG
I!:z\a)j-c:" p bl clyde"d"inky "dcz

-1 more byte thanks to Leaky Nun!

Input must be space delimited, all lowercase; outputs missing ghosts on separate lines unless pac-man is in the input.

improved answer
Source Link

Pyth - 45 38 3837 Bytes

=GwI!:G"a")j-["inky""pinky""blinky""clyde")cG

I!:=Gw"a")j-c:" p bl clyde"d"inky "dcG
I!:=Gw"a"=Gw\a)j-c:" p bl clyde"d"inky "dcG

-1 more byte thanks to Leaky Nun!

Input must be space delimited, all lowercase; outputs missing ghosts on separate lines unless pac-man is in the input.

Pyth - 45 38 Bytes

=GwI!:G"a")j-["inky""pinky""blinky""clyde")cG
I!:=Gw"a")j-c:" p bl clyde"d"inky "dcG

Input must be space delimited, all lowercase; outputs missing ghosts on separate lines unless pac-man is in the input.

Pyth - 45 38 37 Bytes

=GwI!:G"a")j-["inky""pinky""blinky""clyde")cG

I!:=Gw"a")j-c:" p bl clyde"d"inky "dcG
I!:=Gw\a)j-c:" p bl clyde"d"inky "dcG

-1 more byte thanks to Leaky Nun!

Input must be space delimited, all lowercase; outputs missing ghosts on separate lines unless pac-man is in the input.

how to test answer
Source Link
Loading
Source Link
Loading