https://codingblast.com/connect4-live-game-signalr-blazor/ - SignalR Connect4 Blazor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GameBoard | |
{ | |
public GamePiece[, ] Board { get; set; } | |
public GameBoard() | |
{ | |
Board = new GamePiece[7, 6]; | |
// Populate the Board with blank pieces | |
for (int i = 0; i <= 6; i++) { | |
for (int j = 0; j <= 5; j++) { | |
Board[i, j] = new GamePiece(PieceColor.Blank); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment