
이 글의 목적
오델로 AI에 쓴 소스 코드를 공개합니다. 파일을 펼칠 때만 코드를 불러옵니다.
사용한 모델
- Gemma 4 E4B(mlx-community/gemma-4-e4b-it-4bit): VLM 서버의 기본 모델입니다. 지금은 로드에 실패해 쓰이지 않습니다.
- mlx-vlm: Apple Silicon에서 모델을 돌립니다.
- 로컬 AI: 학습한 모델이 아닙니다. 소스는 알파·베타 탐색, 배포된 웹은 한 수 가중치 AI입니다.
- 학습한 모델은 아직 없습니다.
폴더 구성
- src: Qt6 C++ 앱. 규칙 엔진(othello_board), 탐색 AI(aiplayer), VLM 클라이언트(tcpvlmclient)
- vlm_server: OT88 TCP 서버, 규칙, Gemma 4 내려받기
- othello-web: Next.js 웹 대국. 규칙 엔진(board.ts), 탐색 AI(ai.ts), 대국 저장(db.ts), VLM 중계(api/vlm/move, ot88Client.ts)
서버 배포 설정, 감시·자동화 스크립트, 대국 데이터와 로그는 공개 범위에서 제외했습니다. 광고와 다른 게임 목록 같은 웹 운영 코드, 설정 파일도 빼서 일부 import는 공개하지 않은 파일을 가리킵니다.
전체 소스
37개 파일 · 5,381줄 — 폴더를 펼친 뒤 파일을 누르면 코드를 불러옵니다.
프로젝트 루트
CMakeLists.txt
코드를 불러오는 중입니다…
othello-web/
othello-web/app/api/game/[code]/route.ts
코드를 불러오는 중입니다…
othello-web/app/api/game/route.ts
코드를 불러오는 중입니다…
othello-web/app/api/vlm/move/route.ts
코드를 불러오는 중입니다…
othello-web/app/globals.css
코드를 불러오는 중입니다…
othello-web/app/layout.tsx
코드를 불러오는 중입니다…
othello-web/app/page.tsx
코드를 불러오는 중입니다…
othello-web/app/play/page.tsx
코드를 불러오는 중입니다…
othello-web/app/play/play.module.css
코드를 불러오는 중입니다…
othello-web/components/OthelloBoard.module.css
코드를 불러오는 중입니다…
othello-web/components/OthelloBoard.tsx
코드를 불러오는 중입니다…
othello-web/lib/ai.ts
코드를 불러오는 중입니다…
othello-web/lib/board.ts
코드를 불러오는 중입니다…
othello-web/lib/db.ts
코드를 불러오는 중입니다…
othello-web/lib/gameTypes.ts
코드를 불러오는 중입니다…
othello-web/lib/guest.ts
코드를 불러오는 중입니다…
othello-web/lib/ot88Client.ts
코드를 불러오는 중입니다…
othello-web/lib/renderBoardPng.ts
코드를 불러오는 중입니다…
othello-web/lib/vlmClient.ts
코드를 불러오는 중입니다…
othello-web/package.json
코드를 불러오는 중입니다…
src/
src/aiplayer.cpp
코드를 불러오는 중입니다…
src/aiplayer.h
코드를 불러오는 중입니다…
src/boardwidget.cpp
코드를 불러오는 중입니다…
src/boardwidget.h
코드를 불러오는 중입니다…
src/main.cpp
코드를 불러오는 중입니다…
src/mainwindow.cpp
코드를 불러오는 중입니다…
src/mainwindow.h
코드를 불러오는 중입니다…
src/othello_board.cpp
코드를 불러오는 중입니다…
src/othello_board.h
코드를 불러오는 중입니다…
src/tcpvlmclient.cpp
코드를 불러오는 중입니다…
src/tcpvlmclient.h
코드를 불러오는 중입니다…
vlm_server/
vlm_server/__init__.py
코드를 불러오는 중입니다…
vlm_server/__main__.py
코드를 불러오는 중입니다…
vlm_server/download_gemma4.py
코드를 불러오는 중입니다…
vlm_server/othello_rules.py
코드를 불러오는 중입니다…
vlm_server/requirements.txt
코드를 불러오는 중입니다…
vlm_server/server.py
코드를 불러오는 중입니다…
COMMENTS · CHAPTER 05
전체 소스 코드와 사용한 모델 댓글 0
아직 댓글이 없습니다. 읽다가 궁금한 점이나 보탤 내용을 남겨 주세요.
댓글을 등록하려면 구글로 시작하기를 눌러 닉네임과 메일 주소를 등록해 주세요.
구글로 시작하기