from enyo.environment import Company, Market, TheGame

market = Market({'market_value': 1000000000000, 'growth_rate': 0.1})
market.add_customers()

our_company = Company('ours', .4)
our_company.set_space_params({
            'competitive_advantage': {
                'market_share': 5,
                'product_quality': 4,
                'product_life_cycle': 2,
                'product_replacement_cycle': 3,
                'customer_loyalty': 4,
                'know_how': 4,
                'vertical_integration': 3,
            },
            'industry_attractiveness': {
                'growth_potential': 4,
                'profit_potential': 4,
                'financial_stability': 4,
                'know_how': 4,
                'resource_utilization': 3, # inefficient to efficient
                'capital_intensity': 3,
                'ease_of_entry': 5, # easy to difficult
                'capacity_utilization': 4,
            },
            'environmental_stability': {
                'technological_changes': 2,
                'rate_of_inflation': 3,
                'demand_variability': 3,
                'barriers_to_entry': 4,
                'competitive_pressure': 2,
                'price_elasticity_of_demand': 1,
                'pressure_from_substitutes': 4
            },
            'financial_strength': {
                'ROI': 5,
                'leverage': 3,
                'liquidity': 2,
                'required_to_available_capital': 2,
                'cash_flow': 4,
                'ease_of_exit': 5,
                'risk_doing_business': 4,
                'inventory_turnover': 4,
            }
})
our_company.make_product({
    'price': 80,
    'innovation': 80,
    'quality': 80
})

other_company = Company('other1', .4)
other_company.set_space_params({
            'competitive_advantage': {
                'market_share': 5,
                'product_replacement_cycle': 3,
                'product_quality': 4,
                'product_life_cycle': 2,
                'customer_loyalty': 4,
                'know_how': 4,
                'vertical_integration': 3,
            },
            'industry_attractiveness': {
                'growth_potential': 4,
                'profit_potential': 4,
                'financial_stability': 4,
                'know_how': 4,
                'resource_utilization': 3, # inefficient to efficient
                'capital_intensity': 3,
                'ease_of_entry': 5, # easy to difficult
                'capacity_utilization': 4,
            },
            'environmental_stability': {
                'technological_changes': 2,
                'rate_of_inflation': 3,
                'demand_variability': 3,
                'barriers_to_entry': 4,
                'competitive_pressure': 2,
                'price_elasticity_of_demand': 1,
                'pressure_from_substitutes': 4
            },
            'financial_strength': {
                'ROI': 5,
                'leverage': 3,
                'liquidity': 2,
                'required_to_available_capital': 2,
                'cash_flow': 4,
                'ease_of_exit': 5,
                'risk_doing_business': 4,
                'inventory_turnover': 4,
            }
})
other_company.make_product({
    'price': 60,
    'innovation': 70,
    'quality': 70
})
other_company2 = Company('other2', .2)
other_company2.set_space_params({
            'competitive_advantage': {
                'market_share': 2,
                'product_replacement_cycle': 2,
                'product_quality': 2,
                'product_life_cycle': 3,
                'customer_loyalty': 4,
                'know_how': 4,
                'vertical_integration': 3,
            },
            'industry_attractiveness': {
                'growth_potential': 4,
                'profit_potential': 4,
                'financial_stability': 4,
                'know_how': 4,
                'resource_utilization': 3, # inefficient to efficient
                'capital_intensity': 3,
                'ease_of_entry': 5, # easy to difficult
                'capacity_utilization': 4,
            },
            'environmental_stability': {
                'technological_changes': 2,
                'rate_of_inflation': 3,
                'demand_variability': 3,
                'barriers_to_entry': 4,
                'competitive_pressure': 2,
                'price_elasticity_of_demand': 1,
                'pressure_from_substitutes': 4
            },
            'financial_strength': {
                'ROI': 5,
                'leverage': 3,
                'liquidity': 2,
                'required_to_available_capital': 2,
                'cash_flow': 4,
                'ease_of_exit': 5,
                'risk_doing_business': 4,
                'inventory_turnover': 4,
            }
})
other_company2.make_product({
    'price': 100,
    'innovation': 80,
    'quality': 80
})
thegame = TheGame(market, [our_company, other_company, other_company2])
@@ -1658,95 +1658,8 @@
 %7D%0A%7D)
-%0Aour_company.make_product(%7B%0A    'price': 80,%0A    'innovation': 80,%0A    'quality': 80%0A%7D)
 %0A%0Aot
@@ -3180,97 +3180,9 @@
 %0A%7D)%0A
-other_company.make_product(%7B%0A    'price': 60,%0A    'innovation': 70,%0A    'quality': 70%0A%7D)
 %0A
+
 othe
@@ -4703,98 +4703,27 @@
 %0A%7D)%0A
-other_company2.make_product(%7B%0A    'price': 100,%0A    'innovation': 80,%0A    'quality': 80%0A%7D)
+# TODO add products
 %0Athe

Revert "add products"