SPACE COWS
Technologies
PYTHON / PYSCRIPT / PYTEST
Grapefruit slice atop a pile of other slices

This project is a part of the MITx 6.00.2x course. It consists of two algorithm implementations solving a transport optimization problem. The objective was to minimize the number of trips Space Cows have to take across the universe. Their spaceship has a weight limit, so they can't all fit in at once.

My design

To create this project, I used a new exciting PyScript, which harnesses the power of Pyodide & WebAssembly to create Python runtime in a browser. I implemented all the functionalities in Python, even DOM manipulations! My additional input for improving the solution to this assignment was to use Test-driven development, which led the implementations of the algorithms to be much more readable.