1 / 11

Project 4

Project 4. Chess Queen. Chess Queen. The chess queen can move along any stright line on the chess board. Left and right. Forward and backward. Diagonally. Assignment. Write a program that displays a chess board, with an image of a queen initially in the upper left hand corner.

heba
Download Presentation

Project 4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Project 4 Chess Queen

  2. Chess Queen • The chess queen can move along any stright line on the chess board. • Left and right. • Forward and backward. • Diagonally.

  3. Assignment • Write a program that displays a chess board, with an image of a queen initially in the upper left hand corner. • Permit the user to move the queen to any square that is a legal move from its current position, using drag and drop. • But only legal moves. • Do not allow the user to move the queen to a square that is not a legal move from its current position. • Permit the user to move the queen to new squares again and again. • Examples on the following slides.

  4. Initial Configuration

  5. Legal Move -- Right 3

  6. Legal Move -- Diagonally Down 1

  7. Legal Move -- Down 3

  8. Images • Find your own chess queen image(s). • It is OK to copy images from the Internet or other sources. • Original art work is not required.

  9. Ground Rules You may work with one other person. OK to work alone if you prefer. If you do work as a pair Both members are expected to contribute. Submit a single program. Both members should understand the program in detail. Do not share your work with other students. Before or after submitting the project. OK to discuss the project. Do not copy any other student’s work. Don’t look at anyone else’s program. 9

  10. Ground Rules Except for code posted on the class web site • Do not copy code from the Internet • or any other source. • Write your own code.

  11. Submission • Project is due by 11:59 PM, Monday night, Feb 14. • Deliverables: • Project Folder (zipped) • Zip the entire project folder and submit a single file. • Use the Windows "Send to Compressed Folder" command. • DO NOT use RAR • If you work with another student, include both names in the assignment comments. • Other student submit comment only with both names.

More Related