summaryrefslogtreecommitdiff
path: root/web/web_main.c
blob: d525a94b9f3faa569641ecaa08d731c4801a1b04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "web_control.h"
#include "web_opts.h"
#include "web_prompt.h"
#include "web_svg.h"

#include "comp.h"

#include <stdlib.h>
#include <time.h>

#include <emscripten/emscripten.h>

EMSCRIPTEN_KEEPALIVE
void init()
{
	srand(time(NULL));
	init_board();
	svg_init();
	opts_init();

	handle_next();
}

int main()
{
	EM_ASM(boatAfloat());
}