2022-04-13 07:48:22 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"git.tuxpa.in/a/card_id/common/game"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2022-04-13 07:51:52 +00:00
|
|
|
g, err := game.New().ReadFromRoot(os.Getenv("CARD_DATA_DIR"))
|
2022-04-13 07:48:22 +00:00
|
|
|
if err != nil {
|
|
|
|
log.Panicln(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
log.Println(g.RandomLevel().RandomTable().RandomResult())
|
|
|
|
|
|
|
|
}
|