MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / PegSolitaireGame

Interface PegSolitaireGame

Programs/Games/peg-solitaire/PegSolitaireGame.java:1–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1public interface PegSolitaireGame{
2 /**
3 * Method to create first board from scratch.
4 * @param is_loaded True if the board is loaded from a file.
5 */
6 void Board1(boolean is_loaded);
7
8 /**
9 * Method to create second board from scratch.
10 * @param is_loaded True if the board is loaded from a file.
11 */
12 void Board2(boolean is_loaded);
13
14 /**
15 * Method to create third board from scratch.
16 * @param is_loaded True if the board is loaded from a file.
17 */
18 void Board3(boolean is_loaded);
19
20 /**
21 * Method to create fourth board from scratch.
22 * @param is_loaded True if the board is loaded from a file.
23 */
24 void Board4(boolean is_loaded);
25
26 /**
27 * Method to create fifth board from scratch.
28 * @param is_loaded True if the board is loaded from a file.
29 */
30 void Board5(boolean is_loaded);
31
32 /**
33 * Method to create sixth board from scratch.
34 * @param is_loaded True if the board is loaded from a file.
35 */
36 void Board6(boolean is_loaded);
37
38 /**
39 * Method to add cell buttons to the frame for first 5 types.
40 */
41 void addBoard();
42
43 /**
44 * Method to add cell buttons to the frame for last type.
45 */
46 void addBoardTriangle();
47
48 /**
49 * Method to add listeners for the cell buttons.
50 */
51 void addingListenersType();
52
53 /**
54 * Method to determine if move is valid for the up.
55 * @param yRow Row value of the selected cell.
56 * @param yCol Column value of the selected cell.
57 * @param row Row value of the slot that user wants to go.
58 * @param col Column value of the slot that user wants to go.
59 * @return boolean to specify if the move is valid.
60 */

Callers 18

actionPerformedMethod · 0.65
itemStateChangedMethod · 0.65
actionPerformedMethod · 0.65
itemStateChangedMethod · 0.65
actionPerformedMethod · 0.65
itemStateChangedMethod · 0.65
actionPerformedMethod · 0.65
itemStateChangedMethod · 0.65
actionPerformedMethod · 0.65
itemStateChangedMethod · 0.65
actionPerformedMethod · 0.65
itemStateChangedMethod · 0.65

Implementers 1

PegSolitairePrograms/Games/peg-solitaire/PegSolita

Calls

no outgoing calls

Tested by

no test coverage detected