why's it even needed? AI seems really good at doing it without any supporting libraries / frameworks.
so not only is it a ton of code to write but it's a lot to debug and test. that said, it's a lot of fun writing your own engine from scratch if you are into that kind of fun. but if you want to make a game, why write the engine also?