Beach

I used to be a regular swimmer before moving to California. I was struggling trying to access a place that I can swim regular once I settled down. I made a set of conditions to determine rather I would go swimming based on my behaviors.

Rules

● If the weather is warm, I will go to the beach (equals 1)

● If the weather is cold, I won’t go to the beach (equals 2)

● If the weather is cold but there is a warm swimming pool nearby, I will go swimming at the pool (equals 3)

● If the weather is cold but there is no warm swimming  pool nearby, I won’t go swimming at all (equals 4)

● If the beach is under 45 mins drive, I will go to the beach. (equals 5)

● If the beach is over 45 mins drive but there is a pool nearby, I will go to the pool. (equals 6)

● If the beach is over 45 mins drive, I won’t go to the beach. (equals 7)

● If it is weekends, I won’t go swimming. (larger than 7)