Skip to content

[codex] Extract and test Othello rules#1

Draft
tyohs wants to merge 2 commits into
mainfrom
codex/interview-refactor
Draft

[codex] Extract and test Othello rules#1
tyohs wants to merge 2 commits into
mainfrom
codex/interview-refactor

Conversation

@tyohs

@tyohs tyohs commented Jun 22, 2026

Copy link
Copy Markdown
Owner

What

  • デバッグ用盤面を標準初期盤面へ修正
  • 合法手、8方向反転、パス、終了、得点を純粋関数へ分離
  • renderごとの状態更新による不安定なパス処理を解消
  • responsive/keyboard対応、reset、勝者表示を追加
  • unit tests、CI、README、依存更新を追加

Why

React UIとゲームルールを分離し、正しさをブラウザなしで説明・検証できる構造にするためです。

Checks

  • npm run lint
  • npm run typecheck
  • npm test (7 tests)
  • npm run build
  • npm audit --omit=dev (high / critical 0)

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.

1 participant