Re: Python coders, can this code be more efficient?

2018-11-20 Thread AudioGames . net Forum — Developers room : connor142 via Audiogames-reflector
Re: Python coders, can this code be more efficient? hi, thanks for your help yall! I'm just starting to try and wrap my head around objects, modules, and classes. It's some of the hardest to understand things I've seen so far but I'll be damned if I stop

Re: Python coders, can this code be more efficient?

2018-11-19 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Python coders, can this code be more efficient? Hi,well, those ifs can be simplified and arranged much cleaner by using a callback system.You for example arrange a dictionary which contains the key input by the player (a, b, c, whatever) and a function handle as value (just an example