olifog / HackIt

A Python game
MIT License
0 stars 0 forks source link

Consider turning commands into tokens. #6

Open prail opened 7 years ago

prail commented 7 years ago

It seems you are using a humongous if-else-elif structure to do things with commands. I'm proposing a smaller one. That you would turn the commands into tokens and then parse them...

prail commented 7 years ago

So more like a small toy shell language.

prail commented 7 years ago

@Olimooseman are you there?

olifog commented 7 years ago

Sorry XD

olifog commented 7 years ago

Yeah, okay - that sounds like a good idea. However, I have no idea how to implement it :/ Could you give it a try? (By this I mean: 'Could you do it? :P')

prail commented 7 years ago

@Olimooseman sure...