static void Main(string[] args) { int i = 0; string id = args[i++]; string inPath = args[i++]; string outPath = args[i++]; var player = new PlayerName(); player.Id = id; System.IO.File.WriteAllText(outPath, JsonConvert.SerializeObject( player.DoMove(new StateProvider(inPath)) ) ); }