Code Monkey home page Code Monkey logo

chess_board_game's Introduction

Scala Chess Board Game (still in development)

00

Welcome to my Scala-based chess board game project!

This project is a simple implementation of chess in Scala. It provides a basic chess board, pieces, and rules to play the game.

Features

  • Chess Board: A standard 8x8 chess board.
  • Pieces: Implementation of all standard chess pieces - King, Queen, Rook, Bishop, Knight, and Pawn.
  • Movement: Valid movement logic for all pieces according to standard chess rules.
  • Check and Checkmate Detection: Detection of check and checkmate conditions during gameplay.
  • Simple Text-based Interface: The game is played via a simple text-based interface in the terminal.

Requirements

  • Scala 3.3.1 SDK: This project is built using Scala programming language with Scala 3.3.1 SDK.
  • IntelliJ: The project was developed using IntelliJ IDE.
  • JUnit 4: JUnit 4 library is used for unit testing in this project.

Getting Started

  1. Clone the Repository: Clone this repository to your local machine.
    https://github.com/himmat12/chess_board_game.git
  2. Build the Project: Navigate to the project directory and use SBT to build the project.
    cd chess_board_game
    sbt compile
  3. Run the Game: Once the project is compiled successfully, you can run the game.
    sbt run

    Or, walkthrough this documentation to setup scala in intellij

    Getting Started | Scala Documentation

How to Play

  • Game Setup: The game starts with a standard chess board setup with pieces placed in their initial positions.
  • Move Input: To make a move, enter the chess piece value and then destination position of the piece you want to move. For example, move "wp5" white pawn to "f3" from its initial position "f2".
  • Game Progression: The game alternates between players, allowing each player to make a move until checkmate or stalemate is reached.
  • Check and Checkmate: The game will notify players if a king is in check or if a checkmate has occurred (checkmate and stalemate are still in development).

Contributing

Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • This project was inspired by the love for chess and the desire to learn Scala.
  • Special thanks to the Scala community and Chess programming community for providing valuable resources and support.

Game screenshots

000 001 002 003 004 005


chess_board_game's People

Contributors

himmat12 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.