GoBang is a JavaScript-based Gomoku (Five in a Row) game offering:
This project demonstrates modern frontend techniques combined with a Node.js backend to manage AI computations and game state.
minmax
algorithm.Max Streak
, Win Rate
, Total Games
, and more.minmax
algorithm for decision-making.minmax
algorithm for intelligent decision-making.GoBang/
βββ app.js # Backend server entry point
βββ db.js # PostgreSQL database connection
βββ package.json # Project metadata and dependencies
βββ public/ # Main frontend directory
β βββ index.html # Main game interface
β βββ login.html # Login page
β βββ offline-mode.html # Offline multiplayer mode page
β βββ styles.css # General styles
β βββ login.css # Specific styles for login page
β βββ index.js # Main frontend logic
β βββ login.js # Logic for login page
β βββ offline-mode.js # Logic for offline multiplayer mode
β βββ uploads/ # User-uploaded files
β βββ avatars/ # Uploaded user avatars
βββ server/ # Backend logic directory
β βββ ai.js # AI core logic
βββ src/ # Media files
β βββ piecedown.mp3 # Sound effect for placing a piece
β βββ rockwin.wav # Sound effect for black's victory
β βββ choirwin.wav # Sound effect for white's victory
β βββ default-avatar.jpg # Default user avatar
| ... statics
Max Streak
, Win Rate
) will reset and update accordingly.Max Streak
, Total Games
, Win Rate
, and other statistics, which dynamically update based on gameplay.## π― Roadmap
Note: These counts exclude empty lines for a more accurate measure of code content.
Welcome all contributions! Please submit a Pull Request or report any Issues.
This project is licensed under the MIT License.