Homework 5 - Chess Game

Introduction

In this assignment you will practice

Problem Description

In this homework, you will begin creating many useful classes for our end goal of making a chess database!

Solution Description

Classes:

Important: getMovesWithComment, getMovesWithoutComment, getMovesWithPiece(Piece p) must use filter with a lambda, an anonymous class, and inner class respectively.

If there are any classes that you are unfamiliar with (e.g. Predicate or Optional), look them up in Javadocs. Make the visibility of all the methods and fields as you see best fits good programming style.

Here are links to the approved solution. Feel free to use it instead of your own code. Remember JavaDocs are still required.

Grading

Checkstyle deduction will be capped at 50 points for this homework. Use the -a flag when running checkstyle! JavaDocs will be counted for this homework.

Run this in the folder that has your java files: java -jar <path-to-checkstyle.jar> -a *.java

Submit code that compiles!!!

Non compiling code will receive an automatic zero.

Turn-in Procedure

Submit each of your Java source files necessary for ChessGame to compile on T-Square as separate attachments. When you’re ready, double-check that you have submitted and not just saved a draft. Download each file and compile them to assure that nothing went wrong with the submission process.

Files needed:

Verify the Success of Your Submission to T-Square

Practice safe submission! Verify that your HW files were truly submitted correctly, the upload was successful, and that your program runs with no syntax or runtime errors. It is solely your responsibility to turn in your homework and practice this safe submission safeguard.