@using Chruch.Net.Models.IceBreak @model Chruch.Net.Models.IceBreak.WhoIsSpyGameRoom @{ Layout = "~/Views/Shared/_LayoutEmpty.cshtml"; ViewBag.Title = "NLCC 破冰-誰是臥底(遊戲房)"; }
Image Description
Image Description

臥底

@if (string.IsNullOrWhiteSpace(Model.Id)) {
遊戲規則:
1.角色:共有三個角色「臥底平民、白板」
(ps.白板為選用腳色)
2.每個人需依序描述自己手中的答案,請注意只能描述自己手中的答案
(ps.所有人都不知道自己的身分,僅能透過他人的發言來判斷)
3.投票階段大家投給認為可能是臥底的人,最高票者將被視為臥底
4.當遊戲中所有臥底被抓出,則由平民獲勝,
若臥底剩餘人數大於等於平民,則由臥底勝出
@using (Html.BeginForm("WhoIsSpyCreate", "IceBreak")) {
@Html.TextBoxFor(m => m.Id, new { @class = "border-0 form-control g-color-gray-dark-v4 g-placeholder-gray-dark-v3 g-px-20" })
}
} else { using (Html.BeginForm("WhoIsSpyClose", "IceBreak")) { } switch (Model.Status) { case WhoIsSpyProcess.WaitForPlayer:

遊戲房號:

@Model.Id

using (Html.BeginForm("WhoIsSpyStart", "IceBreak")) { @Html.HiddenFor(m => m.Id) @Html.HiddenFor(m => m.Status)
@Model.TotalPlayer
@Html.TextBoxFor(m => m.SpyAmount, new { @class = "border-0 form-control g-color-gray-dark-v4 g-placeholder-gray-dark-v3 g-px-20" })
@Html.TextBoxFor(m => m.EmptyAmount, new { @class = "border-0 form-control g-color-gray-dark-v4 g-placeholder-gray-dark-v3 g-px-20" })

已加入房間:

@section scripts{ } } break; case WhoIsSpyProcess.Started: using (Html.BeginForm("WhoIsSpyNext", "IceBreak")) {

各自發言階段:
請透過系統隨機順序發言

@section scripts{ } } break; case WhoIsSpyProcess.Votting:

各自投票階段:
請使用您的手機來投下您神聖的

@Model.VoteAmount


以下人員尚未完成投票

@section scripts{ } break; case WhoIsSpyProcess.DisplayResult:
恭喜以下 候選人 當選
@foreach (var player in Model.Players.OrderByDescending(p => p.ReceviedVotes).Take(Model.VoteAmount)) {

@player.Name

$ @player.ReceviedVotes / 當選票數
}
@section scripts{ } break; case WhoIsSpyProcess.End:
恭喜 @(Model.Players.Count(p => p.IsSpy && !p.IsDead) > 0 ? "臥底" : "平民") 獲勝

平民的答案

Image Description
@(Model.Answer.AnswerCht)
@(Model.Answer.AnswerChs)
@(Model.Answer.AnswerEn)

臥底的答案

Image Description
@(Model.SpysAnswer.AnswerCht)
@(Model.SpysAnswer.AnswerChs)
@(Model.SpysAnswer.AnswerEn)
break; default: throw new ArgumentOutOfRangeException(); } }
@using (Html.BeginForm("WhoIsSpyNext", "IceBreak", FormMethod.Post, new { id = "GoToNextStepForm" })) { } @section scripts2 { }