Skip to content

danielzhao07/chess-algorithm

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โ™Ÿ๏ธ Chess Game

A modern, interactive chess game built with vanilla HTML, CSS, and JavaScript. Play chess in your browser with a clean, responsive interface and prepare for AI opponent integration.

๐ŸŽฎ Features

  • Interactive Chessboard - Click and drag pieces with visual feedback
  • Valid Move Highlighting - See all legal moves for selected pieces
  • Full Chess Rules - Implements movement rules for all pieces (pawns, rooks, knights, bishops, queens, kings)
  • Move History - Track all moves in algebraic notation
  • Captured Pieces Display - View captured pieces for both players
  • Undo Functionality - Revert your last move
  • Responsive Design - Works seamlessly on desktop and mobile devices
  • Dark Mode Support - Automatic theme switching based on system preferences
  • AI Integration Ready - Dedicated section prepared for chess engine implementation

๐Ÿš€ Getting Started

Prerequisites

  • A modern web browser (Chrome, Firefox, Safari, Edge)
  • A local web server (optional, but recommended for development)

Access

  • Public Domain: chess-algorithm-rythm.vercel.app

Installation

  1. Clone the repository

    git clone https://github.com/JummyJoeJackson/chess-algorithm.git
    cd chess-algorithm
  2. Open the game

    • Simply open index.html in your browser, or
    • Use a local server (recommended):
      # Using Python 3
      python -m http.server 8000
      
      # Using Node.js http-server
      npx http-server
  3. Start playing!

    • Navigate to http://localhost:8000 in your browser

๐Ÿ› ๏ธ Technologies Used

  • Vercel - Scalable Project Deployment
  • HTML5 - Semantic structure
  • CSS3 - Modern styling with custom properties and grid layout
  • JavaScript (ES6+) - Game logic and interactivity
  • No dependencies - Pure vanilla JavaScript

๐Ÿ“ Future Enhancements

  • AI opponent integration
  • Game save/load functionality
  • Multiplayer support
  • Timer/clock functionality
  • Move validation improvements

๐Ÿค Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is open source and available under the MIT License.

๐Ÿ‘ค Author

Diego Gonzalez - @JummyJoeJackson

๐Ÿ™ Acknowledgments

  • Chess piece Unicode symbols
  • Modern design inspiration from Chess.com and Lichess.org
  • Community feedback and contributions

Enjoy playing chess! โ™Ÿ๏ธ

About

Submission to RythmHacks 2025

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.1%
  • CSS 22.9%
  • HTML 6.0%