Documentation ¶
Overview ¶
功能:策略表-转gotable输出 说明:
功能:转svg输出-基类 说明:
功能:查询次数-转svg输出 说明:
功能:策略表-转svg输出 说明:
功能:输出-x,y轴标题 说明:
Index ¶
- Constants
- func Dealer_card_2_x_axis_heading(dealer_card byte) string
- func Gotable_make(chart_map map[string]*node.Node) error
- func Query_times_svg_make(strategy_map map[string]*node.Node, query_times_map map[string]int) string
- func Strategy_svg_make(strategy_map map[string]*node.Node) string
- func X_axis_headings() []string
- func Y_axis_headings_hard() []string
- func Y_axis_headings_hard_all() []string
- func Y_axis_headings_soft() []string
- func Y_axis_headings_soft_all() []string
- func Y_axis_headings_splits() []string
- type PointRange
- type SvgMaker
- type SvgMakerQueryTimes
- type SvgMakerStrategy
Constants ¶
View Source
const ( TXT_FOOTER = xutils.POKER_X_STUDIO //footer 文字 GRID_WIDTH = 36 // GRID_HEIGHT = 36 // X_AXIS_GRID_CNT = 10 //X轴方向个数 WIDTH_Y_AXIS_HEADING = 40 //标题 SCALE = 1.5 //缩放比 MARGIN_LEFT = 20 //左边距 MARGIN_RIGHT = MARGIN_LEFT //右边距 H_HEADER = 120 //header高 H_FOOTER = 40 //footer高 STYLE_HEADER = "font-size:22;fill:#000" STYLE_FOOTER = "font-size:22;fill:#000" STYLE_Y_AXIS_HEADING = "font-size:18;fill:#000" STYLE_BG_HIT = "fill:#FF0000;stroke:rgb(00,00,00);stroke-width:1" //背景 STYLE_BG_DOUBLE = "fill:#0000FF;stroke:rgb(00,00,00);stroke-width:1" STYLE_BG_STAND = "fill:#FFFF00;stroke:rgb(00,00,00);stroke-width:1" STYLE_BG_SPLIT = "fill:#00FF00;stroke:rgb(00,00,00);stroke-width:1" STYLE_BG_SURRENDER = "fill:#FFFFFF;stroke:rgb(00,00,00);stroke-width:1" STYLE_BG_UNKOWN = "fill:#DCDCDC;stroke:rgb(00,00,00);stroke-width:1" STYLE_TXT_Y_AXIS_HEADING = "font-size:18;fill:#000000" //文字 STYLE_TXT_ACTION_18 = "font-size:18;fill:#000000" //文字 STYLE_TXT_ACTION_12 = "font-size:12;fill:#000000" //文字 )
View Source
const ( X_AXIS_CNT = 10 Y_AXIS_CNT_HARD = 10 Y_AXIS_CNT_HARD_ALL = 17 Y_AXIS_CNT_SOFT = 7 Y_AXIS_CNT_SOFT_ALL = 9 Y_AXIS_CNT_SPLITS = 10 )
View Source
const ( HARD_HAND_HEADING = "Hard" //标题 SOFT_HAND_HEADING = "Soft" //标题 SPLITS_HAND_HEADING = "Splits" //标题 )
View Source
const (
TXT_HEADING_BASIC_STRATEGY = "Blackjack Basic Strategy"
)
View Source
const (
TXT_HEADING_QUERY_TIMES = "Blackjack Query Times" //
)
Variables ¶
This section is empty.
Functions ¶
func Dealer_card_2_x_axis_heading ¶
庄家牌转x轴标题,dealer's card
func Query_times_svg_make ¶
func Query_times_svg_make(strategy_map map[string]*node.Node, query_times_map map[string]int) string
创建
func Y_axis_headings_hard_all ¶
func Y_axis_headings_hard_all() []string
func Y_axis_headings_soft_all ¶
func Y_axis_headings_soft_all() []string
Types ¶
type PointRange ¶
type PointRange struct {
// contains filtered or unexported fields
}
type SvgMakerQueryTimes ¶
type SvgMakerQueryTimes struct {
SvgMaker
}
type SvgMakerStrategy ¶
type SvgMakerStrategy struct {
SvgMaker
}
Click to show internal directories.
Click to hide internal directories.