Is enemy / bot A.I. part of the model or controller in an MVC game

Posted by Iain on Stack Overflow See other posts from Stack Overflow or by Iain
Published on 2008-12-10T17:07:20Z Indexed on 2010/05/22 22:20 UTC
Read the original article Hit count: 289

It could be part of the model because it's part of the business logic of the game.

It could be part of the controller because it could be seen as simulating player input, which would be considered part of the controller, right? Or would it?

What about a normal enemy, like a goomba in Mario?

UPDATE: Wow, that's really not the answer I was expecting. As far as I could tell, A.I. is an internal part of the autonomous game system, hence model. I'm still not convinced.

© Stack Overflow or respective owner

Related posts about mvc

Related posts about game-development