Introduction
This optional (but recommended) checkpoint counts for extra-credit points on the Amazons project. It is due Tuesday October 30 at 11:59 PM.
The checkpoint is made up of two components:
- A short conceptual quiz, a Google Forms that you will submit. This quiz that tests for understanding of the project. You should be able to complete it after reading the project spec. A full score on the quiz requires sufficient effort.
A code check, composed of three unit tests that you must pass for credit.
The tests address the following methods:In Board.java,
- void init()
- final void put(Piece p, Square s)
- final Piece get(int col, int row)
- public String toString()
In Square.java,
- boolean isQueenMove(Square to)
- Square (constructor)
This is aimed at giving you an introduction to the project (the methods tested are a small fraction of the overall project) and get you to start early!
To get the unit tests, go into your repository and execute
git fetch shared
git merge shared/proj2a -m “Get proj2a tests”
You can copy the unit tests in proj2a/UnitTest.java file into your
proj2/amazons/UnitTest.java, or you can rename it to a new ...Test.java file in
your amazons
subdirectory and then
add its class to the list of classes in the main
method of UnitTest.java
.
You should be implementing everything in your proj2 folder. We will
only be grading your proj2 folder and not your proj2a folder.
Be careful to git add
any files you add to your proj2/amazons
directory.
Tag your
checkpoint submission as proj2a-x where x is the submission number.