lundi 31 décembre 2018

8 dice to be thrown simultaneously write the MIPs assembly language to provide this final sum [on hold]

] A new board game is to be created which requires 8 dice to be thrown simultaneously. All the numbers on the 8 dice are to be added up in order to allow game pieces to move around a board. e.g. 8 dice are thrown and they fall randomly face up as follows: 2,3,6,1,3,5,3,4. The sum of this total “throw” is 27. A very simple, microprocessor based handheld device is to be provided with the board game which simulates 8 dice being thrown at once and displaying the final sum of all dice. Using the “random” Syscall combined with a loop structure, write the MIPs assembly language to provide this final sum.




Aucun commentaire:

Enregistrer un commentaire