A simple online chess game where you can play with friends in real-time!
This is a chess game you can play in your web browser. You can play with a friend by sharing the link, or practice against the computer.
- Play chess online with friends
- Real-time gameplay - see moves instantly
- Works on phones and computers
- AI bot to practice against
- All chess rules included
- Go to https://chess-game-5bt3.onrender.com
- Share the link with a friend to play together
- Click and drag pieces to move them
- Take turns until someone wins!
If you want to run this on your own computer:
-
Download the code
git clone [your-repo-url] cd chess-game
-
Install requirements
npm install
-
Start the game
npm start
-
Open your browser and go to
http://localhost:3000
index.js
- The main server filepublic/index.html
- The game webpagepublic/chessgame.js
- The game logicpackage.json
- List of requirements
- Node.js (server)
- Socket.IO (real-time updates)
- chess.js (chess rules)
- HTML/CSS/JavaScript (the webpage)
Want to put this online yourself?
- Put your code on GitHub
- Go to render.com and sign up
- Connect your GitHub account
- Create a "Web Service" and pick your repo
- Use these settings:
- Build Command:
npm install
- Start Command:
npm start
- Build Command:
- Click Deploy!
If something doesn't work:
- The free version sleeps after 15 minutes - just refresh the page
- Make sure you're using a modern web browser
- Check that JavaScript is enabled
Free to use and modify!
Play Now 🏆