This article provides a solution in the R language for Euler Problem 144: How many times does a laser bounce inside an elliptical mirror before the light beam exits it? We can use the solution to this problem to simulate elliptical billiard tables.
In two previous posts, I presented code to teach R to play the trivial game of Tic Tac Toe. I thought this was an unbeatable algorithm. Alas, a comment from Alberto shattered my pride as he was able to beat my code.
Playing arcade games in R? Introducing pong, the first R-cade game. This code simulates the legendary game of pong in your favourite data science language.
Using the R language to build a Tic Tac Toe War Games simulator. Teach your computer to play a perfect game of Naughts and Crosses.
Tic Tac Toe might be a futile children’s game but it can also teach us about artificial intelligence. Tic Tac Toe, or Noughts and Crosses, is a zero-sum game with perfect information. Both players know exactly what the other did and when nobody makes a mistake, the game will always end in a draw. Tic Tac Toe is …