src/main/java/ru/alphatech/icfpc/calculator/Calculator.java
changeset 107 6985d0b79267
equal deleted inserted replaced
106:643b85a8a16b 107:6985d0b79267
       
     1 /**
       
     2  * 
       
     3  */
       
     4 package ru.alphatech.icfpc.calculator;
       
     5 
       
     6 import javax.smartcardio.Card;
       
     7 
       
     8 import ru.alphatech.icfpc.cards.ICard;
       
     9 import ru.alphatech.icfpc.game.IValue;
       
    10 import ru.alphatech.icfpc.game.Player;
       
    11 import ru.alphatech.icfpc.game.Value;
       
    12 
       
    13 /**
       
    14  * @author rushan
       
    15  *
       
    16  */
       
    17 public class Calculator
       
    18 {
       
    19 	public static IValue calculate(Player proponent, Player opponent, ICard function, IValue parameter)
       
    20 	{
       
    21 		if (parameter instanceof Value)
       
    22 		{
       
    23 			return function.returnValue(parameter, proponent, opponent);
       
    24 		}
       
    25 		else if (parameter instanceof ICard)
       
    26 		{
       
    27 //			IValue calc = calculate(proponent, opponent, parameter, parameter);
       
    28 //			
       
    29 		}
       
    30 		return null;
       
    31 	}
       
    32 }