Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blovemaple/mahjong
/ functions
Functions
695 in github.com/blovemaple/mahjong
⨍
Functions
695
◇
Types & classes
114
↓ 1 callers
Method
setWinnerLocation
(PlayerLocation winnerLocation)
src/main/java/com/github/blovemaple/mj/game/GameResult.java:37
↓ 1 callers
Method
setZhuangLocation
(PlayerLocation zhuangLocation)
src/main/java/com/github/blovemaple/mj/game/GameContext.java:30
↓ 1 callers
Method
setZiMo
(Boolean ziMo)
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:78
↓ 1 callers
Method
setup
()
src/main/java/com/github/blovemaple/mj/cli/CliRunner.java:83
↓ 1 callers
Method
showTip
()
src/main/java/com/github/blovemaple/mj/cli/CliPlayer.java:265
↓ 1 callers
Method
showWinAction
(PlayerLocation location, Action action)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:341
↓ 1 callers
Method
simAction
(PlayerAction action)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:82
↓ 1 callers
Method
startCharReading
()
src/main/java/com/github/blovemaple/mj/cli/CliView.java:209
↓ 1 callers
Method
testWinProb
测试指定次换牌后的和牌可能性,并记录。 @param changeCount 换牌次数(另加一张牌) @return 是否有和牌可能 @throws InterruptedException
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:106
↓ 1 callers
Method
thinkingTime
(int min, int max)
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:44
↓ 1 callers
Method
timeLimit
倒计时有变化时通知。(会通知所有玩家,被通知的玩家不一定要做动作) @param secondsToGo 剩余秒数。null表示倒计时结束或取消。
src/main/java/com/github/blovemaple/mj/object/Player.java:70
↓ 1 callers
Method
toString
()
src/main/java/com/github/blovemaple/mj/action/Action.java:52
↓ 1 callers
Method
toString
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:299
↓ 1 callers
Method
toString
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:130
↓ 1 callers
Method
tryEndGame
根据当前状态判断游戏是否结束。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:106
↓ 1 callers
Method
unitsOfHood
(BazBotTileNeighborhood hood)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnits.java:66
↓ 1 callers
Method
winChangings
(int changeCount)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:140
Method
AbstractBot
(String name)
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:35
Method
Action
新建一个实例。
src/main/java/com/github/blovemaple/mj/action/Action.java:19
Method
ActionTypeAndLocation
(ActionType actionType, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/ActionTypeAndLocation.java:19
Method
AngangActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/AngangActionType.java:23
Method
AutoActionTypes
(ActionType type)
src/main/java/com/github/blovemaple/mj/action/standard/AutoActionTypes.java:27
Method
BarBot
(String name)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBot.java:23
Method
BarBotCpgdChoice
(GameContextPlayerView baseContextView, PlayerInfo baseInfo, PlayerAction action, BarBotCpgdSelectTask tas
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:48
Method
BarBotCpgdSelectTask
(GameContextPlayerView contextView, Set<PlayerActionType> actionTypes)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdSelectTask.java:59
Method
BarBotSimChanging
(BarBotCpgdChoice choice, Collection<Tile> removedTiles, Collection<Tile> addedTiles)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimChanging.java:31
Method
BarBotSimContext
(GameContextPlayerView contextView, Action lastAction, PlayerInfo myInfo)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:35
Method
BazBot
(String name)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBot.java:23
Method
BazBotAliveTiles
(Set<Tile> aliveTiles)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotAliveTiles.java:46
Method
BazBotChoosingTileUnits
构建一个初始的TileUnits,没有选择任何unit。
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotChoosingTileUnits.java:35
Method
BazBotSimContext
(GameContextPlayerView contextView)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:52
Method
BazBotTileNeighborhood
@param tiles 注意:传入后不会做校验,调用者必须保证tiles是排好序的,并且是一个neighborhood中的牌。
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileNeighborhood.java:100
Method
BazBotTileUnit
(boolean isCompleted, StandardTileUnitType unitType, Set<Tile> tiles, BazBotTileNeighborhood hood)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:85
Method
BazBotTileUnitType
(boolean isJiang)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:49
Method
BazBotTileUnits
(Collection<BazBotTileNeighborhood> neighborhoods)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnits.java:30
Method
BotCompetition
(Supplier<? extends AbstractBot> botSupplier1, Supplier<? extends AbstractBot> botSupplier2)
src/main/java/com/github/blovemaple/mj/botcompetition/BotCompetition.java:33
Method
BugangActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/BugangActionType.java:26
Method
BuhuaActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/BuhuaActionType.java:28
Method
ChangingForWin
(Set<Tile> removedTiles, Set<Tile> addedTiles)
src/main/java/com/github/blovemaple/mj/rule/win/WinType.java:60
Method
CliGameView
新建一个实例。 @param cliView CliView
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:85
Method
CliPlayer
(String name, CliView cliView)
src/main/java/com/github/blovemaple/mj/cli/CliPlayer.java:64
Method
CliRunner
()
src/main/java/com/github/blovemaple/mj/cli/CliRunner.java:46
Method
CliView
新建一个实例。 @param out 输出流 @param in 输入流 @throws IOException @throws InterruptedException
src/main/java/com/github/blovemaple/mj/cli/CliView.java:49
Method
CpgActionType
新建实例。 @param groupType 组成的牌组类型 @param lastActionRelations 限制上一个动作的玩家(出牌者)与当前玩家的位置关系
src/main/java/com/github/blovemaple/mj/action/standard/CpgActionType.java:52
Method
DealActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/DealActionType.java:21
Method
DiscardActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/DiscardActionType.java:20
Method
DiscardWithTingActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/DiscardWithTingActionType.java:25
Method
DrawActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/DrawActionType.java:24
Method
DrawBottomActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/DrawBottomActionType.java:22
Method
GameContextImpl
(MahjongTable table, GameStrategy gameStrategy, TimeLimitStrategy timeLimitStrategy)
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:37
Method
GameContextPlayerViewImpl
(GameContext gameContext, PlayerLocation myLocation)
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerViewImpl.java:26
Method
GameResult
(Map<PlayerLocation, PlayerInfo> playerInfos, PlayerLocation zhuangLocation)
src/main/java/com/github/blovemaple/mj/game/GameResult.java:27
Method
IllegalActionException
(GameContext context, Action action)
src/main/java/com/github/blovemaple/mj/action/IllegalActionException.java:16
Method
LanguageManager
()
src/main/java/com/github/blovemaple/mj/utils/LanguageManager.java:21
Method
LiujuActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/LiujuActionType.java:17
Method
LocalGame
新建一个实例。 @param localPlayer 本地玩家 @param newGameChecker 一局结束后决定是否开始新的一局的函数
src/main/java/com/github/blovemaple/mj/local/LocalGame.java:37
Method
MahjongGame
(GameStrategy gameStrategy, TimeLimitStrategy timeStrategy)
src/main/java/com/github/blovemaple/mj/game/MahjongGame.java:50
Method
MyUtils
()
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:569
Method
NormalWinType
()
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:53
Method
NumberRank
(int number)
src/main/java/com/github/blovemaple/mj/object/TileRank.java:24
Method
ParseBranch
(List<TileUnit> units, boolean hasJiang, List<Tile> remainTiles)
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:61
Method
PlayerAction
新建一个没有附加牌的实例。
src/main/java/com/github/blovemaple/mj/action/PlayerAction.java:22
Method
PlayerActionTypes
(PlayerActionType type)
src/main/java/com/github/blovemaple/mj/action/standard/PlayerActionTypes.java:73
Method
PlayerTiles
()
src/main/java/com/github/blovemaple/mj/object/PlayerTiles.java:23
Method
PlayerView
(PlayerLocation myLocation)
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:144
Method
PreUnit
(boolean isJiang, List<Tile> tiles, List<List<TileType>> lackedTypesList, int lackedCount)
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:515
Method
ReadThread
()
src/main/java/com/github/blovemaple/mj/cli/CliView.java:230
Method
SimpleTimeLimitStrategy
新建一个实例。 @param discardLimit 打牌限时 @param cpkLimit 其他操作限时 @param timeUnit 时间单位
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleTimeLimitStrategy.java:30
Method
StageSwitchAction
(String nextStageName)
src/main/java/com/github/blovemaple/mj/action/StageSwitchAction.java:14
Method
StandardTileUnitType
(int tileCount)
src/main/java/com/github/blovemaple/mj/object/StandardTileUnitType.java:227
Method
Tile
(TileType type, int id)
src/main/java/com/github/blovemaple/mj/object/Tile.java:56
Method
TileGroup
新建一个实例。 @param type 类型 @param gotTile 得牌 @param fromRelation 得牌来自于哪个关系的玩家 @param tiles 牌组中的牌 @throws Ille
src/main/java/com/github/blovemaple/mj/object/TileGroup.java:37
Method
TileGroupType
(TileUnitType unitType)
src/main/java/com/github/blovemaple/mj/object/TileGroupType.java:40
Method
TileSuit
(Class<? extends TileRank<?>> rankClass, int tileCountByType)
src/main/java/com/github/blovemaple/mj/object/TileSuit.java:23
Method
TileType
(TileSuit suit, TileRank<?> rank)
src/main/java/com/github/blovemaple/mj/object/TileType.java:56
Method
TileUnit
(TileUnitType type, Collection<Tile> tiles, TileUnitSource source, Tile gotTile)
src/main/java/com/github/blovemaple/mj/object/TileUnit.java:34
Method
WinActionType
()
src/main/java/com/github/blovemaple/mj/action/standard/WinActionType.java:30
Method
accept
(File file)
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:541
Method
accept
(T t, U u)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:19
Method
actionDone
(Action action)
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:83
Method
actionDone
(GameContextPlayerView contextView, Action action)
src/main/java/com/github/blovemaple/mj/cli/CliPlayer.java:314
Method
actionDone
(GameContextPlayerView contextView, Action action)
src/main/java/com/github/blovemaple/mj/local/TestBot.java:40
Method
actionDone
(GameContextPlayerView contextView, Action action)
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:174
Method
actionDone
(Action action)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:86
Method
actionDone
(Action action)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:232
Method
actionDone
完成一个动作时通知。
src/main/java/com/github/blovemaple/mj/object/Player.java:62
Method
addCacheKey
(Function<PlayerInfo, ?> value)
src/main/java/com/github/blovemaple/mj/rule/win/CachedWinFeature.java:31
Method
addNoYaoJiuKeUnits
(Collection<TileUnit> units)
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:124
Method
apply
(T t, U u)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:29
Method
apply
(T t)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:34
Method
call
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdSelectTask.java:71
Method
canDo
先使用{@link #meetPrecondition}检查前提条件,如果满足再调用{@link #canDoWithPrecondition} 。 @see com.github.blovemaple.mj.action.ActionType#canDo(com.github.blovemapl
src/main/java/com/github/blovemaple/mj/action/AbstractPlayerActionType.java:38
Method
canDo
(GameContext context, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/standard/PlayerActionTypes.java:79
Method
canPass
(GameContext context, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/standard/DiscardActionType.java:23
Method
canPass
(GameContext context, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/standard/BugangActionType.java:29
Method
canPass
(GameContext context, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/standard/WinActionType.java:33
Method
canPass
(GameContext context, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/standard/PlayerActionTypes.java:84
Method
canPass
(GameContext context, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/standard/AngangActionType.java:26
Method
canPass
(GameContext context, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/standard/CpgActionType.java:72
Method
canPass
(GameContext context, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/standard/DrawActionType.java:27
← previous
next →
301–400 of 695, ranked by callers