AI operates through lines of code telling a computer what to do, and initially it is a simple use of “and,” “or,” or “not” To give a simple example. Take even numbers AND zero, NOT numbers over 100. Take names beginning with J OR S.
As the lines of coded orders progress, the algorithms get increasingly complex and can be used to solve fearsome problems! The algorithms are dependent upon rules, orders - such as DRAW. But these must be totally unambiguous so that they can be relied upon to give a predictable output.