Giter Site home page Giter Site logo

archer's People

Contributors

moxcomic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

archer's Issues

is it okay to write auto playing script?

chrome_TX6tBfQ10w

'不可使用自动模式' = 'Automatic mode is not available'
probably it seems like built-in auto mode is disabled.

if built-in auto mode was disabled due to some problem, i'm asking a question because it seems better not to write/use auto playing script.

为什么选项显示慢(Why do the options display slowly?)

每次打开Archer都是随机服务器的,这个设置不会被保存,如果你有需求每次都需要手动选择服务器,例如**大陆访问非**服务器速度较慢可以手动选择**服务器,非**区域用户访问**服务器较慢可以手动选择非**服务器。

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.

雀魂脚本模版(Mahjong Soul Script Template)

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() {
  // 对局结束时调用一次
}

Foreigner如何使用(How to use Foreigner)

预览图(Preview):
2A2F2203AE2E191C32F32B88B6AEE1AC

  1. 启动 archer.exe
  2. 等待网页出现后启动 Foreigner
  3. 使用 Ctrl + S 进行设置,Ctrl + I 开启/关闭点击穿透

  1. Start archer.exe
  2. Wait for the web page to appear and start Foreigner
  3. Use Ctrl + S for settings and Ctrl + I to enable/disable click-through.

天凤脚本模版(Tenhou Script Template)

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() {

}

如何同时使用/多开账号(How to use multiple accounts simultaneously/open multiple accounts)

只需要解压出两个不相同的文件夹即可,例如:
账号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:

  • Account A: Folder A
  • Account B: Folder B

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.