How iee-ihu-gr-course1941/adise26_atkon works
This repository appears to implement a browser-based Quoridor game with account, lobby, gameplay, and user-profile features. The visible login/register flow submits credentials to PHP endpoints and redirects successful users to the lobby; authenticated pages check the current session. The README is a placeholder, and several game, lobby, and business files are empty or only listed in the index, so their internal interactions are not established here. Dashed, uncited edges mark likely UI-to-endpoint interactions, not inspected call paths.
Main entry points: lobbies.js Lobby client · db.php Database connection · board.js Board client · index.js Login and register UI
Components 29
Browser application
- Login and register UI
js/index.js - Lobby page
html/lobbies.html - Lobby client
js/lobbies.js - Game board page
html/board.html - Board client
js/board.js - User page
html/user.html - User client
js/user.js - Session guard
js/authGuard.js
Accounts and profiles
- Login endpoint
api/user/login.php - Registration endpoint
api/user/register.php - Current-user endpoint
api/user/me.php - Logout endpoint
api/user/logout.php - Settings endpoint
api/user/saveSettings.php - User listing
api/users.php
Lobby management
- Create game
api/lobby/createGame.php - Delete game
api/lobby/deleteGame.php - Start game
api/lobby/startGame.php
Quoridor gameplay
- Move endpoint
api/game/move.php - Place wall endpoint
api/game/placeWall.php - Kick initiation
api/game/initiateKick.php - Kick voting
api/game/voteKick.php - Legal wall rules
business/updateLegalWalls.php - Pathfinding
business/BFS.php - Player colours
business/assignColour.php
Backend infrastructure
- Database connection
api/db.php - Environment loader
api/loadEnv.php - Session authorization
api/auth.php - Application database
quoridor.sql
Other components
- Player
Connections 32
- Player → Login and register UI: uses
- Login and register UI → Current-user endpoint: checks session
js/index.js - Login and register UI → Login endpoint: submits login
js/index.js - Login and register UI → Registration endpoint: submits registration
js/index.js - Session guard → Current-user endpoint: checks session
js/authGuard.js - Lobby client → Session guard: calls
js/lobbies.js - Lobby client → Logout endpoint: requests logout
js/lobbies.js - Login endpoint → Database connection: queries users
api/user/login.php - Registration endpoint → Database connection: creates user
api/user/register.php - Current-user endpoint → Session authorization: requires session
api/user/me.php - Current-user endpoint → Database connection: queries user
api/user/me.php - User listing → Database connection: queries users
api/users.php - Database connection → Environment loader: loads configuration
api/db.php - Player → Lobby page: enters lobby
- Lobby page → Lobby client: runs client
- Lobby client → Create game: creates game
- Lobby client → Delete game: deletes game
- Lobby client → Start game: starts game
- Player → Game board page: plays game
- Game board page → Board client: runs client
- Board client → Move endpoint: submits move
- Board client → Place wall endpoint: places wall
- Board client → Kick initiation: initiates kick
- Board client → Kick voting: votes kick
- Player → User page: views profile
- User page → User client: runs client
- User client → Settings endpoint: saves settings
- User client → User listing: loads users
- Database connection → Application database: connects
- Move endpoint → Legal wall rules: checks legality
- Move endpoint → Pathfinding: checks paths
- Start game → Player colours: assigns colours