No changes made
This commit is contained in:
parent
a8c43c188b
commit
f5175c483d
50 changed files with 8240 additions and 8240 deletions
|
|
@ -1,26 +1,26 @@
|
|||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding / Class: <your class>
|
||||
* ---------------------------------------------------------
|
||||
* Exercise Number: B1
|
||||
* Title: Mine Sweeper User Interface Utilities
|
||||
* Author: */<your name>/*
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* Implementation of ms_ui_utils.h.
|
||||
* ----------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
void msu_init_rand() {
|
||||
srand(time(0));
|
||||
}
|
||||
|
||||
CellIdx msu_get_random_index(Count upper_limit) {
|
||||
return (upper_limit == 0 ? 0 : rand() % (upper_limit));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding / Class: <your class>
|
||||
* ---------------------------------------------------------
|
||||
* Exercise Number: B1
|
||||
* Title: Mine Sweeper User Interface Utilities
|
||||
* Author: */<your name>/*
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* Implementation of ms_ui_utils.h.
|
||||
* ----------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
void msu_init_rand() {
|
||||
srand(time(0));
|
||||
}
|
||||
|
||||
CellIdx msu_get_random_index(Count upper_limit) {
|
||||
return (upper_limit == 0 ? 0 : rand() % (upper_limit));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue