diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2022-04-19 21:22:50 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2022-04-19 21:22:50 +0200 |
commit | be89211af895548425be999f660a1195efe9fc8a (patch) | |
tree | 19fcd9aaae9c83fe51f81ef57c1f724392a93f8a /2013-battlecity/Entelect.BattleCity.Challenge/Program.cs | |
parent | 0856dc8dc80d3a8624f1d82b944dcbd9e0021446 (diff) |
Refile for merging repos
Diffstat (limited to '2013-battlecity/Entelect.BattleCity.Challenge/Program.cs')
-rw-r--r-- | 2013-battlecity/Entelect.BattleCity.Challenge/Program.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/2013-battlecity/Entelect.BattleCity.Challenge/Program.cs b/2013-battlecity/Entelect.BattleCity.Challenge/Program.cs new file mode 100644 index 0000000..376807a --- /dev/null +++ b/2013-battlecity/Entelect.BattleCity.Challenge/Program.cs @@ -0,0 +1,27 @@ +using System; +using System.ServiceModel; + +namespace Entelect.BattleCity.Challenge +{ + class Program + { + static void Main(string[] args) + { + try + { + var endpointConfigurationName = "ChallengePort"; + var address = new EndpointAddress(args[0]); + var service = new ChallengeService.ChallengeClient(endpointConfigurationName, address); + var board = service.login(); + + var game = new GameInProgress(service, board); + game.run(); + } + catch (Exception ex) + { + Console.Error.WriteLine("Uncaught exception thrown. Exiting."); + Console.Error.WriteLine(ex.StackTrace.ToString()); + } + } + } +} |