Let's say im creating a tic-tac-toe's game or a slot machine. For it to be won there has got to be 3 of the same pictures in a row (circles/x's for tic-tac-toe or bar/bar/bar for the slots). The problem im having here is that i cannot code such a posible condition.

i was just introduced this year to programming and i would love to continue learning.

any tips or help?

jdbb