You play them exactly as you would on a desktop — the only real difference is that not every game is built with laptops in mind, so it is no surprise when something refuses to run.
The usual obstacles are integrated graphics that fall below a game's requirements, a smaller screen resolution, and heat throttling when the vents are blocked. Check the system requirements on the box before buying, keep the laptop on a hard surface so it can breathe, and lower the graphics settings if performance dips.