Giter Site home page Giter Site logo

chesslibrary's Introduction

ChessLibrary

Development of a Java library for the game of chess

Develop this library according to the tasks below and write unit tests.

  1. Create the necessary Java classes to implement a chess board (e.g. ChessBoard.java, Piece.java, etc...)
  2. Create the functionality to initiate a Chessboard. A board can be full (when the game starts) or somewhere in between while playing.
  3. Create the functionality to read and parse the given txt files (located under src/test/resources), which represent different Chess situations.
  4. Initiate the ChessBoard class by using your file parser class. Each of the given txt files should work.
  5. Write at least 4 Unit tests to check that the functionality of reading the txt files and initiating the ChessBoard works (please use the 4 given txt files).
  6. Create the functionality to write any ChessBoard situation to a txt file (in the file format as the given example files).
  7. Please write at least 4 Unit tests to check that the functionality to write a ChessBoard to a txt file works correctly.
  8. Add functionality to the ChessBoard to verify that only the correct number of pieces are added. For example: There are only 8 white pawns allowed...
  9. Please write enough Unit tests to make sure that the ChessBoard is always completely verified. For example: An exception should be thrown when more than 8 white pawns are added to a ChessBoard.

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.