Spencer Dinwiddie scored a season-high 31 points while P.J. Washington Jr. added 27, with a season-high five 3-pointers, as the Dallas Mavericks beat the Detroit Pistons 123-117 on Friday night.