2023-08-04 18:38:56 +00:00
|
|
|
use wasm_bindgen::prelude::wasm_bindgen;
|
2023-07-22 23:43:49 +00:00
|
|
|
|
2023-08-01 03:00:58 +00:00
|
|
|
pub mod constants;
|
|
|
|
pub mod board;
|
|
|
|
pub mod dictionary;
|
2023-08-03 03:00:01 +00:00
|
|
|
pub mod player_interaction;
|
2023-08-06 01:59:30 +00:00
|
|
|
pub mod game;
|
|
|
|
pub mod wasm;
|
2023-07-22 03:18:06 +00:00
|
|
|
|
2023-08-04 18:38:56 +00:00
|
|
|
|
|
|
|
#[wasm_bindgen]
|
2023-08-05 00:08:25 +00:00
|
|
|
extern {
|
|
|
|
pub fn alert(s: &str);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[wasm_bindgen]
|
|
|
|
pub fn greet(name: &str) {
|
|
|
|
alert(&format!("Hello, {}!", name));
|
|
|
|
}
|
2023-08-06 01:59:30 +00:00
|
|
|
|