Fun is learning
Koster argues the pleasure of a game comes from mastering a problem or taking in a pattern, not from winning or looking. The brain releases a reward when we learn, so a player grinning at a solved puzzle is showing fun.
From Koster, 2005, p. 40. Koster, R. (2005). A theory of fun for game design. Scottsdale, AZ: Paraglyph Press. ISBN 1-932111-97-2. (The copy's copyright line reads 2005; Open Library gives 6 November 2004. No DOI.)