Skip to content

Commit

Permalink
fixed error from leftover debug statment#
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayvallurupalli committed Oct 10, 2024
1 parent 940415e commit 43bf089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ proc createTile(p: Piece, m: int, n: int): VNode =
td(class=class):
proc onclick(_: Event; _: VNode) =
if possibleMoves.contains(p.tile) and p.isAir() and turn and pieceOf(selectedTile).isColor(side):
#sendMove("move", selectedTile, p.tile)
sendMove("move", selectedTile, p.tile)
pieceOf(selectedTile).onMove(selectedTile, p.tile, theBoard)
possibleMoves = @[]
selectedTile = (-1,-1)
possibleTakes = @[]
elif possibleTakes.contains(p.tile) and not p.isAir() and turn and pieceOf(selectedTile).isColor(side):
#endMove("take", selectedTile, p.tile)
sendMove("take", selectedTile, p.tile)
pieceOf(selectedTile).onTake(selectedTile, p.tile, theBoard)
possibleTakes = @[]
selectedTile = (-1, -1)
Expand Down

0 comments on commit 43bf089

Please sign in to comment.