youyong5/MoonTetris/src does not have a README file

    Game

    pub struct Game {
    width : Int
    height : Int
    board : Array[Array[Int]]
    current_x : Int
    current_y : Int
    current_kind : Int
    current_rotation : Int
    next_kind : Int
    hold_kind : Int
    can_hold : Bool
    score : Int
    lines : Int
    level : Int
    game_over : Bool
    seed : Int
    }

    Game::check_collision

    fn Game::check_collision(self : Game, new_x : Int, new_y : Int, rotation : Int) -> Bool

    Game::clear_lines

    fn Game::clear_lines(self : Game) -> Unit

    Game::hard_drop

    fn Game::hard_drop(self : Game) -> Unit

    Game::hold

    fn Game::hold(self : Game) -> Unit

    Game::lock_piece

    fn Game::lock_piece(self : Game) -> Unit

    Game::move_left

    fn Game::move_left(self : Game) -> Bool

    Game::move_right

    fn Game::move_right(self : Game) -> Bool

    Game::new

    fn Game::new() -> Game

    Game::next_random_kind

    fn Game::next_random_kind(self : Game) -> Int

    Game::rotate

    fn Game::rotate(self : Game) -> Bool

    Game::soft_drop

    fn Game::soft_drop(self : Game) -> Bool

    Game::spawn

    fn Game::spawn(self : Game) -> Unit

    Game::tick

    fn Game::tick(self : Game) -> Unit

    clear_rect

    fn clear_rect(x : Double, y : Double, w : Double, h : Double) -> Unit

    dump_srs_table

    fn dump_srs_table(table : Array[(Int, Int)]) -> String

    fill_rect

    fn fill_rect(x : Double, y : Double, w : Double, h : Double) -> Unit

    fill_text

    fn fill_text(_text : String, _x : Double, _y : Double) -> Unit

    get_block

    fn get_block(kind : Int, rotation : Int, row : Int, col : Int) -> Bool

    get_block_raw

    fn get_block_raw(kind : Int, row : Int, col : Int) -> Bool

    get_piece_anchor

    fn get_piece_anchor(kind : Int, rotation : Int) -> (Double, Double)

    get_srs_kick_data

    fn get_srs_kick_data(state_from : Int, state_to : Int) -> Array[(Int, Int)]

    get_srs_kick_data_i

    fn get_srs_kick_data_i(state_from : Int, state_to : Int) -> Array[(Int, Int)]

    get_srs_plus_180_kick_data

    fn get_srs_plus_180_kick_data(state_from : Int, state_to : Int) -> Array[(Int, Int)]

    get_srs_plus_180_kick_data_i

    fn get_srs_plus_180_kick_data_i(state_from : Int, state_to : Int) -> Array[(Int, Int)]

    get_t_spin_corners

    fn get_t_spin_corners() -> Array[(Int, Int)]

    play_sound

    fn play_sound(sound_type : Int) -> Unit

    set_fill_color

    fn set_fill_color(r : Int, g : Int, b : Int) -> Unit

    set_font

    fn set_font(_font : String) -> Unit

    set_line_width

    fn set_line_width(w : Double) -> Unit

    set_stroke_color

    fn set_stroke_color(r : Int, g : Int, b : Int) -> Unit

    stroke_rect

    fn stroke_rect(x : Double, y : Double, w : Double, h : Double) -> Unit

    wasm_get_level

    fn wasm_get_level() -> Int

    wasm_get_lines

    fn wasm_get_lines() -> Int

    wasm_get_score

    fn wasm_get_score() -> Int

    wasm_hard_drop

    fn wasm_hard_drop() -> Unit

    wasm_hold

    fn wasm_hold() -> Unit

    wasm_is_game_over

    fn wasm_is_game_over() -> Bool

    wasm_move_left

    fn wasm_move_left() -> Unit

    wasm_move_right

    fn wasm_move_right() -> Unit

    wasm_new_game

    fn wasm_new_game() -> Unit

    wasm_render

    fn wasm_render() -> Unit

    wasm_rotate

    fn wasm_rotate() -> Unit

    wasm_soft_drop

    fn wasm_soft_drop() -> Unit

    wasm_tick

    fn wasm_tick() -> Unit