The main challenge was to make valid moves, to empty the entire board except for a solitary peg.
To design the triangular game board having the pegs and handle the left, right, up, and down click the control to move the focus.
To implement the different goal mode, original mode to make valid moves, to empty the entire board except for a solitary peg and the challenge mode to complete the same task in the time limit.
To implement the functionality to handle the ok click to remove the first users select peg and valid moves to remove the pegs from the game board.
Progress
Initially, we designed the game board having the triangular board with pegs using the scene graph’s different renderable nodes.
Implemented logic in BrightScript to handle the left, right, up, and down click. Also implemented the control to move the focus on the triangular game board.
Implemented logic in BrightScript to handle the ok click control to remove the peg and movement of the pegs.
We used Scene Graph timer node to set the time limit to achieve the challenge in challenge game mode.
Result
Successfully designed the triangular game board having the pegs and handle the left, right, up and down click the control movement of the pegs.
Peg Solitaire lovers finally found their long lost game on the Roku Channel Store.