JavaFX代写 | COMP1206: Programming 2 Assignment: Further Assessment

本次JavaFX代写是完成一个数字解谜游戏

COMP1206: Programming 2
Assignment: Further Assessment

Further Assessment 1: Hitori Application
Hitori is a puzzle game where the player is presented with a square grid of cells. Each cell initially
contains a number. The aim of the game is to eliminate cells (by blacking them out) until the
following three constraints all hold:
1) There are no duplicate numbers in each row and column.
2) There are no blacked out cells next to each other (horizontally or vertically).
3) All white cells are connected to each other in a single component.
Below is an example of a Hitori puzzle (Figure 1) and its solution (Figure 2):
In this assessment, your objective is to design a JavaFX application for playing Hitori.
The application must meet the following basic requirements:
1) Initial Puzzle: On starting the application, an initial puzzle must be displayed to the user
(for example the grid in Figure 1).
2) Elimination: The user must be able to eliminate (i.e., black out) cells by left-clicking on
them.
3) Reactivation: The user must be able to reverse the elimination action by right-clicking on a
blacked-out cell. This cell should then become white again.
4) Reset: There must be a button to reset the puzzle to the starting state (where no cells are
blacked out). When clicking the button, a confirmation dialog must be shown to the user
first, allowing the user to confirm or cancel this action.
5) Mistake Detection: When the user has violated constraints 2 or 3 through their actions,
this should be highlighted immediately and clearly to the user.
6) Win Detection: When the puzzle has been solved (i.e., constraints 1-3 hold), the user
should be notified immediately and clearly.
The application should also meet the following extended requirements:
7) Resizability: The application should be resizable, with the grid resizing appropriately to fill
the available space.
8) Loading: There should be functionality to load new puzzles from a file. Files should be
assumed to contain a text representation (in UTF-8) of the puzzle, where each line in the
file corresponds to a line in the puzzle and adjacent cells are separated by spaces. For
example, the puzzle in Figure 1 would be represented as:
Figure 1: Hitori Puzzle Figure 2: Solution of Puzzle
3
4 8 1 6 3 2 5 7
3 6 7 2 1 6 5 4
4 8 1 6 3 2 5 7
3 6 7 2 1 6 5 4
2 3 4 8 2 8 6 1
4 1 6 5 7 7 3 5
7 2 3 1 8 5 1 2
3 5 6 7 3 1 8 4
6 4 2 3 5 4 7 8
8 7 1 4 2 3 5 6


程序代写代做C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB


本网站支持淘宝 支付宝 微信支付  paypal等等交易。如果不放心可以用淘宝交易!

E-mail: [email protected]  微信:itcsdx


如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。

blank

发表评论