moxcomic / archer Goto Github PK
View Code? Open in Web Editor NEWArcher is a top-tier Mahjong AI development framework, currently reaching as high as Tenhou 9.7 dan.
Archer is a top-tier Mahjong AI development framework, currently reaching as high as Tenhou 9.7 dan.
I'm encountering the same error as mentioned above. Is there a way to purchase a license?
onLogin与onLN有什么区别?
Every time Archer is opened, it connects to a random server, and this setting is not saved. If you have a specific requirement, you need to manually select the server each time. For example, users in mainland China may experience slower speeds when accessing non-Chinese servers, so they can manually choose a Chinese server. Users outside of China may find accessing Chinese servers slower and can choose non-Chinese servers accordingly.
package main
import (
"github.com/moxcomic/lq"
)
func onLogin() {
// 登录时调用一次
}
func onNewRound() {
// 每一小局开始时调用一次
}
func onConfirmNewRound() {
// 每一小局结束时调用一次
}
func onPlayerLeaving(seat int) {
// 有玩家断线时调用
// 0:自己 1:下家 2:对家 3:上家
}
func onExecute(result *lq.NotifyAIResult, risk []float64, rating, matches, fivePer, tenPer float64) {
// AI返回计算结果时调用一次
}
func onGameEnd() {
// 对局结束时调用一次
}
https://github.com/moxcomic/archer/wiki/lq#type
both ron and tsumo are type 9.
how do i know ron or tsumo from AIResult?
switch result.Result[0].Type {
case 9: // Ron & Tsumo
if ron {
actions.NewMajsoulActions().Ron()
} else {
actions.NewMajsoulActions().Tsumo()
}
}
天凤断线后,有无办法可以在不关闭软件的情况下重连
1:28: undefined selector: main.onSyncGame
package main
import (
"fmt"
"math/rand"
"time"
"github.com/moxcomic/Archer/gamestate"
"github.com/moxcomic/Archer/variable"
tenhouclient "github.com/moxcomic/engine/tenhou_client"
"github.com/moxcomic/lq"
)
func onLogin() {
}
func onTaikyoku() {
}
func onNewRound() {
}
func onConfirmNewRound() {
}
func onExecute(result *lq.NotifyAIResult, risk []float64, r, m, f, t float64) {
}
func onLN(values ...int) {
}
func onGameEnd() {
}
只需要解压出两个不相同的文件夹即可,例如:
账号A:文件夹A
账号B:文件夹B
之后分别启动两个文件夹内的archer主程序即
注意:需要将默认设置里的端口号进行+1,比如账号A使用30010端口,账号B使用30011端口
注意:账号所持有的games是独立的,每个登录的账号都必须持有大于0场的games才能进行对局,也就是你必须购买多个账号的授权
To use multiple accounts simultaneously, you just need to extract the files into two different folders. For example:
Then, launch the main 'archer' program from each folder separately.
Note: You need to increment the port number in the default settings by +1. For instance, if Account A uses port 30010, then Account B should use port 30011.
Note: The games owned by each account are independent. Each logged-in account must have more than 0 games available to play. This means you must purchase authorization for multiple accounts.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.