No changes made

This commit is contained in:
MarcUs7i 2025-01-28 12:28:18 +01:00
parent a8c43c188b
commit f5175c483d
50 changed files with 8240 additions and 8240 deletions

View file

@ -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));
}