21 lines
297 B
Rust
21 lines
297 B
Rust
use wasm_bindgen::prelude::wasm_bindgen;
|
|
|
|
pub mod constants;
|
|
pub mod board;
|
|
pub mod dictionary;
|
|
pub mod player_interaction;
|
|
pub mod game;
|
|
pub mod wasm;
|
|
|
|
|
|
#[wasm_bindgen]
|
|
extern {
|
|
pub fn alert(s: &str);
|
|
}
|
|
|
|
|
|
#[wasm_bindgen]
|
|
pub fn greet(name: &str) {
|
|
alert(&format!("Hello, {}!", name));
|
|
}
|
|
|