2022-07-23 18:33:01 +02:00
|
|
|
import Grid;
|
2022-07-28 17:39:51 +02:00
|
|
|
import Grid.IO;
|
2022-08-06 20:18:30 +02:00
|
|
|
import Grid.Color;
|
|
|
|
import Share;
|
2022-07-24 11:20:22 +02:00
|
|
|
import Toolbox;
|
2022-07-26 19:39:06 +02:00
|
|
|
import Mode;
|
2022-07-28 17:39:51 +02:00
|
|
|
import * as Play from Mode.Play;
|
|
|
|
import * as Solve from Mode.Solve;
|
|
|
|
import * as Edit from Mode.Edit;
|
2022-07-22 22:35:28 +02:00
|
|
|
|
2022-09-01 21:51:48 +02:00
|
|
|
Toolbox.init();
|
2022-07-28 17:39:51 +02:00
|
|
|
Mode.init({
|
|
|
|
play: Play,
|
|
|
|
solve: Solve,
|
|
|
|
edit: Edit
|
|
|
|
});
|
2022-09-01 21:51:48 +02:00
|
|
|
Grid.init(Mode.dispatch);
|
2022-08-06 20:18:30 +02:00
|
|
|
if(window.location.search.length > 0) {
|
|
|
|
var urlSearchParameters = new URLSearchParams(window.location.search);
|
2022-09-01 21:51:48 +02:00
|
|
|
Grid.Color.set(Share.decode(urlSearchParameters.get('game')));
|
2022-08-06 20:18:30 +02:00
|
|
|
}
|
2022-07-28 17:39:51 +02:00
|
|
|
Grid.IO.init();
|