2018/9/18 Assignment 1.0 – CS 242 – Illinois Wiki https://wiki.illinois.edu/wiki/display/cs242/Assignment+1.0 1/6 页面 / Home / Assignments 由 Triphol “Pao” Nilkuha (admin)创建, 最终由 Chen, Chen修改于昨天12:27 下午 Assignment 1.0 Assignment 1.0 Chess Library Overview This week, we will be focusing on unit testing and ObjectOriented design by implementing the core objects and data structures for a chess game application. This will be the first of several weeks in building this application. By the end of the week, you should have implemented the tests and the corresponding implementation for the pieces and board of a chess game. For this assignment, you are required to use either Eclipse or IntelliJ IDEA. Both are free and have powerful refactoring tools available. Read this entire page before beginning your assignment, and post on Piazza if anything is still unclear. What am I actually turning in? Many students find our concrete expectations for this first assignment confusing, and that’s perfectly normal. There are a few key things to note here: Your task is to design, test, and implement (more or less in that order) a chess library from scratch. This is intentionally vague, and we expect you to spend some time making design decisions for your library. For this assignment, your deliverables are simply your unit test suite and your implementation. It is not part of the requirements to add a GUI or main game loop for this week. If something is still unclear, ask on Piazza, chances are someone else is also confused. In general, we are flexible with interpretations of the assignment, as long as it does not trivialize any component of the assignment. Background For this assignment, we assume that you have some knowledge of the chess board game. We will assume a simple 8 x 8 board, with two players, and the standard board pieces. Each player alternately moves and strategically captures the others’ pieces, until the game ends when one player is in checkmate (the king is about to be captured, and cannot move), or there is a stalemate (neither player can move). From Wikipedia: Each chess piece has its own style of moving. The king moves one square in any direction. The rook can move any number of squares along any rank or file, but may not leap over other pieces. Summary Table of Contents Assignment 1.0 Chess Library