boardgamers / gaia-engine

Javascript engine for project gaia
MIT License
13 stars 6 forks source link

Invalid federation given as an option #213

Closed coyotte508 closed 4 years ago

coyotte508 commented 4 years ago

Here is the JSON of the game, Location 2 should not be given as an option.

{
    "options" : {
        "advancedRules" : false,
        "spaceShips" : false,
        "map" : {
            "sectors" : [ 
                {
                    "sector" : "5B",
                    "rotation" : 0,
                    "center" : {
                        "q" : 0,
                        "r" : 0,
                        "s" : 0
                    }
                }, 
                {
                    "sector" : "6B",
                    "rotation" : 1,
                    "center" : {
                        "q" : 5,
                        "r" : -2,
                        "s" : -3
                    }
                }, 
                {
                    "sector" : "2",
                    "rotation" : 0,
                    "center" : {
                        "q" : 2,
                        "r" : 3,
                        "s" : -5
                    }
                }, 
                {
                    "sector" : "7B",
                    "rotation" : 2,
                    "center" : {
                        "q" : -3,
                        "r" : 5,
                        "s" : -2
                    }
                }, 
                {
                    "sector" : "4",
                    "rotation" : 4,
                    "center" : {
                        "q" : -5,
                        "r" : 2,
                        "s" : 3
                    }
                }, 
                {
                    "sector" : "3",
                    "rotation" : 3,
                    "center" : {
                        "q" : -2,
                        "r" : -3,
                        "s" : 5
                    }
                }, 
                {
                    "sector" : "1",
                    "rotation" : 0,
                    "center" : {
                        "q" : 3,
                        "r" : -5,
                        "s" : 2
                    }
                }
            ],
            "mirror" : false
        }
    },

    "moveHistory" : [ 
        "init 2 Gentle-officer-4378", 
        "p1 faction ivits", 
        "p2 faction ambas", 
        "ambas build m -3x4", 
        "ambas build m 2x2", 
        "ivits build PI -1x2", 
        "ambas booster booster4", 
        "ivits booster booster9", 
        "ivits income 1t", 
        "ivits special space-station. build sp -2x2.", 
        "ambas build ts -3x4.", 
        "ivits charge 2pw", 
        "ivits action power6. build m -3x2.", 
        "ambas charge 2pw", 
        "ambas up nav.", 
        "ivits action power3.", 
        "ambas build m -2x5.", 
        "ivits up gaia.", 
        "ambas special step. build m -1x3.", 
        "ivits charge 3pw", 
        "ivits build ts -3x2.", 
        "ambas charge 2pw", 
        "ambas build m -4x6.", 
        "ivits build m -5x1.", 
        "ambas build lab -3x4. tech sci. up sci.", 
        "ivits charge 3pw", 
        "ivits build lab -3x2. tech free2. up sci.", 
        "ambas charge 2pw", 
        "ambas pass booster8", 
        "ivits special 4pw.", 
        "ivits action power7.", 
        "ivits build gf 0x2.", 
        "ivits pass booster4", 
        "ivits income 1t", 
        "ambas action power4.", 
        "ivits build m 0x2.", 
        "ambas charge 1pw", 
        "ambas build ts 2x2.", 
        "ivits charge 1pw", 
        "ivits burn 1. action power5.", 
        "ambas up terra.", 
        "ivits build m 1x2.", 
        "ambas charge 2pw", 
        "ambas build lab 2x2. tech nav. up nav.", 
        "ivits charge 1pw", 
        "ivits build gf 4x0.", 
        "ambas build ts -1x3.", 
        "ivits charge 3pw", 
        "ivits special space-station. build sp -5x2.", 
        "ambas spend 1pw for 1c. pass booster9", 
        "ivits federation -1x2,-2x2,-3x2,0x2,1x2 fed4.", 
        "ivits spend 1pw for 1c. special 4pw.", 
        "ivits spend 1pw for 1c. special step. build m -6x3.", 
        "ivits up sci.", 
        "ivits pass booster8", 
        "ivits income 1t", 
        "ambas action power5.", 
        "ivits up sci.", 
        "ambas up terra.", 
        "ivits special 4pw.", 
        "ambas up terra.", 
        "ivits special space-station. build sp -3x1.", 
        "ambas build m 2x0.", 
        "ivits charge 1pw", 
        "ivits action power4.", 
        "ambas build m 1x-1.", 
        "ivits build ts 0x2.", 
        "ambas charge 2pw", 
        "ambas pass booster2", 
        "ivits build lab 0x2. tech free1. up sci. burn 2. spend 4pw for 1q.", 
        "ambas charge 2pw", 
        "ivits action qic1. tech adv-sci. cover free1. up eco.", 
        "ivits special 3o.", 
        "ivits spend 2o for 2c. build m 4x0.", 
        "ambas charge 2pw", 
        "ivits pass booster9", 
        "ambas income 2t", 
        "ivits income 4pw. income 1pw. income 4pw", 
        "ambas action power4.", 
        "ivits special 4pw.", 
        "ambas up terra.", 
        "ivits special space-station. build sp -4x1.", 
        "ambas build PI -1x3.", 
        "ivits charge 3pw", 
        "ivits federation -1x2,-2x2,-3x1,-3x2,-4x1,-5x1,-5x2,-6x3,0x2,1x2 fed5.", 
        "ambas build ac1 -3x4. tech int. up int.", 
        "ivits charge 2pw", 
        "ivits spend 1pw for 1c. special 3o."
    ],
}