Skip to content

Scoreテンプレートの実装#39

Closed
TKHR-Shiu wants to merge 4 commits intomainfrom
scoreTemplate
Closed

Scoreテンプレートの実装#39
TKHR-Shiu wants to merge 4 commits intomainfrom
scoreTemplate

Conversation

@TKHR-Shiu
Copy link
Contributor

@TKHR-Shiu TKHR-Shiu commented Nov 20, 2025

スコアは増加した生きたセルの数(減少時は変化なし)が加算されます

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 20, 2025

Deploying life-code with  Cloudflare Pages  Cloudflare Pages

Latest commit: b833410
Status: ✅  Deploy successful!
Preview URL: https://37fd2a6c.life-code.pages.dev
Branch Preview URL: https://scoretemplate.life-code.pages.dev

View logs

const sentence = event.data.data as showToastEvent;
toast.show(isJapanese ? sentence.japanese : sentence.english, "info");
timer = "stopped";
isProgress = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

トーストを表示したときにタイマーを止める必要はなさそう
(それはそれとして、 timer と is Progress ってどう違うんだ?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ループやすべて白マスのような状態に陥っても、自動で止まらずひたすら表示してしまうのですが、新しくjsファイル側から再生、停止を変えられるように変更したほうがいいですか?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSの方で呼び出すときに showToast とは別に再生停止するのがいいんじゃない?トーストとそれらの動作は別物だと思う

};

function showToast(jMessage, eMessage) {
timer = "stop";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここでタイマーを止めるのは showToast という名前から連想される動作ではなさそう

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

というかそもそも life game の中でタイマーの進行状況を管理する必要がないかも?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

再生中は、盤面をなぞっても色を変更しないようにするために使っていますが…
再生中でも色は変更できた方がいいですかね?

Copy link
Contributor

@aster-void aster-void Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

再生中に色を変更できないのはなんでだっけ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コンフリクトになってしまい、すみません。
+page.svelteに関しては、

  • ”sync”イベントは"get_boardsize"イベントに名称を変更
  • "play", "pause"イベント(おそらく、再生中に色が変更できないようにする機能しかない)は削除
  • timerをtimerIsRunnning(boolean)に変更
  • ルール選択ボタンを移動
    という変更点がmainブランチに加えられました

@TKHR-Shiu TKHR-Shiu closed this Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments