The same eighteen holes can be scored in different ways, and the way you are playing changes what some rules mean. These are the four you will meet first.
Stroke play
Every stroke on every hole is added up, and the lowest total wins. You must hole out on every hole. If you pick up without holing out and do not put it right before you tee off on the next hole, you are disqualified.
Match play
You play one opponent, hole by hole. Whoever takes fewer strokes wins the hole, and whoever wins more holes wins the match. You may concede your opponent's next stroke, the hole or the whole match, and a concession cannot be turned down or taken back.
How penalties differ
The general penalty is two strokes in stroke play and loss of the hole in match play. In match play you must give the right number when your opponent asks how many strokes you have taken, and tell them when you get a penalty. Getting either wrong can lose you the hole.
Playing out of turn
In stroke play there is no penalty for playing out of turn, and playing when ready is encouraged to keep things moving. In match play there is no penalty either, but your opponent may cancel the stroke and have you play it again in the right order.
Stableford
Stableford is stroke play scored in points on each hole: two points for the target score, which is par unless the committee says otherwise, one point for one over, three for one under, four for two under, and nothing for anything worse than one over. Most points wins. A bad hole costs you only that hole, so once you cannot score a point you should pick up.
Maximum score
In maximum score, each hole has a cap set by the committee, such as twice the par of the hole or a fixed number. If you reach it you pick up and write the maximum. It keeps a round moving, because nobody is left taking shot after shot on one bad hole.
Why the format matters for a handicap
In Kenya, scores from stroke play, Stableford and maximum score can count towards a handicap and match play scores do not, as the Kenya Golf Union's guide for players sets out.
In the rule book: Rules 3, 6 and 21.