feat: 添加21点游戏
This commit is contained in:
11
handler/blackjack/util/dict.go
Normal file
11
handler/blackjack/util/dict.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package util
|
||||
|
||||
var Dict map[string]string
|
||||
|
||||
func init() {
|
||||
Dict := make(map[string]string)
|
||||
Dict["Spade"] = "♠"
|
||||
Dict["Heart"] = "♥"
|
||||
Dict["Diamond"] = "♦"
|
||||
Dict["Club"] = "♣"
|
||||
}
|
||||
10
handler/blackjack/util/status.go
Normal file
10
handler/blackjack/util/status.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package util
|
||||
|
||||
type Status int
|
||||
|
||||
const (
|
||||
INITIALIZED Status = iota
|
||||
WINNED Status = iota
|
||||
FAILED Status = iota
|
||||
DRAW Status = iota
|
||||
)
|
||||
Reference in New Issue
Block a user