r/shittyprogramming • • Oct 28 '19

A friend's CS assignment.

Post image
306 Upvotes

22 comments sorted by

View all comments

Show parent comment

2

u/Jonno_FTW Oct 29 '19

Don't give up. Think of how you could do this with less code. Tip: look for repeated code and how you might be able to extract the parts that differ.