Both. Of course, no body knows which cards will be dealt and so there is an element of luck involved. However, you can significantly increase your chances of winning in the long term by understanding odds and perfecting your poker game.