Click "press to begin" to start the program. You can click any of the functional groups in the blue to get a definition and some examples. The groups in the white are examples of how the different polarities of the molecules affect which attract and repel. For example, when Alcohol touches Carbonyl, they will attract (and then reset). But when Alcohol touches Alkynes, they will repel. To change the speed, set the variable i to different numbers.
Citations: 1 March, Jerry (1992). Advanced organic chemistry: reactions, mechanisms, and structure. John Wiley & Sons. https://chem.libretexts.org/Bookshelves/Organic_Chemistry/Supplemental_Modules_(Organic_Chemistry)/Alkanes https://chem.libretexts.org/Bookshelves/Organic_Chemistry/Supplemental_Modules_(Organic_Chemistry)/Alkenes https://chem.libretexts.org/Bookshelves/Organic_Chemistry/Supplemental_Modules_(Organic_Chemistry)/Alkynes https://sites.google.com/site/chemistryolp/uses-of-alcohol https://chem.libretexts.org/