Tag Info

Hot answers tagged

14

The dot product of two vectors can tell you if they face each other or not. First vector can probably be the enemies view direction the second one should be a vector pointing from player's position to the enemies position. https://www.youtube.com/watch?v=Q9FZllr6-wY


1

Don't be confused by calling this game tic-tac-toe, it is its own game, and might or might not be as easily solvable as tic-tac-toe. Your game is "player1 wins by a tic-tac-toe draw, player 2 wins by either a tic-tac-toe win or loss." (Or the converse). If you think about it, either this game is a win for the first player, or it's a win for the second ...



Only top voted, non community-wiki answers of a minimum length are eligible