Friday, 21 December 2018

Google + Content reposting - June 3 2015


Digital and Interactive Games 2015 – Term 2, Week 7, Session 1
Today: - Finite State Machine (FSM)
Start
・    int variables

Generate Puzzle
・    no duplicate
・    4 colors in order

Waiting for player
・    Current row
・    Accept isTrue → no duplicate
・    4 colors are filled

Match                            Doesn't match
・    Compare and correct colors and places        - Not all correct
    Back to waiting for player
Player name                        - currentRow++

Update Hall of Fame                    Update Scores
・    Compare result (time)                - Correct colors and places
・    Write file
                            Player looses
Play again                        - Go to Play gagin
・    Restart
・    End


http://i483.photobucket.com/albums/rr193/Brenorenz/W15001_zpssmm6mfgk.png

MasterMind extend Application {
    declare her
    int currentRow    → fields
    Start() {

    }


}


private random … () []

compare (int [] choice)

class Result {
    int correctPlaces; // both places and colours
    int correctColors;

    public Result Compare (int [] choices) {
        …
        return;
    }


imageview


#gamedesign   #gameprogramming   #java   #programming #tafe  





No comments:

Post a Comment