Try of a game in Cpp