COMP1100 Assignment 3 Joseph Curtis ID: 3952239 reporta3.txt 1. Object Number Created by ------------------------------------------------- SANDL_GAME 1 created when program is compiled PLAYER num_player + 2 sandl_game.make DIE 1 sandl_game.make GAME_BOARD 1 sandl_game.make ARRAY[PLAYER] 1 sandl_game.make 2. 2 + num_players 3. (i) Throw the dice (ii) Check for snake or ladder (iii) Add dice roll and snake/ladder number to temp update variable (iv) Check to see if this is over 99 (v) If it is then mark as winner (vi) Update position 4. SANDL_GAME Client of - GAME_BOARD - DIE - INTEGER - ARRAY - PLAYER - STD_INPUT_OUTPUT Supplier of - PLAYER Client of - INTEGER - STD_INPUT_OUTPUT Supplier of - SANDL_GAME DIE Client of - STD_RAND - INTEGER - ARRAY Supplier of - SANDL_GAME GAME_BOARD Client of - INTEGER - ARRAY - STRING - STD_INPUT_OUTPUT Supplier of - SANDL_GAME 5. - io.put_string(hline) prints '+-----+' to the screen. io.put_string(bline) prints '| |' to the screen. - 27 - In one pass of the loop one row is drawn. Each row is made up of four lines. Bline is printed first and repeated accross the row. Then the box number is printed in the next row. The third row has either a '.' or a number in it representing the position change required if you land therein. The fourth row is blank.