leowest
leowest
CC#
Created by Faker on 2/19/2025 in #help
βœ… App.config file and .env file
please refer to the #info-and-rules
Relaying ChatGPT/AI generated answers or sending Let Me Google That For You links is heavily discouraged
31 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
that is not what I said
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
no
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
any window within your main window would see it
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
because that way, GameGrid would easily see the ViewModel which would contain the GameManager
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
at hints 8
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
and defining a global resource for the GameWindowViewModel
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
that is why they suggest you use mvvm in the pdf
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
as your code is right now there is only 1 way to access GamaManager from GameGrid which would be to get the parent window and access the parent window property GameManager if u made it a public property
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
I mean is it suppose to be the same? didnt u have logic for the ai
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
you might also need to make the classes public so that the GameManager can be passed down to the DataContext and be visible to your gamegrid
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
but didnt for Computer
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
funny he did HumanPlayer right
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
same hehe
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
just have those 2
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
or if u must have a Computer and a Player class
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
it would make more sense to have a property in Player to tell whether its a computer or a human
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
not sure why u would have 3 Players thou
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
yes you could
677 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 2/18/2025 in #help
Othello Reversi game
but for some reason u decided to create a new local instance of the GameManager
677 replies