Clean up platform assignment

By using ``case`` instead of giant ``if…elif…else`` statements, you can save a lot of space and power. In this commit, I favored using permissive conditions (using *value*), but I'm not sure this is even necessary.
Merge pull request #13 from HalosGhost/patch-1

Clean up platform assignment