summaryrefslogtreecommitdiff
path: root/web/web_main.c
blob: f1a692cc2f819394dedda3036b69b5b199f81f51 (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_draw_board();
	opts_init();

	handle_next();
}

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