using as a lib for now

This commit is contained in:
stryan 2022-02-21 18:51:42 -05:00
parent 20e01fb7a0
commit 4653dfc614

19
main.go
View File

@ -59,15 +59,16 @@ func DummyGame() (*Game, error) {
return g, nil return g, nil
} }
func main() {
//red := NewDummyPlayer(Red) //func main() {
//blue := NewDummyPlayer(Blue) // //red := NewDummyPlayer(Red)
_, err := DummyGame() //blue := NewDummyPlayer(Blue)
if err != nil { // _, err := DummyGame()
panic(err) // if err != nil {
} // panic(err)
return // }
} // return
//}
func addpiece(game *Game, rank int, c Colour, x int, y int) { func addpiece(game *Game, rank int, c Colour, x int, y int) {
res, err := game.SetupPiece(x, y, NewPieceFromInt(rank, c)) res, err := game.SetupPiece(x, y, NewPieceFromInt(rank, c))