CS 222 Spring 2016
Daily Tents, Part III
Due: April 14, Thursday, 11:00 am.
Language: Java
Submission:
- Check your file encoding. It should be UTF-8
- Commit your code to SVN
Assignment Explanation
Daily Tents Game is a puzzle game similar to Sudoku.
Please go and play with the game to get familiar with it.
Your task for this week is to add GUI to your Daily Tents game.
Task 1
For this assignment use your Daily Tents Game, remove the console part (CLI) and add a GUI instead. Apply MVC pattern principle.
- You’re free to design it any way you like, however, please make it similar to the original Daily Tents Game.
- You can search for tree and tent images on the net and use them.
- You don’t need to implement the grass and remove tent functionalities. It’s enough to be able to put a
tent when a cell is clicked.
- Think about how to implement your CLI menu as a GUI:
- For starting a new game
- Restarting the game
- Exiting the game
- Entering the board dimension
- Informing the user when he/she wins…etc
- Feel free to add any other functionality you like
Task 2
Refactor your code. In addition to appropriate naming, clean and short and well-defined functions, apply what you have learnt
from formatting lecture. Make sure that you don’t have any code smells in your code.
Grading
- MVC structure (8)
- Properly enabled/disabled buttons (2)
- Board visualization with various dimensions (5)
- Clean code (10)