Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void findSolutions(int count)
- {
- for(int i = 0; i < board.length; i++)
- {
- if(board[i] == 0)
- {
- for(i = 0; i < holes.length; i++)
- {
- temp = board[i];
- Move(temp);
- }
- }
- }
- if(count == finale)
- {
- System.out.println("Retry? 'yes' or 'no' ");
- if(scan.nextLine().equals("yes"))
- {
- findSolutions(count);
- }
- else
- {
- scan.nextLine().equals("no");
- }
- }
- }
- public String Move(int p){
- int point = p;
- if (point == 0){
- if (board[3] == 1 && board[1] == 1) {
- board[3] = 0; board[1] = 0; board[0]=1;
- count--;
- saveMove = "(3,1,0)";
- }
Add Comment
Please, Sign In to add comment