controllers

package
v0.0.0-...-c4f79ed Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlackJackCuiController

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

BlackJackCuiController ブラックジャックCUIコントローラークラス

func NewBlackJackCuiController

func NewBlackJackCuiController(bji usecases.BlackJackInteractorIF) *BlackJackCuiController

NewBlackJackCuiController コンストラクタ

func (*BlackJackCuiController) Exec

func (bcc *BlackJackCuiController) Exec(command string) string

Exec ゲーム実行

type BlackJackWebController

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

BlackJackWebController ブラックジャックWebコントローラークラス

func NewBlackJackWebController

func NewBlackJackWebController(bji usecases.BlackJackInteractorIF) *BlackJackWebController

NewBlackJackWebController コンストラクタ

func (*BlackJackWebController) Exec

Exec ゲーム実行

type BlackJackWebInput

type BlackJackWebInput struct {
	Command string `json:"command"`
}

BlackJackWebInput ブラックジャックWebインプット

type BlackJackWebOutput

type BlackJackWebOutput struct {
	Dealer  *BlackJackWebOutputPlayer `json:"dealer"`
	Player  *BlackJackWebOutputPlayer `json:"player"`
	Message string                    `json:"message"`
}

BlackJackWebOutput ブラックジャックWebアウトプット

type BlackJackWebOutputCard

type BlackJackWebOutputCard struct {
	Design string `json:"design"`
	Value  int    `json:"value"`
}

BlackJackWebOutputCard ブラックジャックWebアウトプットカード

type BlackJackWebOutputPlayer

type BlackJackWebOutputPlayer struct {
	Score int                       `json:"score"`
	Cards []*BlackJackWebOutputCard `json:"cards"`
}

BlackJackWebOutputPlayer ブラックジャックWebアウトプットプレイヤー

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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