Fundynamic / RealBot

Counter-Strike 1.6 - AI Opponent
http://realbot.bots-united.com
52 stars 19 forks source link

Use statemachine for bots #12

Open stefanhendriks opened 6 years ago

stefanhendriks commented 6 years ago

Currently the bot is a whole big bunch of if statements. A good way to deal with this is a state machine.

It also makes it way easier to think about the bot and deduce how it behaves. Now it is one big ball of ifs and maybes :/

stefanhendriks commented 5 years ago

+1 for future me

working on #17 makes me wonder how I ever could work with this codebase without a sane state machine...