Hi !!
I'm currently working on a card game in which the last hand is the following :
Each player is dealt a card. You can see every other players' card but yours.
I'm trying to implement that but i'm having hard time with the notification part. I'm supposed to send a customized notification for each player, as i can't send information of the card the player is not supposed to know.
So basicly the easiest method would be to create one array for each player, in which i add every card but not the one the player has, and then send this individually through notifyPlayer.
But i'm not really satisfied with this option of creating all these arrays, as the content of each array is really simillar from one to another.
Do you know a better way of doing this ?
I'm currently working on a card game in which the last hand is the following :
Each player is dealt a card. You can see every other players' card but yours.
I'm trying to implement that but i'm having hard time with the notification part. I'm supposed to send a customized notification for each player, as i can't send information of the card the player is not supposed to know.
So basicly the easiest method would be to create one array for each player, in which i add every card but not the one the player has, and then send this individually through notifyPlayer.
But i'm not really satisfied with this option of creating all these arrays, as the content of each array is really simillar from one to another.
Do you know a better way of doing this ?