182 points in 4 players

This commit is contained in:
Nemo 2020-07-21 15:33:55 +05:30
parent e64bacb7ba
commit ef5bd96c4b
3 changed files with 226 additions and 1 deletions

View File

@ -2,7 +2,7 @@
This is a [MiniZinc](https://www.minizinc.org/) based attempt to solve the [Modern Art: Masters Gallery](https://boardgamegeek.com/boardgame/40381/masters-gallery) game.
The current partial implementation (see below for missing rules) results in a highest possible score of 301 for a 2 player game. See [games/04.md](games/04.md) for the complete episode. There are a few more games available in [the games directory](games/).
The current partial implementation (see below for missing rules) results in a highest possible score of 301 for a 2 player game (182 for 4 players). See [games/04.md](games/04.md) for the complete episode. There are a few more games available in [the games directory](games/).
## Plan

28
games/06.json Normal file
View File

@ -0,0 +1,28 @@
{
"visible_count_per_round_per_artist_per_player" : [[[0, 1, 1, 2, 0], [0, 0, 4, 0, 0], [0, 3, 0, 0, 1], [3, 0, 1, 0, 0]], [[2, 1, 0, 1, 0], [4, 0, 0, 0, 0], [0, 4, 0, 0, 0], [0, 0, 4, 0, 0]], [[2, 1, 0, 1, 0], [4, 0, 0, 0, 0], [0, 4, 0, 0, 0], [0, 0, 4, 0, 0]], [[0, 5, 0, 0, 0], [5, 0, 0, 0, 0], [0, 0, 3, 0, 2], [1, 0, 1, 3, 0]]],
"first_player" : [{"e":"Player2"}, {"e":"Player2"}, {"e":"Player2"}, {"e":"Player2"}],
"last_player" : [{"e":"Player1"}, {"e":"Player1"}, {"e":"Player1"}, {"e":"Player2"}],
"total_score_per_round_per_artist" : [[5, 2, 9, 0, 0], [8, 4, 10, 0, 0], [11, 6, 11, 0, 0], [14, 8, 12, 0, 0]],
"CardsForArtist" : [[3, 4, 6, 2, 1], [6, 5, 4, 1, 0], [6, 5, 4, 1, 0], [6, 5, 4, 3, 2]],
"NominalTurnCount" : [4, 4, 4, 5],
"Score" : [99, 182, 82, 134],
"AwardGiven" : [true, true, true, true, true],
"MaxVisibleCards" : 6,
"TotalCardsPlayed" : [[4, 4, 4, 4], [4, 4, 4, 4], [4, 4, 4, 4], [5, 5, 5, 5]],
"StartingCardsInHand" : [[13, 13, 13, 13], [13, 14, 13, 13], [13, 14, 13, 13], [11, 10, 9, 9]],
"CardsDealtPerRound" : [13, 4, 4, 0],
"PlayableCards" : [[13, 14, 13, 13], [13, 14, 13, 13], [15, 14, 13, 13], [12, 10, 10, 9]],
"sorted_artists_per_round" : [{"e":"ChristinP"}, {"e":"KarlGitter"}, {"e":"Krypto"}, {"e":"Yoko"}, {"e":"LiteMetal"}, {"e":"Krypto"}, {"e":"KarlGitter"}, {"e":"ChristinP"}, {"e":"Yoko"}, {"e":"LiteMetal"}, {"e":"Krypto"}, {"e":"KarlGitter"}, {"e":"ChristinP"}, {"e":"Yoko"}, {"e":"LiteMetal"}, {"e":"Krypto"}, {"e":"KarlGitter"}, {"e":"ChristinP"}, {"e":"Yoko"}, {"e":"LiteMetal"}],
"Pn1" : {"set":[{"e":"Player1"}, {"e":"Player2"}, {"e":"Player3"}, {"e":"Player4"}]},
"Pn2" : {"set":[{"e":"Player1"}, {"e":"Player2"}, {"e":"Player3"}, {"e":"Player4"}]},
"Pn3" : {"set":[{"e":"Player1"}, {"e":"Player2"}, {"e":"Player3"}, {"e":"Player4"}]},
"Pn4" : {"set":[{"e":"Player1"}, {"e":"Player3"}, {"e":"Player4"}]},
"award_bonus_per_round_per_artist" : [[4, 0, 6, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]],
"AwardPlayedInRound" : [{"e":"Round1"}, {"e":"Round1"}, {"e":"Round1"}, {"e":"Round1"}, {"e":"Round1"}],
"AwardedArtist" : [{"e":"Krypto"}, {"e":"Krypto"}, {"e":"ChristinP"}, {"e":"ChristinP"}, {"e":"ChristinP"}],
"ranking_score_per_artist_per_round" : [[1, 2, 3, 0, 0], [3, 2, 1, 0, 0], [3, 2, 1, 0, 0], [3, 2, 1, 0, 0]],
"IsArtistRanked" : [[true, true, true, false, false], [true, true, true, false, false], [true, true, true, false, false], [true, true, true, false, false]],
"RoundScore" : [[11, 36, 6, 24], [20, 32, 16, 40], [28, 44, 24, 44], [40, 70, 36, 26]],
"ArtistScore" : [[5, 2, 9, 0, 0], [8, 4, 10, 0, 0], [11, 6, 11, 0, 0], [14, 8, 12, 0, 0]],
"DrawOneCard" : [[[false, false, false, false, false], [false, false, true, false, false], [false, false, false, false, false], [false, false, false, false, false]], [[false, false, false, false, false], [false, false, false, false, false], [false, false, false, false, false], [false, false, false, false, false]], [[true, false, false, true, false], [false, false, false, false, false], [false, false, false, false, false], [false, false, false, false, false]], [[false, true, false, false, false], [false, false, false, false, false], [false, false, false, false, true], [false, false, false, false, false]]]
}

197
games/06.md Normal file
View File

@ -0,0 +1,197 @@
### Round (1)
Player 1 : DCBB
Player 2 : CCCC
Player 3 : DDDA
Player 4 : EEEC
Count(E=Krypto) = 3 (THIRD=1)
Count(D=KarlGitter) = 4 (SECOND=2)
Count(C=ChristinP) = 6 (FIRST=3)
Count(B=Yoko) = 2
Count(A=LiteMetal) = 1
Awards: E>Krypto, D>Krypto, C>ChristinP, B>ChristinP, A>ChristinP
**Artist Scores**:
Krypto:5
KarlGitter:2
ChristinP:9
Yoko:0
LiteMetal:0
**Player Scores**
Player 1 : 11
Player 2 : 36
Player 3 : 6
Player 4 : 24
### Round (2)
Player 1 : EEDB
Player 2 : EEEE
Player 3 : DDDD
Player 4 : CCCC
Count(E=Krypto) = 6 (FIRST=3)
Count(D=KarlGitter) = 5 (SECOND=2)
Count(C=ChristinP) = 4 (THIRD=1)
Count(B=Yoko) = 1
**Artist Scores**:
Krypto:8
KarlGitter:4
ChristinP:10
Yoko:0
LiteMetal:0
**Player Scores**
Player 1 : 20
Player 2 : 32
Player 3 : 16
Player 4 : 40
### Round (3)
Player 1 : EEDB
Player 2 : EEEE
Player 3 : DDDD
Player 4 : CCCC
Count(E=Krypto) = 6 (FIRST=3)
Count(D=KarlGitter) = 5 (SECOND=2)
Count(C=ChristinP) = 4 (THIRD=1)
Count(B=Yoko) = 1
**Artist Scores**:
Krypto:11
KarlGitter:6
ChristinP:11
Yoko:0
LiteMetal:0
**Player Scores**
Player 1 : 28
Player 2 : 44
Player 3 : 24
Player 4 : 44
### Round (4)
Player 1 : DDDDD
Player 2 : EEEEE
Player 3 : CCCAA
Player 4 : ECBBB
Count(E=Krypto) = 6 (FIRST=3)
Count(D=KarlGitter) = 5 (SECOND=2)
Count(C=ChristinP) = 4 (THIRD=1)
Count(B=Yoko) = 3
Count(A=LiteMetal) = 2
**Artist Scores**:
Krypto:14
KarlGitter:8
ChristinP:12
Yoko:0
LiteMetal:0
**Player Scores**
Player 1 : 40
Player 2 : 70
Player 3 : 36
Player 4 : 26
## Final Scores
Player 1 : 99
Player 2 : 182
Player 3 : 82
Player 4 : 134
### Info
A=LiteMetal (17)
B=Yoko (18)
C=ChristinP (19)
D=KarlGitter (20)
E=Krypto (21)
Since this is a 4-player game, the maximum number of visible cards for any artist is 6Scores for unranked artists are 0 for that round.
The syntax for awards is AwardTokenArtist > Awarded Artist (ie, the Award card for `AwardTokenArtist` was played, and the award was given to the `Awarded Artist`).