package edu.nyu.bridge.scoring;

import com.google.auto.value.AutoValue;
import edu.nyu.bridge.util.Contract;

/** Wraps up a {@link Contract} and its {@link Score}. */
@AutoValue
public abstract class ContractScore {
  public static ContractScore of(Contract contract, Score score) {
    return new AutoValue_ContractScore(contract, score);
  }

  public abstract Contract contract();

  public abstract Score score();
}

@@ -66,16 +66,84 @@
 oValue;%0A
+import edu.nyu.bridge.gen.Bridge;%0Aimport edu.nyu.bridge.util.Calls;%0A
 import e
@@ -408,16 +408,199 @@
 );%0A  %7D%0A%0A
+  public static ContractScore of(Bridge.Direction direction, Bridge.Bid bid, int score) %7B%0A    return of(Contract.of(Calls.bid2Call(bid), direction), Score.of(direction, score));%0A  %7D%0A%0A
   public

add easier factory method