@@ -0,0 +1,756 @@
+package edu.nyu.bridge.scoring;%0A%0Aimport com.google.auto.value.AutoValue;%0Aimport edu.nyu.bridge.gen.Bridge;%0Aimport edu.nyu.bridge.util.Calls;%0Aimport edu.nyu.bridge.util.Contract;%0A%0A/** Wraps up a %7B@link Contract%7D and its %7B@link Result%7D tricks. */%0A@AutoValue%0Apublic abstract class ContractResult %7B%0A  public static ContractResult of(Contract contract, Result result) %7B%0A    return new AutoValue_ContractResult(contract, result);%0A  %7D%0A%0A  public static ContractResult of(Bridge.Direction direction, Bridge.Bid bid, int tricks) %7B%0A    return of(Contract.of(Calls.bid2Call(bid), direction), Result.total(tricks));%0A  %7D%0A%0A  public abstract Contract contract();%0A%0A  // number of tricks from perspective of declarer, e.g. 4S, 10 tricks.%0A  public abstract Result score();%0A%7D%0A

add ContractResult AutoValue wrapper for a Contract and its number of tricks