Subject: Adjustment- 2.99 percent. Fixed

From: Reduction In Home Payment <[email-masked]>
Date: Mon, 09 Jun 2014 08:33:06 -0700

(Obama's Refi Plan - Calculate your new payment)
[Current Low Rate: 2.99% FIXED]
------------------------------------------------
For: [email-masked]

Obama's new program is intended to assist homeowners just like you by lowering your home-payment.

[UPDATE: The official calculator is complimentary and open for you to use.] 

Your new-Savings/payment can be seen below:
:: http://www.garanymap.com/port-ug553/2-6453/724-US-745.index

=------------------------------------------------------------------------
= You have NOT used the quick-calculator to determine your savings. =
=------------------------------------------------------------------------

Thank You,
US Calculator

By TCP-Connect 
to modify sub status write One One Two Park Slope Clifton, NJ 0 7 0 1 1 
or visit- http://www.garanymap.com/head/564/7.html

[Internal-Use-Only]

The following code does work how I need it to, but it's ugly, excessive or a number of other things. I've looked at formulas and attempted to write a few solutions, but I end up with a similar amount of statements.

Is there a type of math formula that would benefit me in this instance or are 16 if statements acceptable?

To explain the code, it's for a kind of simultaneous-turn-based game.. two players have four action buttons each and the results come from an array (0-3), but the variables 'one' & 'two' can be assigned anything if this helps. The result is, 0 = neither win, 1 = p1 wins, 2 = p2 wins, 3 = both win.

public int fightMath(int one, int two) {

    if(one == 0 && two == 0) { result = 0; }
    else if(one == 0 && two == 1) { result = 0; }
    else if(one == 0 && two == 2) { result = 1; }
    else if(one == 0 && two == 3) { result = 2; }
    else if(one == 1 && two == 0) { result = 0; }
    else if(one == 1 && two == 1) { result = 0; }
    else if(one == 1 && two == 2) { result = 2; }
    else if(one == 3 && two == 2) { result = 3; }
    else if(one == 3 && two == 3) { result = 3; }

After reading the answers @Steve Benett provided in his alternate question linked above I can assume there is no straight forward formula answer to this as it is essentially the same as a database. I attempted to explain in the original question
3
that I was making a simple game (fighter) and users have a selection of 4 buttons: blockHigh(0),
2
blockLow(1), attackHigh(2) and attackLow(3). These numbers are held in an array until needed. Later on they are used by the function 'fightMath()' which calls playerOne's selections against