Season 9: Episode 4 - The Broken Code

The Broken Code: Since Lily is Robin’s only female friend, she tries to help Robin make a new female friend so that she’ll have someone to hang out while Lily is gone in Rome for a year. Barney confronts Ted about the "weird moment” with Robin, which they work through during the Best Man Poker Game Night. Marshall, still en route, Skypes in via a tablet for the episode, playing the role of judge, deciding whether or not Ted’s "weird moment” with Robin broke the Bro Code.