Created
May 7, 2021 23:39
-
-
Save devmobasa/82f979489f3350c96c20e6c92a8bfe70 to your computer and use it in GitHub Desktop.
https://codingblast.com/connect4-live-game-signalr-blazor/ - SignalR Connect4 Blazor
This file contains hidden or 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