Skip to content

feat: 영어 끝말잇기(쿵쿵따) 게임 구현#530

Merged
DDINGJOO merged 1 commit into
developfrom
feature/523-wordchain-game
Jan 24, 2026
Merged

feat: 영어 끝말잇기(쿵쿵따) 게임 구현#530
DDINGJOO merged 1 commit into
developfrom
feature/523-wordchain-game

Conversation

@DDINGJOO

@DDINGJOO DDINGJOO commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 영어 끝말잇기(Word Chain) 게임 기능 구현
  • Free Dictionary API 연동으로 단어 유효성 검증
  • 라운드별 시간 제한 감소 (15→13→11→9→8초)
  • 점수 시스템 (시간 보너스 + 단어 길이 보너스)

Changes

  • WordChainSession 모델 (게임 상태, 플레이어 관리)
  • WordChainService 게임 로직 (시작, 단어 제출, 타임아웃, 종료)
  • DictionaryService 외부 사전 API 연동
  • WordChainHandler REST API 엔드포인트
  • WebSocket 메시지 타입 추가 (WORDCHAIN_*)
  • 채팅 명령어 domain 수정 (game → chat)

API Endpoints

  • POST /chat/rooms/{roomId}/wordchain/start - 게임 시작
  • POST /chat/rooms/{roomId}/wordchain/submit - 단어 제출
  • POST /chat/rooms/{roomId}/wordchain/timeout - 타임아웃 처리
  • POST /chat/rooms/{roomId}/wordchain/stop - 게임 종료
  • GET /chat/rooms/{roomId}/wordchain/status - 상태 조회

Test plan

  • WordChainSession 모델 단위 테스트
  • DictionaryService 단위 테스트
  • 실제 환경에서 게임 플로우 테스트
  • WebSocket 브로드캐스트 확인

Closes #523, #524, #525, #526, #527, #528

- Add WordChainSession model with time limit, scoring, player management
- Add WordChainService with game logic (start, submit, timeout, stop)
- Add DictionaryService for word validation via Free Dictionary API
- Add WordChainHandler REST API endpoints (/wordchain/start, submit, etc.)
- Add WordChainFunction to SAM template
- Add WORDCHAIN_* message types for WebSocket broadcasts
- Fix command result domain (use chat domain for chat commands)
- Add unit tests for WordChainSession and DictionaryService

Closes #524, #525, #526, #527, #528
@github-actions github-actions Bot added backend Backend code changes layer:entity Entity/Domain layer layer:repository Repository/DAO layer layer:service Service layer layer:test Test code labels Jan 24, 2026
@github-actions

github-actions Bot commented Jan 24, 2026

Copy link
Copy Markdown

Jira: MESP-303

@DDINGJOO DDINGJOO merged commit 04e09b0 into develop Jan 24, 2026
2 checks passed
hye-inA pushed a commit that referenced this pull request Jan 25, 2026
…chain-game

feat: 영어 끝말잇기(쿵쿵따) 게임 구현
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend code changes layer:entity Entity/Domain layer layer:repository Repository/DAO layer layer:service Service layer layer:test Test code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant