In chess, a move can improve your position or take your opponent’s piece, and those gains come at the expense of your opponent.
In the financial world, options represent one form of a zero-sum game since an option will gain or lose value for one party and do the opposite for the other. The buyer and seller are at odds, meaning that a gain for one is a loss for the other. The same holds true for other derivatives.
Stocks, on the other hand, are arguably a non-zero-sum game. Selling a stock may be right for one investor since it gives them cash they need for something like retirement or buying a home, while another investor may benefit from purchasing a stock that goes up over the long term.