Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Spel
- {
- SpelBord sb = new SpelBord();
- Combinaties cb = new Combinaties();
- public Spel()
- {
- launchGame();
- }
- public void launchGame(){
- sb.initBoard();
- sb.printBoard();
- cb.randomComb();
- while(cb.correctCheck()!=true){
- gamePlay();
- }
- if(cb.correctCheck()==true){
- System.out.println("Gewonnen!");
- }else {
- System.out.println("Verloren, probeer opnieuw");
- }
- }
- public void gamePlay(){
- cb.setCurrentCode();
- cb.combinationChecker();
- sb.printBoard();
- cb.newRound();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement