Merineth πŸ‡ΈπŸ‡ͺ
Merineth πŸ‡ΈπŸ‡ͺ
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/19/2025 in #help
βœ… Othello game
I'm not sure what you mean
13 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/19/2025 in #help
βœ… Othello game
Based on the boardstate[] we can clearly see that the correct tiles are populates with disks. I just don't get why nothing is visually showing?
13 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
!solved
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
will do!
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
you are my literal saviour thank you so much
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
No description
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
i fucking love you
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
aaah i can see them!!!!!!!!! <3
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
Or would i need a ned repo for that?
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
Or merge it to main perhaps
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
I'm a bit of a beginner to github. How would i test the code?
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
i've been plagued with it for the past 3 days 😭
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
I'd love to see what you did for it to work
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
@Sossenbinder really?!
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
I pushed my changes but i'm simply gonna wait to see if someone is able to help me. Lowkey desperate for help..
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
But nothing is showing ?
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
No description
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
This is the actual part that updates the pieces on the board
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
public void UpdateBoard(Disk[,] boardState)
{
// Loop through the board state (2D array) and place pieces
for (int row = 0; row < 8; row++)
{
for (int column = 0; column < 8; column++)
{
var tile = BoardGrid.Children[row * 8 + column] as Border; // Get the corresponding tile

// Find the Ellipse inside the Border
var ellipse = tile?.Child as Ellipse;

if (boardState[row, column] == Disk.White)
{
ellipse.Fill = Brushes.White;
}
else if (boardState[row, column] == Disk.Black)
{
ellipse.Fill = Brushes.Black;
}
else
{
ellipse.Fill = Brushes.Transparent; // Empty cell
}
}
}
}
public void UpdateBoard(Disk[,] boardState)
{
// Loop through the board state (2D array) and place pieces
for (int row = 0; row < 8; row++)
{
for (int column = 0; column < 8; column++)
{
var tile = BoardGrid.Children[row * 8 + column] as Border; // Get the corresponding tile

// Find the Ellipse inside the Border
var ellipse = tile?.Child as Ellipse;

if (boardState[row, column] == Disk.White)
{
ellipse.Fill = Brushes.White;
}
else if (boardState[row, column] == Disk.Black)
{
ellipse.Fill = Brushes.Black;
}
else
{
ellipse.Fill = Brushes.Transparent; // Empty cell
}
}
}
}
45 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 1/16/2025 in #help
Othello game
But nothing changes visually. Not even the pieces show up.
45 replies