This article gives information about mathematical details which come up when one tries to build a realistic space simulation game with realistic physics. Focus here is on physics of various kinds, not graphics or networking because these topics are well treated at other places.
Example code is given in C#, because the language is high level and easy to understand and fast enoguh for copy and paste.
How to compute the thrust of multiple thrusters to fullfill the goal to accelerate in a direction or increase the rotational velocity?
This is a problem of mathematical optimization, which is related to operational research. One good method is to use optimization in the form of https://en.wikipedia.org/wiki/Linear_programming , more specifically the simplex algorithm .