Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

The game is full of errors.

A topic by PlatoHero created Feb 16, 2024 Views: 61
Viewing posts 1 to 1

First of all, it has a missing '}' in the end. After fixing that one, I realised that any valid move gets the message 

InvalidOperation: C:\Downloads\powerchess.ps1:33
Line |
  33 |              $piece = $chessboard[$fromRow][$fromCol]
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot index into a null array.
Invalid move: you cannot move your opponent's pieces.