Inspiration
We chose the prompt that was tailored towards just solving a problem instead of having to create an interface as well.
What it does
It makes the provided solitaire simulation more efficient in the context of its carbon footprint.
How we built it
By introducing a different sorting algorithm, omitting redundancies, and removing nested "for" loops. We also tried to introduce the "continue" and "break" statements as early as possible to quit a loop sooner rather than later. We also reduced redundant calculations and redundant "print" statements. Additionally, we used the cartesian product for calculating all cards in the deck instead of 3 nested loops.
Challenges we ran into
Simply understanding the nested structures in order to be able to simplify them.
Accomplishments that we're proud of
Simplifying step number 5 (the huge nested structure)
What we learned
The huge impact certain algorithmic choices have on the carbon footprint of an application.
What's next for Accenture_Solitaire-Applicable_Nursing_Camel
Focussing on the upcoming coursework
Built With
- codecarbon
- itertools
- python
Log in or sign up for Devpost to join the conversation.