#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(32, 1, true); WriteLiteral("\n"); EndContext(); #line 4 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" ViewData["Title"] = "Game Setup"; #line default #line hidden BeginContext(76, 25, true); WriteLiteral("\n<!DOCTYPE html>\n\n<html>\n"); EndContext(); BeginContext(101, 47, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7107aab3750c1123d02f9669977be1417c48cee73393", async() => { BeginContext(107, 34, true); WriteLiteral("\n <title>Placing ships</title>\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(148, 1, true); WriteLiteral("\n"); EndContext(); BeginContext(149, 1405, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7107aab3750c1123d02f9669977be1417c48cee74586", async() => { BeginContext(155, 83, true); WriteLiteral("\n<div class=\"\">\n <div>\n <div class=\"\">\n <h1 class=\"display-5\">"); EndContext(); BeginContext(239, 33, false); #line 18 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" Write(Html.DisplayFor(s => s.Player.Name)); #line default #line hidden EndContext(); BeginContext(272, 81, true); WriteLiteral("</h1>\n </div>\n \n <table class=\"border\">\n <tbody>\n"); EndContext(); #line 23 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" for (int i = 0; i < Model.Player.Board.Board.Count; i++) { #line default #line hidden BeginContext(437, 36, true); WriteLiteral(" <tr class=\"border\">\n"); EndContext(); #line 26 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" for (var j = 0; j < Model.Player.Board.Board[i].Count; j++) { #line default #line hidden BeginContext(576, 74, true); WriteLiteral(" <td class=\"border\">\n <a"); EndContext(); BeginWriteAttribute("href", " href=\"", 650, "\"", 667, 4); WriteAttributeValue("", 657, "?cmd=", 657, 5, true); #line 29 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" WriteAttributeValue("", 662, i, 662, 2, false); #line default #line hidden WriteAttributeValue("", 664, ",", 664, 1, true); #line 29 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" WriteAttributeValue("", 665, j, 665, 2, false); #line default #line hidden EndWriteAttribute(); BeginContext(668, 1, true); WriteLiteral(">"); EndContext(); BeginContext(670, 65, false); #line 29 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" Write(WebUI.ConvertToSymbols(Model.Player.Board.Board[i][j].ToString())); #line default #line hidden EndContext(); BeginContext(735, 35, true); WriteLiteral("</a>\n </td>\n"); EndContext(); #line 31 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" } #line default #line hidden BeginContext(792, 22, true); WriteLiteral(" </tr>\n"); EndContext(); #line 33 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" } #line default #line hidden BeginContext(828, 69, true); WriteLiteral(" </tbody>\n </table>\n <div>\n <br>\n"); EndContext(); #line 38 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" foreach (var ship in WebUI.Current.Ships) { #line default #line hidden BeginContext(966, 18, true); WriteLiteral(" <a"); EndContext(); BeginWriteAttribute("href", " href=\"", 984, "\"", 1015, 2); WriteAttributeValue("", 991, "?cmd=choose-", 991, 12, true); #line 40 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" WriteAttributeValue("", 1003, ship.Length, 1003, 12, false); #line default #line hidden EndWriteAttribute(); BeginContext(1016, 1, true); WriteLiteral(">"); EndContext(); BeginContext(1018, 34, false); #line 40 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" Write(ship.ToString().Replace("+", "⚓️")); #line default #line hidden EndContext(); BeginContext(1052, 9, true); WriteLiteral("</a><br>\n"); EndContext(); #line 41 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" } #line default #line hidden BeginContext(1076, 12, true); WriteLiteral(" "); EndContext(); #line 43 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" var orientation = "Horizontal"; if (WebUI.RotationInHand) { orientation = "Vertical"; } #line default #line hidden BeginContext(1277, 12, true); WriteLiteral(" "); EndContext(); #line 50 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" if (WebUI.ShipInHand != 0) { #line default #line hidden BeginContext(1317, 37, true); WriteLiteral(" <a href=\"?cmd=rotate\">🔄 "); EndContext(); BeginContext(1355, 11, false); #line 51 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" Write(orientation); #line default #line hidden EndContext(); BeginContext(1366, 9, true); WriteLiteral("</a><br/>"); EndContext(); #line 51 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Place.cshtml" } #line default #line hidden BeginContext(1377, 170, true); WriteLiteral(" </div>\n </div>\n <br/>\n <a href=\"?cmd=switch\">🔄 Switch Board</a><br/>\n <a href=\"?cmd=random\">🎲 Random</a><br/>\n <a href=\"Game\">🎮 Play</a>\n</div>\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1554, 8, true); WriteLiteral("\n</html>"); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(45, 1, true); WriteLiteral("\n"); EndContext(); #line 5 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" ViewData["Title"] = "Game Setup"; #line default #line hidden BeginContext(89, 25, true); WriteLiteral("\n<!DOCTYPE html>\n\n<html>\n"); EndContext(); BeginContext(114, 78, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "069333ddb92e3c3fe1a7ce8de8b76ef2204992083517", async() => { BeginContext(120, 65, true); WriteLiteral("\n <title>Game in Progress</title>\n <link href=\"style.css\">\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(192, 1, true); WriteLiteral("\n"); EndContext(); BeginContext(193, 3402, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "069333ddb92e3c3fe1a7ce8de8b76ef2204992084744", async() => { BeginContext(199, 1, true); WriteLiteral("\n"); EndContext(); #line 17 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" if (WebUI.GetWinner() == null) { #line default #line hidden BeginContext(234, 30, true); WriteLiteral(" <div class=\"text-center\">\n"); EndContext(); #line 20 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" if (Model.Player != WebUI.Current) { #line default #line hidden BeginContext(318, 33, true); WriteLiteral(" <a href=\"?cmd=go\">🔄 "); EndContext(); BeginContext(352, 35, false); #line 22 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" Write(Html.DisplayFor(s => s.Player.Name)); #line default #line hidden EndContext(); BeginContext(387, 5, true); WriteLiteral("</a>\n"); EndContext(); #line 23 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } else { #line default #line hidden BeginContext(425, 18, true); WriteLiteral(" <a>👤 "); EndContext(); BeginContext(444, 35, false); #line 26 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" Write(Html.DisplayFor(s => s.Player.Name)); #line default #line hidden EndContext(); BeginContext(479, 5, true); WriteLiteral("</a>\n"); EndContext(); #line 27 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(494, 147, true); WriteLiteral(" </div>\n <div style=\"padding-left: 15%; padding-right: 15%; font-size: 180%\">\n \n <div style=\"position: relative; width: 50%;\">\n"); EndContext(); #line 32 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" if (Model.Player != WebUI.Current)//blurred { #line default #line hidden BeginContext(712, 80, true); WriteLiteral(" <table class=\"border\" style=\"float: left; filter: blur(24px);\">\n"); EndContext(); #line 35 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" for (int i = 0; i < WebUI.Player1.Map.Board.Count; i++) { #line default #line hidden BeginContext(891, 44, true); WriteLiteral(" <tr class=\"border\">\n"); EndContext(); #line 38 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" for (var j = 0; j < WebUI.Player1.Map.Board[i].Count; j++) { #line default #line hidden BeginContext(1053, 88, true); WriteLiteral(" <td class=\"border\">\n "); EndContext(); BeginContext(1142, 64, false); #line 41 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" Write(WebUI.ConvertToSymbols(WebUI.Current.Map.Board[i][j].ToString())); #line default #line hidden EndContext(); BeginContext(1206, 39, true); WriteLiteral("\n </td>\n"); EndContext(); #line 43 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(1275, 30, true); WriteLiteral(" </tr>\n"); EndContext(); #line 45 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(1327, 132, true); WriteLiteral(" </table>\n <div class=\"text-center\" style=\"position: absolute; top: 120px; left: 35%\">Hidden �</div>\n"); EndContext(); #line 48 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } else { #line default #line hidden BeginContext(1504, 88, true); WriteLiteral(" <table class=\"border\" style=\"float: left;\">\n <tbody>\n"); EndContext(); #line 53 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" for (int i = 0; i < Model.GameBoard.Board.Count; i++) { #line default #line hidden BeginContext(1689, 44, true); WriteLiteral(" <tr class=\"border\">\n"); EndContext(); #line 56 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" for (var j = 0; j < Model.GameBoard.Board[i].Count; j++) { #line default #line hidden BeginContext(1849, 88, true); WriteLiteral(" <td class=\"border\">\n "); EndContext(); BeginContext(1938, 62, false); #line 59 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" Write(WebUI.ConvertToSymbols(Model.GameBoard.Board[i][j].ToString())); #line default #line hidden EndContext(); BeginContext(2000, 39, true); WriteLiteral("\n </td>\n"); EndContext(); #line 61 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(2069, 30, true); WriteLiteral(" </tr>\n"); EndContext(); #line 63 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(2121, 54, true); WriteLiteral(" </tbody>\n </table>\n"); EndContext(); #line 66 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(2189, 151, true); WriteLiteral(" </div>\n <div style=\"float: right;width: 50%\">\n <table class=\"border\" style=\"display: inline-block;\">\n <tbody>\n"); EndContext(); #line 71 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" for (int i = 0; i < Model.Map.Board.Count; i++) { #line default #line hidden BeginContext(2423, 40, true); WriteLiteral(" <tr class=\"border\">\n"); EndContext(); #line 74 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" for (var j = 0; j < Model.Map.Board[i].Count; j++) { #line default #line hidden BeginContext(2565, 48, true); WriteLiteral(" <td class=\"border\">\n"); EndContext(); #line 77 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" if (Model.Player != WebUI.Current) { #line default #line hidden BeginContext(2752, 56, false); #line 79 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" Write(WebUI.ConvertToSymbols(Model.Map.Board[i][j].ToString())); #line default #line hidden EndContext(); #line 79 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } else { #line default #line hidden BeginContext(2914, 38, true); WriteLiteral(" <a"); EndContext(); BeginWriteAttribute("href", " href=\"", 2952, "\"", 2971, 4); WriteAttributeValue("", 2959, "?Where=", 2959, 7, true); #line 83 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" WriteAttributeValue("", 2966, i, 2966, 2, false); #line default #line hidden WriteAttributeValue("", 2968, ",", 2968, 1, true); #line 83 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" WriteAttributeValue("", 2969, j, 2969, 2, false); #line default #line hidden EndWriteAttribute(); BeginContext(2972, 1, true); WriteLiteral(">"); EndContext(); BeginContext(2974, 56, false); #line 83 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" Write(WebUI.ConvertToSymbols(Model.Map.Board[i][j].ToString())); #line default #line hidden EndContext(); BeginContext(3030, 5, true); WriteLiteral("</a>\n"); EndContext(); #line 84 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(3069, 34, true); WriteLiteral(" </td>\n"); EndContext(); #line 86 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(3129, 26, true); WriteLiteral(" </tr>\n"); EndContext(); #line 88 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(3173, 72, true); WriteLiteral(" </tbody>\n </table>\n </div>\n </div>\n"); EndContext(); #line 93 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } else { #line default #line hidden BeginContext(3254, 38, true); WriteLiteral(" <div class=\"text-center\">\n "); EndContext(); BeginContext(3293, 22, false); #line 97 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" Write(WebUI.GetWinner().Name); #line default #line hidden EndContext(); BeginContext(3315, 6, true); WriteLiteral(" Won!\n"); EndContext(); #line 98 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" if (WebUI.GetWinner().AI) { #line default #line hidden BeginContext(3366, 26, true); WriteLiteral(" <a>🤣🤣🤣</a>\n"); EndContext(); #line 101 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } else { #line default #line hidden BeginContext(3425, 22, true); WriteLiteral(" <a>😎</a>\n"); EndContext(); #line 105 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(3456, 49, true); WriteLiteral("<br>\n <a href=\"Index\">Exit</a>\n </div>\n"); EndContext(); #line 108 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden BeginContext(3507, 6, true); WriteLiteral("<br/>\n"); EndContext(); #line 110 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" if (SaveSystem.GameStates.Count > 0) { #line default #line hidden BeginContext(3553, 33, true); WriteLiteral(" <a href=\"?Where=save\">💾</a>\n"); EndContext(); #line 113 "/Users/olkoro/CodeProjects/battleship-by-oleg-korotkov/WebApp/Pages/Game.cshtml" } #line default #line hidden } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(3595, 8, true); WriteLiteral("\n</html>"); EndContext(); }