CSC170 Assignment 6 Due by class time Wed 10 December 2003 This is your last assignment, worth 25 points. It is a large assignment. Do not wait until the last week to start it. Do it in pieces, getting each working as you go. You are to write a java application which plays the game of Nim: Nim is a game played with matches. The matches are put into three piles. The total number of matches and number of matches in each pile is random. Each player plays in turn. A player can remove any number of matches from any one pile, but only one pile. A player must remove at least one match. The person who is forced to take the last match loses. The computer deals three piles of matches (random 1-200 matches per pile). The computer chooses its pile and number of matches to remove randomly. The user specifies which pile and number of matches thru the GUI. Use check boxes for the pile choice and a textfield to input number of matches to remove. There should be an ongoing tally of number of matches in each pile. No need to draw pictures of the actual matches. There should be an appropriate message output when one player wins. Note that this is entirely run through the GUI. Note also, that the game should be ended by clicking on the window close button. Note: making the computer play "intelligently" is beyond this assignment. It will make random moves, so it will make some dumb moves. Email your source code plus a report describing your application, the classes and methods you used and what you liked the best about it to your instructor by the due date. You may turn in your UML diagram in class.