The perceptron makes its decision according to:
w₁x₁ + w₂x₂ + b = 0
Change the weights and bias to see how they change the decision boundary.
For AND and OR, the perceptron can find a separating line. For XOR, the boundary keeps changing because no single straight line can separate the two classes.