 Director John Hughes (I) (qv) said that the cast rehearsed the  entire movie as if it was a play a few times before filming began.  After the film was a hit, Hughes was asked to write the script as a  play so high schoolers could perform it.