/*
 * Stratgey: Greedy
 * Description: maximize (positive) difference between number of own pieces and
 		number of opponent's pieces
 * Author: Erik_Kay@next.com
 */

#import "GreedyComp.h"

@implementation GreedyComp

+ (const char *)strategyName
{
    return "Greedy";
}

-(int)scoreBoard:(Board *)b forPlayer:(square_state)type
{
    return (10*([b numberOfPiece:type] - 
    		[b numberOfPiece:OTHER_PLAYER(type)]));
}

@end
