Skip to content

Instantly share code, notes, and snippets.

@petertseng
Created September 8, 2015 08:10
Show Gist options
  • Save petertseng/76d9d05696bba4df54ae to your computer and use it in GitHub Desktop.
Save petertseng/76d9d05696bba4df54ae to your computer and use it in GitHub Desktop.
splendordata
// points, red, green, blue, white, black
protected final static Card[] cardsNormal = new Card[]{
// 3 pointer: 5 of self+2, 3 of every other color except self
// 4 pointer single: 7 of self+1
// 4 pointer multi: 6 of self+1, 3 of self, 3 of self+2
// 5 pointer: 7 of self+1, 3 of self
new Card(CardLevel.THREE, TokenColor.BLACK, 3, 3, 5, 3, 3, 0),
new Card(CardLevel.THREE, TokenColor.BLACK, 4, 6, 3, 0, 0, 3),
new Card(CardLevel.THREE, TokenColor.BLACK, 4, 7, 0, 0, 0, 0),
new Card(CardLevel.THREE, TokenColor.BLACK, 5, 7, 0, 0, 0, 3),
new Card(CardLevel.THREE, TokenColor.BLUE, 3, 3, 3, 0, 3, 5),
new Card(CardLevel.THREE, TokenColor.BLUE, 4, 0, 0, 0, 7, 0),
new Card(CardLevel.THREE, TokenColor.BLUE, 4, 0, 0, 3, 6, 3),
new Card(CardLevel.THREE, TokenColor.BLUE, 5, 0, 0, 3, 7, 0),
new Card(CardLevel.THREE, TokenColor.GREEN, 3, 3, 0, 3, 5, 3),
new Card(CardLevel.THREE, TokenColor.GREEN, 4, 0, 0, 7, 0, 0),
new Card(CardLevel.THREE, TokenColor.GREEN, 4, 0, 3, 6, 3, 0),
new Card(CardLevel.THREE, TokenColor.GREEN, 5, 0, 3, 7, 0, 0),
new Card(CardLevel.THREE, TokenColor.RED, 3, 0, 3, 5, 3, 3),
new Card(CardLevel.THREE, TokenColor.RED, 4, 0, 7, 0, 0, 0),
new Card(CardLevel.THREE, TokenColor.RED, 4, 3, 6, 3, 0, 0),
new Card(CardLevel.THREE, TokenColor.RED, 5, 3, 7, 0, 0, 0),
new Card(CardLevel.THREE, TokenColor.WHITE, 3, 5, 3, 3, 0, 3),
new Card(CardLevel.THREE, TokenColor.WHITE, 4, 0, 0, 0, 0, 7),
new Card(CardLevel.THREE, TokenColor.WHITE, 4, 3, 0, 0, 3, 6),
new Card(CardLevel.THREE, TokenColor.WHITE, 5, 0, 0, 0, 3, 7),
// 6: 6 of self
// 5: 5 of (red->black->white->red, green->green, blue->blue)
// 5-3: 5 of (red->black->green->blue->white->red), 3 of (red-white->black->red, green->green, blue->blue)
// 3-3-2: 3 of self+2, 3 of self-1, 2 of self
// 3-2-2: 3 of self-1, 2 of (black->green->white->black, red->red, blue->blue), 2 of (blue->green->black->blue, red<->white)
// 4-2-1: 4 of self+2, 2 of self+1, 1 of self+3
new Card(CardLevel.TWO, TokenColor.BLACK, 1, 0, 2, 2, 3, 0),
new Card(CardLevel.TWO, TokenColor.BLACK, 1, 0, 3, 0, 3, 2),
new Card(CardLevel.TWO, TokenColor.BLACK, 2, 0, 0, 0, 5, 0),
new Card(CardLevel.TWO, TokenColor.BLACK, 2, 2, 4, 1, 0, 0),
new Card(CardLevel.TWO, TokenColor.BLACK, 2, 3, 5, 0, 0, 0),
new Card(CardLevel.TWO, TokenColor.BLACK, 3, 0, 0, 0, 0, 6),
new Card(CardLevel.TWO, TokenColor.BLUE, 1, 0, 3, 2, 0, 3),
new Card(CardLevel.TWO, TokenColor.BLUE, 1, 3, 2, 2, 0, 0),
new Card(CardLevel.TWO, TokenColor.BLUE, 2, 0, 0, 3, 5, 0),
new Card(CardLevel.TWO, TokenColor.BLUE, 2, 0, 0, 5, 0, 0),
new Card(CardLevel.TWO, TokenColor.BLUE, 2, 1, 0, 0, 2, 4),
new Card(CardLevel.TWO, TokenColor.BLUE, 3, 0, 0, 6, 0, 0),
new Card(CardLevel.TWO, TokenColor.GREEN, 1, 0, 0, 3, 2, 2),
new Card(CardLevel.TWO, TokenColor.GREEN, 1, 3, 2, 0, 3, 0),
new Card(CardLevel.TWO, TokenColor.GREEN, 2, 0, 0, 2, 4, 1),
new Card(CardLevel.TWO, TokenColor.GREEN, 2, 0, 3, 5, 0, 0),
new Card(CardLevel.TWO, TokenColor.GREEN, 2, 0, 5, 0, 0, 0),
new Card(CardLevel.TWO, TokenColor.GREEN, 3, 0, 6, 0, 0, 0),
new Card(CardLevel.TWO, TokenColor.RED, 1, 2, 0, 0, 2, 3),
new Card(CardLevel.TWO, TokenColor.RED, 1, 2, 0, 3, 0, 3),
new Card(CardLevel.TWO, TokenColor.RED, 2, 0, 0, 0, 0, 5),
new Card(CardLevel.TWO, TokenColor.RED, 2, 0, 0, 0, 3, 5),
new Card(CardLevel.TWO, TokenColor.RED, 2, 0, 2, 4, 1, 0),
new Card(CardLevel.TWO, TokenColor.RED, 3, 6, 0, 0, 0, 0),
new Card(CardLevel.TWO, TokenColor.WHITE, 1, 2, 3, 0, 0, 2),
new Card(CardLevel.TWO, TokenColor.WHITE, 1, 3, 0, 3, 2, 0),
new Card(CardLevel.TWO, TokenColor.WHITE, 2, 4, 1, 0, 0, 2),
new Card(CardLevel.TWO, TokenColor.WHITE, 2, 5, 0, 0, 0, 0),
new Card(CardLevel.TWO, TokenColor.WHITE, 2, 5, 0, 0, 0, 3),
new Card(CardLevel.TWO, TokenColor.WHITE, 3, 0, 0, 0, 6, 0),
// 1 pointer: 4 of self+3
// single: 3 of (red->white->blue->black->green->red)
// rainbow: 1 of all except self
// rainbow+1: 2 of self+3, 1 of all others except self
// 3-1-1: 3 of (red<->black, green<->blue, white->white), 1 of self (except white), 1 of (blue->red->white->blue, black->green->white->black)
// 2-2: 2 of (red->red, green<->blue, black<->white), 2 of (red->white->blue->black->green->red)
// 2-1: 2 of self+2, 1 of self+1
// 2-2-1: 2 of self-1, 2 of self+3, 1 of self+1
new Card(CardLevel.ONE, TokenColor.BLACK, 0, 0, 2, 0, 2, 0),
new Card(CardLevel.ONE, TokenColor.BLACK, 0, 0, 3, 0, 0, 0),
new Card(CardLevel.ONE, TokenColor.BLACK, 0, 1, 0, 2, 2, 0),
new Card(CardLevel.ONE, TokenColor.BLACK, 0, 1, 1, 1, 1, 0),
new Card(CardLevel.ONE, TokenColor.BLACK, 0, 1, 1, 2, 1, 0),
new Card(CardLevel.ONE, TokenColor.BLACK, 0, 1, 2, 0, 0, 0),
new Card(CardLevel.ONE, TokenColor.BLACK, 0, 3, 1, 0, 0, 1),
new Card(CardLevel.ONE, TokenColor.BLACK, 1, 0, 0, 4, 0, 0),
new Card(CardLevel.ONE, TokenColor.BLUE, 0, 0, 0, 0, 0, 3),
new Card(CardLevel.ONE, TokenColor.BLUE, 0, 0, 0, 0, 1, 2),
new Card(CardLevel.ONE, TokenColor.BLUE, 0, 0, 2, 0, 0, 2),
new Card(CardLevel.ONE, TokenColor.BLUE, 0, 1, 1, 0, 1, 1),
new Card(CardLevel.ONE, TokenColor.BLUE, 0, 1, 3, 1, 0, 0),
new Card(CardLevel.ONE, TokenColor.BLUE, 0, 2, 1, 0, 1, 1),
new Card(CardLevel.ONE, TokenColor.BLUE, 0, 2, 2, 0, 1, 0),
new Card(CardLevel.ONE, TokenColor.BLUE, 1, 4, 0, 0, 0, 0),
new Card(CardLevel.ONE, TokenColor.GREEN, 0, 0, 0, 1, 2, 0),
new Card(CardLevel.ONE, TokenColor.GREEN, 0, 0, 1, 3, 1, 0),
new Card(CardLevel.ONE, TokenColor.GREEN, 0, 1, 0, 1, 1, 1),
new Card(CardLevel.ONE, TokenColor.GREEN, 0, 1, 0, 1, 1, 2),
new Card(CardLevel.ONE, TokenColor.GREEN, 0, 2, 0, 1, 0, 2),
new Card(CardLevel.ONE, TokenColor.GREEN, 0, 2, 0, 2, 0, 0),
new Card(CardLevel.ONE, TokenColor.GREEN, 0, 3, 0, 0, 0, 0),
new Card(CardLevel.ONE, TokenColor.GREEN, 1, 0, 0, 0, 0, 4),
new Card(CardLevel.ONE, TokenColor.RED, 0, 0, 0, 0, 3, 0),
new Card(CardLevel.ONE, TokenColor.RED, 0, 0, 1, 0, 2, 2),
new Card(CardLevel.ONE, TokenColor.RED, 0, 0, 1, 1, 1, 1),
new Card(CardLevel.ONE, TokenColor.RED, 0, 0, 1, 1, 2, 1),
new Card(CardLevel.ONE, TokenColor.RED, 0, 0, 1, 2, 0, 0),
new Card(CardLevel.ONE, TokenColor.RED, 0, 1, 0, 0, 1, 3),
new Card(CardLevel.ONE, TokenColor.RED, 0, 2, 0, 0, 2, 0),
new Card(CardLevel.ONE, TokenColor.RED, 1, 0, 0, 0, 4, 0),
new Card(CardLevel.ONE, TokenColor.WHITE, 0, 0, 0, 1, 3, 1),
new Card(CardLevel.ONE, TokenColor.WHITE, 0, 0, 0, 2, 0, 2),
new Card(CardLevel.ONE, TokenColor.WHITE, 0, 0, 0, 3, 0, 0),
new Card(CardLevel.ONE, TokenColor.WHITE, 0, 0, 2, 2, 0, 1),
new Card(CardLevel.ONE, TokenColor.WHITE, 0, 1, 1, 1, 0, 1),
new Card(CardLevel.ONE, TokenColor.WHITE, 0, 1, 2, 1, 0, 1),
new Card(CardLevel.ONE, TokenColor.WHITE, 0, 2, 0, 0, 0, 1),
new Card(CardLevel.ONE, TokenColor.WHITE, 1, 0, 4, 0, 0, 0),
};
// points, red, green, blue, white, black
protected final static VisitorCard[] visitorCardsNormal = new VisitorCard[]{
new VisitorCard(3, 3, 3, 3, 0, 0),
new VisitorCard(3, 0, 3, 3, 3, 0),
new VisitorCard(3, 0, 0, 3, 3, 3),
new VisitorCard(3, 3, 0, 0, 3, 3),
new VisitorCard(3, 3, 3, 0, 0, 3),
new VisitorCard(3, 4, 4, 0, 0, 0),
new VisitorCard(3, 0, 4, 4, 0, 0),
new VisitorCard(3, 0, 0, 4, 4, 0),
new VisitorCard(3, 0, 0, 0, 4, 4),
new VisitorCard(3, 4, 0, 0, 0, 4),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment