Spaces:
Configuration error
Configuration error
| 1. LOOKUP TABLES: | |
| • "H" (Hexes): Array where Index = HexID. Value = Resource+Num. | |
| Example: H[1]="W12" -> Hex 1 is Wood 12. | |
| • "N" (Nodes): Array where Index = NodeID. | |
| Format: [ [Neighbors], [HexIDs], Port? ] | |
| Logic: To find yield of Node 10, check N[10]. Get HexIDs (e.g. [1,5]). Look up H[1] and H[5]. | |
| 2. CODES: W=Wood, B=Brick, S=Sheep, Wh=Wheat, O=Ore, D=Desert. | |
| ?3=Any 3:1 port, X2=Specific Resource 2:1 port. | |
| 3. STATE: "bld"=[NodeID, Owner, Type], "rds"=[[From,To], Owner]. | |
| 4. PLAYERS: "res"={Resource:Count}, "dev"={"h":[Hidden Cards], "r":[Revealed] (K=Knight)}, | |
| "stat"=["LR" (Longest Road), "LA" (Largest Army)]. | |
| 5. ROBBER: Located at HexID specified in "meta.robber". H[id] is blocked. | |
| JSON: | |
| { | |
| "meta":{"curr":"shon","phase":"SETUP_FIRST_ROUND","robber":10,"dice":null}, | |
| "H":["","W12","S5","W4","S8","B6","W3","Wh8","B10","W11","D","O3","S4","B10","Wh9","Wh6","S11","O5","Wh9","O2"], | |
| "N":[null,[[2,9],[1]],[[1,3],[1],"Wh2"],[[2,4,11],[2,1],"Wh2"],[[3,5],[2]],[[4,6,13],[3,2]],[[5,7],[3],"B2"],[[6,15],[3],"B2"],[[9,18],[4],"?3"],[[8,10,1],[4,1],"?3"],[[9,11,20],[5,4,1]],[[10,12,3],[5,2,1]],[[11,13,22],[6,5,2]],[[12,14,5],[6,3,2]],[[13,15,24],[7,6,3]],[[14,16,7],[7,3]],[[15,26],[7],"O2"],[[18,28],[8],"S2"],[[17,19,8],[8,4]],[[18,20,30],[9,8,4]],[[19,21,10],[9,5,4]],[[20,22,32],[10,9,5]],[[21,23,12],[10,6,5]],[[22,24,34],[11,10,6]],[[23,25,14],[11,7,6]],[[24,26,36],[12,11,7]],[[25,27,16],[12,7],"O2"],[[26,38],[12]],[[29,17],[8],"S2"],[[28,30,39],[13,8]],[[29,31,19],[13,9,8]],[[30,32,41],[14,13,9]],[[31,33,21],[14,10,9]],[[32,34,43],[15,14,10]],[[33,35,23],[15,11,10]],[[34,36,45],[16,15,11]],[[35,37,25],[16,12,11]],[[36,38,47],[16,12],"?3"],[[37,27],[12],"?3"],[[40,29],[13]],[[39,41,48],[17,13],"W2"],[[40,42,31],[17,14,13]],[[41,43,50],[18,17,14]],[[42,44,33],[18,15,14]],[[43,45,52],[19,18,15]],[[44,46,35],[19,16,15]],[[45,47,54],[19,16]],[[46,37],[16]],[[49,40],[17],"W2"],[[48,50],[17]],[[49,51,42],[18,17],"?3"],[[50,52],[18],"?3"],[[51,53,44],[19,18]],[[52,54],[19],"?3"],[[53,46],[19],"?3"]], | |
| "state":{"bld":[],"rds":[]}, | |
| "players":{"shon":{"vp":1,"res":{}},"daniel":{"vp":0,"res":{}},"nadav":{"vp":0,"res":{}}} | |
| } |