samurai.cpp