Skip to content

mohitjain2306/chess-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Game

A simple online chess game where you can play with friends in real-time!

🎮 Play Here

What is this?

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.

Features

  • 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

How to Play

  1. Go to https://chess-game-5bt3.onrender.com
  2. Share the link with a friend to play together
  3. Click and drag pieces to move them
  4. Take turns until someone wins!

Running on Your Computer

If you want to run this on your own computer:

  1. Download the code

    git clone [your-repo-url]
    cd chess-game
  2. Install requirements

    npm install
  3. Start the game

    npm start
  4. Open your browser and go to http://localhost:3000

What's Inside

  • index.js - The main server file
  • public/index.html - The game webpage
  • public/chessgame.js - The game logic
  • package.json - List of requirements

Built With

  • Node.js (server)
  • Socket.IO (real-time updates)
  • chess.js (chess rules)
  • HTML/CSS/JavaScript (the webpage)

Deploy Your Own

Want to put this online yourself?

  1. Put your code on GitHub
  2. Go to render.com and sign up
  3. Connect your GitHub account
  4. Create a "Web Service" and pick your repo
  5. Use these settings:
    • Build Command: npm install
    • Start Command: npm start
  6. Click Deploy!

Problems?

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

License

Free to use and modify!


Play Now 🏆

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published