Transformation Rules Applied to File:SpecialMoves.java

Showing full text of file after each rule

Rules AppliedJavaKeywordRule app0.txt PPspaceRule PPifndefRule PPRule PPdefineRule.DefineReplacementRule snippets0b.txt OneDeclarationPerLineRule ArrayDeclaration0Rule AddBracesRule voidstarsnippet.txt StaticVariablesRule StaticFunctionsRule ArrayDeclarationRule StringRule DeclarationAssignmentRule PointerRule snippets2.txt snippets3.txt ElseIfRule PrintfRule UninitializedVariableRule InsertClassRule (Final Version)
JavaKeywordRule
app0.txt
PPspaceRule
PPifndefRule
PPRule
PPdefineRule.DefineReplacementRule
snippets0b.txt
OneDeclarationPerLineRule
ArrayDeclaration0Rule
AddBracesRule
voidstarsnippet.txt
StaticVariablesRule
StaticFunctionsRule
ArrayDeclarationRule
StringRule
DeclarationAssignmentRule
PointerRule
snippets2.txt
snippets3.txt
ElseIfRule
PrintfRule
UninitializedVariableRule
InsertClassRule
final
#ifndef lint
static char sccsid[] = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
#endif
# include	"monop.ext"
static char * perc[] = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void inc_tax(void) {
    regint worth,
     com_num;
    com_num = getinp("Do you wish to lose 10%% of your total worth or $200? ", perc);
    worth = cur_p->money + prop_worth(cur_p);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (com_num > 2) {
        if (worth < 200) printf(".  Good try, but not quite.\n");
        else if (worth > 200) lucky(".\nGood guess.  ");
        cur_p->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) printf("  OUCH!!!!.\n");
        else if (worth < 200) lucky("\nGood guess.  ");
        cur_p->money -= worth;
    }
    if (worth == 200) lucky("\nIt makes no difference!  ");
}
void goto_jail(void) {
    cur_p->loc = JAIL;
}
void lux_tax(void) {
    printf("You lose $75\n");
    cur_p->money -= 75;
}
void cc(void) {
    get_card( & CC_D);
}
void chance(void) {
    get_card( & CH_D);
}
#ifndef lint
static char sccsid[] = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
#endif
# include	"monop.ext"
static char * incomeTaxChoices[] = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax(void) {
    regint worth,
     answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) printf(".  Good try, but not quite.\n");
        else if (worth > 200) printLuckyMessage(".\nGood guess.  ");
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) printf("  OUCH!!!!.\n");
        else if (worth < 200) printLuckyMessage("\nGood guess.  ");
        currentPlayer->money -= worth;
    }
    if (worth == 200) printLuckyMessage("\nIt makes no difference!  ");
}
void gotoJail(void) {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax(void) {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard(void) {
    getCard( & CC_D);
}
void pickChanceCard(void) {
    getCard( & CH_D);
}
#ifndef lint
static char sccsid[] = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
#endif
#include	"monop.ext"
static char * incomeTaxChoices[] = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax(void) {
    regint worth,
     answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) printf(".  Good try, but not quite.\n");
        else if (worth > 200) printLuckyMessage(".\nGood guess.  ");
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) printf("  OUCH!!!!.\n");
        else if (worth < 200) printLuckyMessage("\nGood guess.  ");
        currentPlayer->money -= worth;
    }
    if (worth == 200) printLuckyMessage("\nIt makes no difference!  ");
}
void gotoJail(void) {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax(void) {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard(void) {
    getCard( & CC_D);
}
void pickChanceCard(void) {
    getCard( & CH_D);
}
#if !defined(lint)
static char sccsid[] = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
#endif
#include	"monop.ext"
static char * incomeTaxChoices[] = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax(void) {
    regint worth,
     answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) printf(".  Good try, but not quite.\n");
        else if (worth > 200) printLuckyMessage(".\nGood guess.  ");
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) printf("  OUCH!!!!.\n");
        else if (worth < 200) printLuckyMessage("\nGood guess.  ");
        currentPlayer->money -= worth;
    }
    if (worth == 200) printLuckyMessage("\nIt makes no difference!  ");
}
void gotoJail(void) {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax(void) {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard(void) {
    getCard( & CC_D);
}
void pickChanceCard(void) {
    getCard( & CH_D);
}
static char sccsid[] = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static char * incomeTaxChoices[] = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax(void) {
    regint worth,
     answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) printf(".  Good try, but not quite.\n");
        else if (worth > 200) printLuckyMessage(".\nGood guess.  ");
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) printf("  OUCH!!!!.\n");
        else if (worth < 200) printLuckyMessage("\nGood guess.  ");
        currentPlayer->money -= worth;
    }
    if (worth == 200) printLuckyMessage("\nIt makes no difference!  ");
}
void gotoJail(void) {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax(void) {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard(void) {
    getCard( & CC_D);
}
void pickChanceCard(void) {
    getCard( & CH_D);
}
static char sccsid[] = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static char * incomeTaxChoices[] = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax(void) {
    register int worth,
     answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) printf(".  Good try, but not quite.\n");
        else if (worth > 200) printLuckyMessage(".\nGood guess.  ");
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) printf("  OUCH!!!!.\n");
        else if (worth < 200) printLuckyMessage("\nGood guess.  ");
        currentPlayer->money -= worth;
    }
    if (worth == 200) printLuckyMessage("\nIt makes no difference!  ");
}
void gotoJail(void) {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax(void) {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard(void) {
    getCard( & deck[0]);
}
void pickChanceCard(void) {
    getCard( & deck[1]);
}
static char sccsid[] = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static char * incomeTaxChoices[] = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax(void) {
    int worth,
     answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) printf(".  Good try, but not quite.\n");
        else if (worth > 200) printLuckyMessage(".\nGood guess.  ");
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) printf("  OUCH!!!!.\n");
        else if (worth < 200) printLuckyMessage("\nGood guess.  ");
        currentPlayer->money -= worth;
    }
    if (worth == 200) printLuckyMessage("\nIt makes no difference!  ");
}
void gotoJail(void) {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax(void) {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard(void) {
    getCard( & deck[0]);
}
void pickChanceCard(void) {
    getCard( & deck[1]);
}
static char sccsid[] = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static char * incomeTaxChoices[] = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax(void) {
    int worth;
    int answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) printf(".  Good try, but not quite.\n");
        else if (worth > 200) printLuckyMessage(".\nGood guess.  ");
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) printf("  OUCH!!!!.\n");
        else if (worth < 200) printLuckyMessage("\nGood guess.  ");
        currentPlayer->money -= worth;
    }
    if (worth == 200) printLuckyMessage("\nIt makes no difference!  ");
}
void gotoJail(void) {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax(void) {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard(void) {
    getCard( & deck[0]);
}
void pickChanceCard(void) {
    getCard( & deck[1]);
}
static char[] sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String[] incomeTaxChoices = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax(void) {
    int worth;
    int answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) printf(".  Good try, but not quite.\n");
        else if (worth > 200) printLuckyMessage(".\nGood guess.  ");
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) printf("  OUCH!!!!.\n");
        else if (worth < 200) printLuckyMessage("\nGood guess.  ");
        currentPlayer->money -= worth;
    }
    if (worth == 200) printLuckyMessage("\nIt makes no difference!  ");
}
void gotoJail(void) {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax(void) {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard(void) {
    getCard( & deck[0]);
}
void pickChanceCard(void) {
    getCard( & deck[1]);
}
static char[] sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String[] incomeTaxChoices = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax(void) {
    int worth;
    int answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            printf(".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) {
            printf("  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        currentPlayer->money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
void gotoJail(void) {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax(void) {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard(void) {
    getCard( & deck[0]);
}
void pickChanceCard(void) {
    getCard( & deck[1]);
}
static char[] sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String[] incomeTaxChoices = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax() {
    int worth;
    int answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = currentPlayer->money + getPropertyWorth(currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            printf(".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) {
            printf("  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        currentPlayer->money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
void gotoJail() {
    currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax() {
    printf("You lose $75\n");
    currentPlayer->money -= 75;
}
void pickCommunityChestCard() {
    getCard( & deck[0]);
}
void pickChanceCard() {
    getCard( & deck[1]);
}
static char[] sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String[] incomeTaxChoices = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
void incomeTax() {
    int worth;
    int answer;
    answer = getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer->money + getPropertyWorth(Monop.currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            printf(".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) {
            printf("  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
void gotoJail() {
    Monop.currentPlayer->location = JAIL_SQUARE_NUMBER;
}
void luxuryTax() {
    printf("You lose $75\n");
    Monop.currentPlayer->money -= 75;
}
void pickCommunityChestCard() {
    getCard( & Monop.deck[0]);
}
void pickChanceCard() {
    getCard( & Monop.deck[1]);
}
static char[] sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String[] incomeTaxChoices = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
static void incomeTax() {
    int worth;
    int answer;
    answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer->money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            printf(".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) {
            printf("  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer->location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    printf("You lose $75\n");
    Monop.currentPlayer->money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard( & Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard( & Monop.deck[1]);
}
static char[] sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String[] incomeTaxChoices = {
    "10%",
     "ten percent",
     "%",
     "$200",
     "200",
     0}
;
static void incomeTax() {
    int worth;
    int answer;
    answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer->money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            printf(".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) {
            printf("  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer->location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    printf("You lose $75\n");
    Monop.currentPlayer->money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard( & Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard( & Monop.deck[1]);
}
static String sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String[] incomeTaxChoices = "";
static void incomeTax() {
    int worth;
    int answer;
    answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer->money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            printf(".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) {
            printf("  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer->location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    printf("You lose $75\n");
    Monop.currentPlayer->money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard( & Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard( & Monop.deck[1]);
}
static String sccsid;
sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String[] incomeTaxChoices;
incomeTaxChoices = "";
static void incomeTax() {
    int worth;
    int answer;
    answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer->money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            printf(".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) {
            printf("  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        Monop.currentPlayer->money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer->location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    printf("You lose $75\n");
    Monop.currentPlayer->money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard( & Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard( & Monop.deck[1]);
}
static String sccsid;
sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String incomeTaxChoices;
incomeTaxChoices = "";
static void incomeTax() {
    int worth;
    int answer;
    answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer.money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    printf("You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            printf(".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        Monop.currentPlayer.money -= 200;
    }
    else {
        printf(", so you pay $%d", worth);
        if (worth > 200) {
            printf("  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        Monop.currentPlayer.money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer.location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    printf("You lose $75\n");
    Monop.currentPlayer.money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard(Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard(Monop.deck[1]);
}
static String sccsid;
sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String incomeTaxChoices;
incomeTaxChoices = "";
static void incomeTax() {
    int worth;
    int answer;
    answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer.money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    fprintf(stdout, "You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            fprintf(stdout, ".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        Monop.currentPlayer.money -= 200;
    }
    else {
        fprintf(stdout, ", so you pay $%d", worth);
        if (worth > 200) {
            fprintf(stdout, "  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        Monop.currentPlayer.money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer.location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    fprintf(stdout, "You lose $75\n");
    Monop.currentPlayer.money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard(Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard(Monop.deck[1]);
}
static String sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String incomeTaxChoices = "";
static void incomeTax() {
    int worth;
    int answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer.money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    fprintf(stdout, "You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            fprintf(stdout, ".  Good try, but not quite.\n");
        }
        else {
            if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
        }
        Monop.currentPlayer.money -= 200;
    }
    else {
        fprintf(stdout, ", so you pay $%d", worth);
        if (worth > 200) {
            fprintf(stdout, "  OUCH!!!!.\n");
        }
        else {
            if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
        }
        Monop.currentPlayer.money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer.location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    fprintf(stdout, "You lose $75\n");
    Monop.currentPlayer.money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard(Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard(Monop.deck[1]);
}
static String sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String incomeTaxChoices = "";
static void incomeTax() {
    int worth;
    int answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer.money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    fprintf(stdout, "You were worth $%d", worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            fprintf(stdout, ".  Good try, but not quite.\n");
        }
        else if (worth > 200) {
            printLuckyMessage(".\nGood guess.  ");
        }
        Monop.currentPlayer.money -= 200;
    }
    else {
        fprintf(stdout, ", so you pay $%d", worth);
        if (worth > 200) {
            fprintf(stdout, "  OUCH!!!!.\n");
        }
        else if (worth < 200) {
            printLuckyMessage("\nGood guess.  ");
        }
        Monop.currentPlayer.money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer.location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    fprintf(stdout, "You lose $75\n");
    Monop.currentPlayer.money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard(Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard(Monop.deck[1]);
}
static String sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String incomeTaxChoices = "";
static void incomeTax() {
    int worth;
    int answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer.money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    System.out.print("You were worth $" + worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            System.out.println(".  Good try, but not quite.");
        }
        else if (worth > 200) {
            printLuckyMessage(".\nGood guess.  ");
        }
        Monop.currentPlayer.money -= 200;
    }
    else {
        System.out.print(", so you pay $" + worth);
        if (worth > 200) {
            System.out.println("  OUCH!!!!.");
        }
        else if (worth < 200) {
            printLuckyMessage("\nGood guess.  ");
        }
        Monop.currentPlayer.money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer.location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    System.out.println("You lose $75");
    Monop.currentPlayer.money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard(Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard(Monop.deck[1]);
}
static String sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
static String incomeTaxChoices = "";
static void incomeTax() {
    int worth = 0;
    int answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
    worth = Monop.currentPlayer.money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
    System.out.print("You were worth $" + worth);
    worth /= 10;
    if (answer > 2) {
        if (worth < 200) {
            System.out.println(".  Good try, but not quite.");
        }
        else if (worth > 200) {
            printLuckyMessage(".\nGood guess.  ");
        }
        Monop.currentPlayer.money -= 200;
    }
    else {
        System.out.print(", so you pay $" + worth);
        if (worth > 200) {
            System.out.println("  OUCH!!!!.");
        }
        else if (worth < 200) {
            printLuckyMessage("\nGood guess.  ");
        }
        Monop.currentPlayer.money -= worth;
    }
    if (worth == 200) {
        printLuckyMessage("\nIt makes no difference!  ");
    }
}
static void gotoJail() {
    Monop.currentPlayer.location = JAIL_SQUARE_NUMBER;
}
static void luxuryTax() {
    System.out.println("You lose $75");
    Monop.currentPlayer.money -= 75;
}
static void pickCommunityChestCard() {
    CardReader.getCard(Monop.deck[0]);
}
static void pickChanceCard() {
    CardReader.getCard(Monop.deck[1]);
}
public class SpecialMoves {
    static String sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
    static String incomeTaxChoices = "";
    static void incomeTax() {
        int worth = 0;
        int answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
        worth = Monop.currentPlayer.money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
        System.out.print("You were worth $" + worth);
        worth /= 10;
        if (answer > 2) {
            if (worth < 200) {
                System.out.println(".  Good try, but not quite.");
            }
            else if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
            Monop.currentPlayer.money -= 200;
        }
        else {
            System.out.print(", so you pay $" + worth);
            if (worth > 200) {
                System.out.println("  OUCH!!!!.");
            }
            else if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
            Monop.currentPlayer.money -= worth;
        }
        if (worth == 200) {
            printLuckyMessage("\nIt makes no difference!  ");
        }
    }

    static void gotoJail() {
        Monop.currentPlayer.location = JAIL_SQUARE_NUMBER;
    }

    static void luxuryTax() {
        System.out.println("You lose $75");
        Monop.currentPlayer.money -= 75;
    }

    static void pickCommunityChestCard() {
        CardReader.getCard(Monop.deck[0]);
    }

    static void pickChanceCard() {
        CardReader.getCard(Monop.deck[1]);
    }

}
public class SpecialMoves {
    static String sccsid = "@(#)spec.c	5.3 (Berkeley) 6/1/90";
    static String incomeTaxChoices = "";
    static void incomeTax() {
        int worth = 0;
        int answer = GetInput.getinp("Do you wish to lose 10%% of your total worth or $200? ", incomeTaxChoices);
        worth = Monop.currentPlayer.money + PropertyFunctions.getPropertyWorth(Monop.currentPlayer);
        System.out.print("You were worth $" + worth);
        worth /= 10;
        if (answer > 2) {
            if (worth < 200) {
                System.out.println(".  Good try, but not quite.");
            }
            else if (worth > 200) {
                printLuckyMessage(".\nGood guess.  ");
            }
            Monop.currentPlayer.money -= 200;
        }
        else {
            System.out.print(", so you pay $" + worth);
            if (worth > 200) {
                System.out.println("  OUCH!!!!.");
            }
            else if (worth < 200) {
                printLuckyMessage("\nGood guess.  ");
            }
            Monop.currentPlayer.money -= worth;
        }
        if (worth == 200) {
            printLuckyMessage("\nIt makes no difference!  ");
        }
    }

    static void gotoJail() {
        Monop.currentPlayer.location = JAIL_SQUARE_NUMBER;
    }

    static void luxuryTax() {
        System.out.println("You lose $75");
        Monop.currentPlayer.money -= 75;
    }

    static void pickCommunityChestCard() {
        CardReader.getCard(Monop.deck[0]);
    }

    static void pickChanceCard() {
        CardReader.getCard(Monop.deck[1]);
    }

}