From a623639af3fb166774896cdc49b6f3e78d478ab2 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 25 Jul 2021 13:47:36 -0400 Subject: [PATCH] probably should test code before commiting tbh --- internal/game/board.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/game/board.go b/internal/game/board.go index 8f9c47e..33fc8a0 100644 --- a/internal/game/board.go +++ b/internal/game/board.go @@ -99,7 +99,7 @@ func (b *Board) Move(id, src, dest int) bool { func (b *Board) CanPlay(id int, c *Card, dest int) bool { brd := b.GetRow(id) - if !brd[dest].Empty() || !c.Spell { + if !brd[dest].Empty() && !c.Spell { return false } return true