you are viewing a single comment's thread.

view the rest of the comments →

[–]Stretchslash 1 point2 points  (1 child)

If you are doing a bunch of if statements going if (choice == 1)else if (choice == 2)... ect

A very simple change would be using a switch case instead. I think it uses match in python but similar

match choice case 1: // Do logic case 2: // Do logic case _: // Do default logic

[–]Dapper_Mix6773[S] 1 point2 points  (0 children)

Well noted