using as a lib for now
This commit is contained in:
parent
20e01fb7a0
commit
4653dfc614
17
main.go
17
main.go
@ -59,15 +59,16 @@ func DummyGame() (*Game, error) {
|
|||||||
|
|
||||||
return g, nil
|
return g, nil
|
||||||
}
|
}
|
||||||
func main() {
|
|
||||||
//red := NewDummyPlayer(Red)
|
//func main() {
|
||||||
|
// //red := NewDummyPlayer(Red)
|
||||||
//blue := NewDummyPlayer(Blue)
|
//blue := NewDummyPlayer(Blue)
|
||||||
_, err := DummyGame()
|
// _, err := DummyGame()
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
panic(err)
|
// 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))
|
||||||
|
Loading…
Reference in New Issue
Block a user