day 3 - quick revision and modelization of chemistry engine
GUI is not yet started...I will use dicts, list, sets for IA recognize synthesis and extractions.
I will use a little bit of OOP when needed , and basic GUI upon it when ready...
I have a list of synthesis synth_list which content each reaction :
Aspirin = [['Salicylic_Acid','Ethanoic_Anhydride'],['AcetylSalicylic_Acid','Ethanoic_Acid']]
Paracetamol = [['4_Aminophenol','Ethanoic_Anhydride'],['Paracetamol','Ethanoic_Acid']]
Isoamyl_Acetat = [['Isoamyl_Alcohol','Ethanoic_Acid'],['Isoamyl_Acetat','Water']]
olive_soap = [['Oleine','NaOH'],['oleic_carboxylate','Glycerol']]
Left side is reactiv, Right side is products. I dont use stochiometric coefficient for the moment.
When player will touch cards, IA check if the set matches with known reaction.
I will find pictures to make cards more sexy than equation (ie banana for flavour products, tablets for paracetamol ...)