GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - anishghanwat/SimpleChess: A classic chess game built in Java using Swing. Play locally with full support for all chess rules — including castling, en passant, promotion, and checkmate detection.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
res/piece
res/piece
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
Simple Chess.iml
Simple Chess.iml
 
 

Repository files navigation

Simple Chess

A simple, fully functional chess game implemented in Java using Swing. Play classic chess against another player on the same computer, with all standard rules supported.

Features

  • Complete chess rules: legal moves, check, checkmate, stalemate
  • Special moves: castling, pawn promotion, en passant
  • Visual board and piece movement
  • Turn-based play (White vs Black)
  • Game status display (turn, check, checkmate, stalemate)

Screenshots

Add screenshots here if available

Getting Started

Prerequisites

  • Java JDK 8 or higher

Setup & Run

  1. Clone or download this repository.
  2. Compile the source code:
    • Using command line:
      javac -d out src/main/*.java src/piece/*.java
    • Or use your favorite IDE (IntelliJ IDEA, Eclipse, etc.) to import the project and build.
  3. Run the game:
    • Using command line:
      java -cp out main.Main
    • Or run Main.java from your IDE.

Project Structure

src/
  main/
    Main.java         # Entry point
    GamePanel.java    # Main game logic and rendering
    Board.java        # Board drawing
    Mouse.java        # Mouse input handling
    Type.java         # Piece type enum
  piece/
    Piece.java        # Base class for all pieces
    Pawn.java         # Pawn logic
    Rook.java         # Rook logic
    Knight.java       # Knight logic
    Bishop.java       # Bishop logic
    Queen.java        # Queen logic
    King.java         # King logic

How to Play

  • Click and drag pieces to move them.
  • Only legal moves are allowed.
  • When a pawn reaches the last rank, select a piece to promote to.
  • The game will display messages for check, checkmate, and stalemate.

Credits

  • Developed by Anish Ghanwat
  • Piece images and board colors inspired by classic chess sets.

License

This project is licensed under the MIT License.

About

A classic chess game built in Java using Swing. Play locally with full support for all chess rules — including castling, en passant, promotion, and checkmate detection.

Topics

2d-gameboard-gamecheckmatechesschess-engineguijavaswing

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.