How alpha1337k/ft_gomoku works
Project type and purpose
• This is a full-stack web application for playing Gomoku against an AI.
• The frontend (Vue 3 + Vite + TypeScript + Tailwind CSS) provides the game UI, routing, and state management.
• The backend (Rust) implements the game rules, board representation, heuristic evaluation, minimax search, and exposes an HTTP API.
• Dockerfiles and a docker-compose.yml orchestrate running the frontend and backend as separate containers.
File structure
• Top level
• LICENSE, README.md, docker-compose.yml
• backend/ (Rust service)
• frontend/ (Vue SPA)
• backend/
• Cargo.toml, Dockerfile, .gitignore
• src/ (board.rs, piece.rs, position.rs, heuristic.rs, minimax.rs, move_calculator.rs, lib.rs, main.rs)
• benches/ (benchmark for calculate)
• frontend/
• package.json, Dockerfile, .eslintrc.cjs, .prettierrc.json, tsconfig*
• public/ (index.html, manifest)
• src/
– main.ts, App.vue, assets/, router/, stores/, components/, views/
• tailwind.config.js, vite.config.ts
Additional README insights
• Minimal: 42 school project “ft_gomoku” with final grade 95/100.
Detail
• Logical piece (router, store, components on the frontend; lib.rs vs main.rs, each game module in backend).