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
Method
isLegalActionWithPreconition
(GameContextPlayerView context, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/DrawActionType.java:44
Method
isLegalActionWithPreconition
(GameContextPlayerView context, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/DiscardWithTingActionType.java:33
Method
isLegalActionWithPreconition
(GameContextPlayerView context, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/BuhuaActionType.java:65
Method
isLegalTileTypes
判断指定牌型集合是否是合法的单元。
src/main/java/com/github/blovemaple/mj/object/TileUnitType.java:25
Method
isLegalTileTypes
(Collection<TileType> types)
src/main/java/com/github/blovemaple/mj/object/StandardTileUnitType.java:245
Method
isLegalTiles
判断指定牌集合是否是合法的牌组。
src/main/java/com/github/blovemaple/mj/object/TileGroupType.java:58
Method
isLegalTiles
(Collection<Tile> tiles)
src/main/java/com/github/blovemaple/mj/object/StandardTileUnitType.java:236
Method
isOther
判断是否是其他人(非SELF)。
src/main/java/com/github/blovemaple/mj/object/PlayerLocation.java:24
Method
isTing
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:56
Method
isTing
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:125
Method
isWin
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimChanging.java:54
Method
lackedTypeList
()
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:534
Method
main
(String[] args)
src/test/java/com/github/blovemaple/mj/local/bazbot/BazBotTest.java:13
Method
main
(String[] args)
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:431
Method
main
(String[] args)
src/main/java/com/github/blovemaple/mj/cli/CliRunner.java:24
Method
main
(String[] args)
src/main/java/com/github/blovemaple/mj/botcompetition/BotCompetition.java:24
Method
match
(PlayerInfo playerInfo, Set<Tile> aliveTiles)
src/main/java/com/github/blovemaple/mj/rule/win/CachedWinFeature.java:35
Method
matchBy
(ActionType testType)
src/main/java/com/github/blovemaple/mj/action/standard/PlayerActionTypes.java:99
Method
matchBy
(ActionType testType)
src/main/java/com/github/blovemaple/mj/action/standard/AutoActionTypes.java:38
Method
matchBy
如果此类与testType的真正类是从属关系,并且testType的groupType与此对象相同,则视为match。 @see com.github.blovemaple.mj.action.AbstractPlayerActionType#matchBy(com.github.blovemap
src/main/java/com/github/blovemaple/mj/action/standard/CpgActionType.java:121
Method
matchCount
检查和牌是否符合此番种,返回计入次数。如果检查过程中检查出了符合其他番种,应填入winInfo.fans。 @param winInfo 和牌信息。 @return 如果不符合,返回0;如果符合,返回应该计入的次数。
src/main/java/com/github/blovemaple/mj/rule/win/FanTypeMatcher.java:16
Method
matchCount
(WinInfo winInfo)
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleFanType.java:21
Method
meetPrecondition
(GameContextPlayerView context)
src/main/java/com/github/blovemaple/mj/action/standard/BuhuaActionType.java:36
Method
name
()
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleFanType.java:16
Method
name
返回名称。用于唯一标识。
src/main/java/com/github/blovemaple/mj/object/TileRank.java:13
Method
nextZhuangLocation
(GameContext context)
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleGameStrategy.java:21
Method
number
()
src/main/java/com/github/blovemaple/mj/object/TileRank.java:28
Method
parseWinTileUnits
(WinInfo winInfo)
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:72
Method
play
()
src/main/java/com/github/blovemaple/mj/local/LocalGame.java:42
Method
readyContext
{@inheritDoc}<br> 在一局开始之前设置庄家位置和初始阶段。 @see com.github.blovemaple.mj.rule.GameStrategy#readyContext(com.github.blovemaple.mj.game.GameContext)
src/main/java/com/github/blovemaple/mj/rule/AbstractGameStrategy.java:76
Method
rethrowBiFunction
( BiFunction_WithExceptions<T, U, R, E> function)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:76
Method
rethrowConsumer
( Consumer_WithExceptions<T, E> consumer)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:42
Method
rethrowPredicate
( Predicate_WithExceptions<T, E> predicate)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:88
Method
run
()
src/main/java/com/github/blovemaple/mj/cli/CliView.java:234
Method
score
()
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleFanType.java:26
Method
score
进行评分并返回分数。
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:95
Method
setDiscardedTiles
(List<Tile> discardedTiles)
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:52
Method
setDoneActions
(List<Action> doneActions)
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:107
Method
setDrawedBottomSize
(int drawedBottomSize)
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:74
Method
setFans
(FanType fanType, Integer fans)
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:116
Method
setFocusedGroups
(Set<TileGroup> focusedGroups)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:111
Method
setGameResult
(GameResult gameResult)
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:116
Method
setGameResult
(GameResult gameResult)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:129
Method
setGameResult
(GameResult gameResult)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:260
Method
setInitBottomSize
(int initBottomSize)
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:66
Method
setPlayerInfos
(Map<PlayerLocation, PlayerInfo> playerInfos)
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:108
Method
setStage
(GameStage stage)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:81
Method
setStage
(GameStage stage)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:227
Method
setTileTypes
(List<TileType> tileTypes)
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:100
Method
setUp
()
src/test/java/com/github/blovemaple/mj/local/foobot/NormalWinTypeTest.java:33
Method
setUp
()
src/test/java/com/github/blovemaple/mj/local/foobot/SimpleGameStrategyTest.java:30
Method
setUpBeforeClass
()
src/test/java/com/github/blovemaple/mj/local/foobot/NormalWinTypeTest.java:25
Method
setUpBeforeClass
()
src/test/java/com/github/blovemaple/mj/local/foobot/SimpleGameStrategyTest.java:22
Method
setUseAliveTiles
(boolean useAliveTiles)
src/main/java/com/github/blovemaple/mj/rule/win/CachedWinFeature.java:27
Method
setWinPoint
(Integer winPoint)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimChanging.java:66
Method
setZhuangLocation
(PlayerLocation zhuangLocation)
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:68
Method
setZhuangLocation
(PlayerLocation zhuangLocation)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:71
Method
setZhuangLocation
(PlayerLocation zhuangLocation)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:217
Method
size
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnits.java:161
Method
size
返回一个单元中有几张牌。
src/main/java/com/github/blovemaple/mj/object/TileGroupType.java:51
Method
stop
中止任务,根据当前已经进行的判断尽快产生结果。
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdSelectTask.java:238
Method
stopCharReading
()
src/main/java/com/github/blovemaple/mj/cli/CliView.java:218
Method
str
(TileSuit suit)
src/main/java/com/github/blovemaple/mj/utils/LanguageManager.java:41
Method
str
()
src/main/java/com/github/blovemaple/mj/utils/LanguageManager.java:178
Method
tearDown
()
src/test/java/com/github/blovemaple/mj/local/foobot/NormalWinTypeTest.java:132
Method
tearDown
()
src/test/java/com/github/blovemaple/mj/local/foobot/SimpleGameStrategyTest.java:44
Method
tearDownAfterClass
()
src/test/java/com/github/blovemaple/mj/local/foobot/NormalWinTypeTest.java:29
Method
tearDownAfterClass
()
src/test/java/com/github/blovemaple/mj/local/foobot/SimpleGameStrategyTest.java:26
Method
test
()
src/test/java/com/github/blovemaple/mj/local/foobot/SimpleGameStrategyTest.java:48
Method
testGetDiscard
()
src/test/java/com/github/blovemaple/mj/local/foobot/NormalWinTypeTest.java:149
Method
testParse
()
src/test/java/com/github/blovemaple/mj/local/foobot/NormalWinTypeTest.java:154
Method
testTime
(String name, Runnable runnable)
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:425
Method
testWin
()
src/test/java/com/github/blovemaple/mj/local/foobot/NormalWinTypeTest.java:143
Method
tileTypesToWin
计算从当前选择的units到和牌所需的牌型列表,把所有可能的牌型列表组成Stream并返回。不需要内部排序和去重。
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotChoosingTileUnits.java:101
Method
tiles
()
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:538
Method
tiles
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:94
Method
timeLimit
(GameContextPlayerView contextView, Integer secondsToGo)
src/main/java/com/github/blovemaple/mj/cli/CliPlayer.java:309
Method
timeLimit
(GameContextPlayerView contextView, Integer secondsToGo)
src/main/java/com/github/blovemaple/mj/local/TestBot.java:44
Method
timeLimit
(GameContextPlayerView contextView, Integer secondsToGo)
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:178
Method
toString
()
src/main/java/com/github/blovemaple/mj/rule/win/WinType.java:89
Method
toString
()
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:128
Method
toString
()
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:542
Method
toString
()
src/main/java/com/github/blovemaple/mj/action/PlayerAction.java:96
Method
toString
()
src/main/java/com/github/blovemaple/mj/action/StageSwitchAction.java:23
Method
toString
()
src/main/java/com/github/blovemaple/mj/action/AbstractPlayerActionType.java:219
Method
toString
()
src/main/java/com/github/blovemaple/mj/action/standard/StageSwitchActionType.java:38
Method
toString
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:142
Method
toString
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimChanging.java:108
Method
toString
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileNeighborhood.java:234
Method
toString
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnits.java:165
Method
toString
Just for debug. @see java.lang.Object#toString()
src/main/java/com/github/blovemaple/mj/object/TileType.java:109
Method
toString
()
src/main/java/com/github/blovemaple/mj/object/TileUnit.java:63
Method
toString
Just for debug. @see java.lang.Object#toString()
src/main/java/com/github/blovemaple/mj/object/TileGroup.java:186
Method
tryEndGame
(GameContext context)
src/main/java/com/github/blovemaple/mj/rule/AbstractGameStrategy.java:143
Method
winChangings_old
(int changeCount)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:146
← previous
601–695 of 695, ranked by callers