// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Match {
	private Team home;
	private Team away;
	private Result result;
	public Match(Team home, Team away) {
		this.home = home;
		this.away = away;
		this.result = Result.NotPlayed;
	}
	public Team getHome() {
		return home;
	}
	public Team getAway() {
		return away;
	}
	public Result getResult() {
		return result;
	}
	public void homeWin() {
		this.result = Result.HomeWin;
	}
	public void awayWin() {
		this.result = Result.AwayWin;
	}
	@Override
	public String toString() {
		return String.format("%s-%s:%s", home, away, result);
	}
}
