So it's like this? (aerial view, X=black, O=white)

X
______

O
X
O

And the three in a row are all facing the wall, and each of the three can see the hat(s) of everyone between them and the wall, correct?

Are any of the hostages Jedi? Is there anything else in this room besides the wall, the prisoners, and (presumably) the terrorists who will kill them if they guess wrong?

(Yeah, I know that there aren't workarounds, but I can't help myself.)