How anilkumar4454/ai works
This is a PHP web application for an AI prediction market game: administrators configure teams, questions, rounds, and game state; teams play timed question rounds, submit bets/answers, and review performance. The main user path runs through the team game pages, with administration and reporting as distinct supporting capabilities. Source evidence confirms shared database access and several page behaviors; the README is empty and unsampled pages limit certainty about some page-to-page transitions.
Main entry points: db.php MySQL database · submit_answer.php Answer submission · round_result.php Round results · game.php Timed question play
Components 25
Administration
- Admin login
admin/login.php - Admin dashboard
admin/dashboard.php - Team management
admin/add_team.php - Question management
admin/add_question.php - Edit questions
admin/edit_question.php - Round management
admin/rounds.php - Game control
admin/game_control.php - Admin results
admin/results.php - Leaderboard
admin/leaderboard.php
Team Gameplay
- Team login
team/login.php - Team dashboard
team/dashboard.php - Game instructions
team/instructions.php - Select round
team/select_round.php - Round briefing
team/round_instructions.php - Timed question play
team/game.php - Answer submission
team/submit_answer.php - Coin check
team/check_coins.php - Insufficient coins
team/no_coins.php
Results & History
- Round results
team/round_result.php - Final results
team/result.php - Answer history
team/answer_history.php - Game history
team/game_history.php
Persistence
- MySQL database
db.php
Other components
- Administrator
- Player team
Connections 26
- Administrator → Admin login: signs in
- Admin login → Admin dashboard: opens
- Admin dashboard → MySQL database: reads
admin/dashboard.php - Team management → MySQL database: manages teams
admin/add_team.php - Question management → MySQL database: creates questions
admin/add_question.php - Edit questions → MySQL database: updates questions
admin/edit_question.php - Round management → MySQL database: manages rounds
admin/rounds.php - Game control → MySQL database: resets game state
admin/game_control.php - Admin results → MySQL database: reads results
admin/results.php - Leaderboard → MySQL database: reads rankings
admin/leaderboard.php - Player team → Team login: signs in
- Team dashboard → MySQL database: reads team state
team/dashboard.php - Game instructions → MySQL database: reads game content
team/instructions.php - Select round → MySQL database: reads rounds
team/select_round.php - Round briefing → MySQL database: loads briefing
team/round_instructions.php - Timed question play → MySQL database: reads question and progress
team/game.php - Answer submission → MySQL database: records answer
team/submit_answer.php - Coin check → MySQL database: checks balance
team/check_coins.php - Insufficient coins → MySQL database: reads coin state
team/no_coins.php - Round results → MySQL database: reads round performance
team/round_result.php - Final results → MySQL database: reads final performance
team/result.php - Answer history → MySQL database: reads answers
team/answer_history.php - Game history → MySQL database: reads game history
team/game_history.php - Timed question play → Answer submission: submits response
- Answer submission → Round results: continues to
- Round results → Final results: finishes game at