MCPcopy Index your code
hub / github.com/Equim-chan/Mortal

github.com/Equim-chan/Mortal @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
621 symbols 1,704 edges 74 files 30 documented · 5%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Mortal

GitHub Workflow Status GitHub Workflow Status dependency status GitHub top language Lines of code GitHub code size in bytes license

Donate

Mortal (凡夫) is a free and open source AI for Japanese mahjong, powered by deep reinforcement learning.

Read the Documentation for everything about this work.

Okay cool now give me the weights!

Read this post for details regarding this topic.

License

Code

AGPL-3.0-or-later

Copyright (C) 2021-2022 Equim

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Logo and Other Assets

CC BY-SA 4.0

Extension points exported contracts — how you extend this code

Agent (Interface)
`react` provides various choices for input, the implementor may choose one or many of them to produce the result. The c [2 …
libriichi/src/agent/defs.rs
BatchAgent (Interface)
(no doc) [3 implementers]
libriichi/src/agent/defs.rs

Core symbols most depended-on inside this repo

as_usize
called by 93
libriichi/src/tile.rs
deaka
called by 93
libriichi/src/tile.rs
fill
called by 78
libriichi/src/array.rs
hand
called by 57
libriichi/src/hand.rs
len
called by 57
libriichi/src/dataset/grp.rs
assign
called by 42
libriichi/src/array.rs
get
called by 39
libriichi/src/array.rs
as_u8
called by 37
libriichi/src/tile.rs

Shape

Method 403
Function 133
Class 74
Enum 9
Interface 2

Languages

Rust77%
Python16%
TypeScript7%

Modules by API surface

libriichi/src/stat.rs53 symbols
log-viewer/files/js/jquery-1.7.2.min.js42 symbols
mortal/model.py27 symbols
libriichi/src/state/update.rs27 symbols
libriichi/src/state/getter.rs27 symbols
libriichi/src/algo/agari.rs25 symbols
libriichi/src/arena/board.rs24 symbols
libriichi/src/tile.rs23 symbols
libriichi/src/dataset/gameplay.rs23 symbols
libriichi/src/algo/sp/calc.rs22 symbols
libriichi/src/mjai/event.rs16 symbols
libriichi/src/state/test.rs15 symbols

For agents

$ claude mcp add Mortal \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact