Releases: shinkuan/Akagi
Releases · shinkuan/Akagi
v1.1.0
請詳細閱讀
提供了安裝Akagi的自動化腳本install_akagi.ps1
執行前請注意腳本執行位置,如果執行位置內有名為"Akagi"的資料夾,會將其刪除並以最新版本替代
- 把
install_akagi.ps1
放到你想安裝的位置 - 以管理員開啟Powershell
- cd到安裝位置
- 有些電腦會限制Powershell腳本的執行,這也是為什麼我們需要管理員權限,執行以下指令以讓腳本能夠運行:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
- 執行
install_akagi.ps1
- 將
bot.zip
放入 ./players
Changelog
- Unlocker的bug修復 f86e46d
- 當Akagi發生錯誤時嘗試將所有執行中的Container關閉 7791146
- 修復暗槓後mjai沒有反應 6992e18
- 自動打牌大改寫 50c2982
- 將mitm_playwright.py與mitm.py整合在一起 c64fc02
- 增加了Playwright的設定頁面、現在可以在遊戲執行中切換Autoplay了 f78f2c2
mitm_playwright.py已被移除,與mitm.py整合
Settings.json有新內容
Playwright
:enable
: Enable the playwrightwidth
: width of the viewport of playwrightheight
: height of the viewport of playwright
Full Changelog: v1.0.1...v1.1.0
v1.0.1
v1.0.1
安裝過程略有不同,請詳細閱讀更新後的README
The installation process is slightly different, please read the updated README in detail
Changelog:
- 現在不再需要安裝完整的mjai,也就是說安裝過程不需要rust了
- 不再限制bot的CPU以及Memory用量,希望能改善效能問題
- 現在在Akagi啟動時會連帶啟動4個bot (啟動時請耐心等待),對應四個風位,如此一來在加入對局時便不必等待新的bot開啟導致卡頓。
- 現在Akagi內的Setting能個正常作用了
- 新增了mitm_playwright.py,啟動時會連帶啟動一個已經自動連上mitmproxy的chromium,簡化連接mitm流程。
- 使用mitm_playwright.py將會自動使用safe_code.js替換掉code.js
What's Changed
- Launch browser from mitm_playwright.py by @shinkuan in #4
- Playwright Updates by @shinkuan in #5
- v1.0.1 by @shinkuan in #6
Full Changelog: v1.0.0...v1.0.1
v1.0.0
v1.0.0
Installation, I suggest you watch the video.
YouTube Video for you to follow.
You will need:
- Docker
- Proxifier or something that can redirect connection to mitmproxy.
- Remember to trust mitmproxy's Certificate!!! Don't know how? Google it.
- A
bot.zip
that contains the AI. Examples - (Optional, Recommend) Use Windows Terminal to open client.py for a nice looking TUI.
Don't know how to make a bot.zip yourself? Don't worry!
Get bot.zip at Discord
Docker:
- Install Docker on your PC
docker pull smly/mjai-client:v3
Akagi:
install.bat
is found to have some problem on some machines.
I suggest you follow the video.
git clone this
cd into this repo
- Create a Python Virtual Env
python -m venv venv
- Activate it.
.\venv\Scripts\activate
pip install -r requirement.txt
cd mjai.app
- Install mjai
pip install -e .
- put
bot.zip
into ./players folder
or
- Run
install.bat
- put
bot.zip
into ./players folder
Run
After you activate the venv:
- Configure your setting at
setting.json
python mitm.py
python client.py
What's Changed
Full Changelog: https://github.com/shinkuan/Akagi/commits/v1.0.0