﻿ Card Arithmetic
 Card Arithmetic
 Here are the rules of card arithmetic that must be followed in X-Feeder   1. If you want to make X-Feeder perform an arithmetic operation on two or more cards, enclose the expression in curly brackets. This way you will let the program that the operands are card values and that the result must be a card as well.   2. Each card is assigned a value that is used in arithmetic expressions. The cards from 2 to 10 have the same values (from 2 to 10). Then J is assigned 11, Q - 12, K - 13 and A - 14.   3. You can add, deduct, divide and multiply card values with the usual arithmetic operators.   4. The result of the operation will be considered a card. If it has a value between 2 and 14, it will be converted into a card. Otherwise the number itself will be returned.   Examples:   {2 + 5} = 7 {8 - 6} = 2 {2 + 10} = Q {K+1} = A {Q - 7} = 5 {3 * 9} = 27 (not treated as a card) {A - K} = 1 (not treated as a card)   Instead of the actual card values you can insert different card-related variables. For example:   {poker_1 + poker_2 - poker_3} {hi_card - lo_card}