These are some fun projects I’ve done that aren’t related to my professional work but still worth sharing.
Games in R
I’ve created 2 playable games in R: Tic-Tac-Toe and Hatman. My motivation behind coding these was to introduce R in a fun way to those who are interested in coding while improving my coding skills at the same time. The games come with tutorials and are designed to be fun to play for R beginners while allowing more advanced users to go into the source code to see learn how these programs run.
Tic-Tac-Toe (Download Tic-Tac-Toe on Github)
Tic-Tac-Toe was a fun challenge as R needed to be able to block the player from winning while also trying to win the game itself. This game touches upon conditional statements, random sampling, matrix operations, and plotting simple shapes.
Hatman (like Hangman but nobody gets hurt) (Download Hatman on Github)
My second game in R, Hatman, was a nice compliment to Tic-Tac-Toe in that it was slightly more complicated to code and gives the player more options during gameplay as well. Hatman relies upon the concepts of regular expressions, text parsing, conditional statements, and plotting simple shapes.