{"id":15057722,"url":"https://github.com/rratic/lightlearn.jl","last_synced_at":"2026-02-02T03:02:22.834Z","repository":{"id":61800161,"uuid":"484896631","full_name":"Rratic/LightLearn.jl","owner":"Rratic","description":"a visual tool for julialang learning with level-installing and sandbox","archived":false,"fork":false,"pushed_at":"2022-08-10T03:48:08.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T15:40:50.225Z","etag":null,"topics":["game","grid","julialang","lightweight","subproject"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rratic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-24T01:36:24.000Z","updated_at":"2022-10-05T15:41:40.000Z","dependencies_parsed_at":"2022-10-21T11:45:14.408Z","dependency_job_id":null,"html_url":"https://github.com/Rratic/LightLearn.jl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Rratic/LightLearn.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rratic%2FLightLearn.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rratic%2FLightLearn.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rratic%2FLightLearn.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rratic%2FLightLearn.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rratic","download_url":"https://codeload.github.com/Rratic/LightLearn.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rratic%2FLightLearn.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29002632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T01:32:03.847Z","status":"online","status_checked_at":"2026-02-02T02:00:07.448Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["game","grid","julialang","lightweight","subproject"],"created_at":"2024-09-24T22:10:42.782Z","updated_at":"2026-02-02T03:02:22.816Z","avatar_url":"https://github.com/Rratic.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 用户手册\n!!! note\n\t如果您是使用者，请注意：调用本手册以外函数、修改源代码或关卡数据、在提交函数中包含错误的函数等行为均应视作作弊，但不被强制保证。\n\n### 流程\n使用 `st = init()` 创建一个游戏句柄，其中 `init` 接收一个参数，为 `false` 时不会导入 [`Standard.llp`](https://github.com/JuliaRoadmap/Standard.llp)。\n在结束时，需注意调用 `quit(st)` 注销句柄。\n\n使用 `menu`，你可以阅读已导入的关卡列表（包括整数 id 与 名称），可以通过 `level` 导入指定的关卡。可以进行手动尝试，但是正式提交需要调用 `submit(st)`，第二个参数接受一个函数，这个函数接受唯一参数是 `st::Status`。在此模式下，你可以调用：（以下函数第一个参数均为 `st::Status`）\n* `north!`\n* `west!`\n* `east!`\n* `south!`\n* `look(st::Status, x::Int, y::Int)` 在「四相邻格」或本格时进行「观察」\n* `send(st::Status, method::Symbol, x::Int, y::Int, args...)` 在「四相邻格」或本格时「发送数据」\n\n### 沙盒模式\n使用 `sand = sandbox(st)`，你可以创建一个沙盒。\n在此模式下，可以调用 `tp(sand, x, y)`，`sand[x, y]`，`sand[x, y]=v`\n\n### 导入\nLightLearn 提供了两个导入函数：\n* `load_package(st::Status, s::AbstractString)` 导入已安装的包，使用其名称\n* `load_dir(st::Status, s::AbstractString)` 从本地指定目录导入\n\n### 安装\nLightLearn 提供了三个安装函数：\n* `install_localzip(fpath::AbstractString; remove::Bool=false)` 从本地指定路径安装 zip\n* `install_webzip(url::AbstractString)` 从网络指定 url 安装 zip\n* `install_githubrepo(owner::AbstractString, repo::AbstractString, version::AbstractString=\"latest\")` 从指定 github 仓库安装指定发布\n\n同时，可以使用 `uninstall(name::AbstractString)` 去除安装\n\n### 杂项\n* 可以使用 `vis(st::Status, b::Bool)` 设置窗口可见性\n\n## 开发者手册\n[标准 Package 项目地址](https://github.com/JuliaRoadmap/Standard.llp)\n\n目录下应包含以下文件\n\n**Project.toml**\n* `name` 当前关卡包名\n* `uuid` 一个UUID\n* `version` 当前版本\n* `description` 介绍\n* `[compat]` 其中 `\"LightLearn\"` 项表示接受的版本\n\n**src/包名.jl**\n* 返回值应为 `NamedTuple`\n\n若要支持 `install_githubrepo` 方法，应在对应的 github 仓库发布 release，标注恰当的 tag（带`v`），在信息中必须含有字段`COMPAT=\"版本\"`，与 `toml[\"compat\"][\"LightLearn\"]` 统一\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frratic%2Flightlearn.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frratic%2Flightlearn.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frratic%2Flightlearn.jl/lists"}