Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

走者4人が完走・リタイアしたらタイマーが止まるようにする #741

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

cma2819
Copy link
Member

@cma2819 cma2819 commented Dec 27, 2023

#738 の暫定対応

  • リセット時に null で埋めているタイマーの各走者の結果に null がなければタイマーを止めるようにした

@cma2819 cma2819 changed the title Fix finish timer 走者4人が完走・リタイアしたらタイマーが止まるようにする Dec 27, 2023
@pasta04
Copy link
Contributor

pasta04 commented Dec 27, 2023

  • currentRunRep: そのゲームに紐づく走者の数だけ配列入ってる
  • timerRep: 配列4で固定

なので、

  • 走者が4人より多い時:timerRepの結果がtrueになってマスターの停止判定
  • 走者が4人の時:timerRep, currentRunRepの両方の結果がtrueでマスターの停止判定
  • 走者が4人未満の時:currentRunRepの結果がtrueになったマスターの停止判定

といった感じの動きになる。

@pasta04 pasta04 added extensions extensionsに影響する内容 bug 設計書違反とか機能不全とか labels Dec 27, 2023
@cma2819 cma2819 merged commit 096cecc into master Dec 27, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 設計書違反とか機能不全とか extensions extensionsに影響する内容
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants