02 Aug 2014

An API for Abstract Strategy Games

An API for Abstract Strategy Games In this post I describe a simple API for abstract strategy games and algorithms to play these games. An interface like this one is the base of a game-playing framework and it will be used in following blog posts to describe algorithms such as Minimax, Alpha-Beta and Monte-Carlo Tree Search. Read More

22 Jun 2014

Estimating PI using Monte Carlo Simulations

Estimating PI using Monte Carlo Simulations Monte Carlo simulations are a class of computational algorithms that involve multiple computational trials driven by random sampling to approximate the optimal solution. In this post we describe how Monte Carlo simulations work and demo with a JavaScript program how to use this method to estimate the value of π. Read More

07 Apr 2014

Reinstalling Vim on OS X Mavericks

  1. brew install mercurial
  2. hg clone https://code.google.com/p/vim/
  3. cd vim
  4. ./configure --enable-pythoninterp --enable-rubyinterp --prefix=/usr
  5. make
  6. sudo make install
  7. restart the terminal
  8. and vim --version
Read More