One mom taught her son to thank the other people for playing. Before he would start playing a game, they discussed how he would act at the end of the game.
He could usually remember to thank the other players and sometimes was even able to congratulate the person who won. Even when he lost, he glowed when she showed appreciation for his good sportsmanship and the effort he put into playing the game.