outputer

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

功能:策略表-转gotable输出 说明:

功能:转svg输出-基类 说明:

功能:查询次数-转svg输出 说明:

功能:策略表-转svg输出 说明:

功能:输出-x,y轴标题 说明:

Index

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

func Dealer_card_2_x_axis_heading(dealer_card byte) string

庄家牌转x轴标题,dealer's card

func Gotable_make

func Gotable_make(chart_map map[string]*node.Node) error

图转表,console输出

func Query_times_svg_make

func Query_times_svg_make(strategy_map map[string]*node.Node, query_times_map map[string]int) string

创建

func Strategy_svg_make

func Strategy_svg_make(strategy_map map[string]*node.Node) string

创建

func X_axis_headings

func X_axis_headings() []string

x轴标题

func Y_axis_headings_hard

func Y_axis_headings_hard() []string

y轴标题-hard

func Y_axis_headings_hard_all

func Y_axis_headings_hard_all() []string

func Y_axis_headings_soft

func Y_axis_headings_soft() []string

y轴标题-soft

func Y_axis_headings_soft_all

func Y_axis_headings_soft_all() []string

func Y_axis_headings_splits

func Y_axis_headings_splits() []string

y轴标题-分牌

Types

type PointRange

type PointRange struct {
	// contains filtered or unexported fields
}

type SvgMaker

type SvgMaker struct {
	// contains filtered or unexported fields
}

type SvgMakerQueryTimes

type SvgMakerQueryTimes struct {
	SvgMaker
}

type SvgMakerStrategy

type SvgMakerStrategy struct {
	SvgMaker
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL