Hello!
I am currently working on a game with BGAstudio, and I am almost done, but I have one rule left to implement.
It's the "Pie rule", where the player to go second may choose, after the first move only, to go first and take the opponent's move as their own.
This is seen in games like Hex and Kalah already on here.
Currently, I have made the appropriate game states and buttons and have those working, I just need to switch the players when necessary.
I have:
but that seems to only switch the players' scores, and not the colors for the player panels. I don't really know how to mess around with the player panels, or anything like that. Anyone know what I should be doing?
I am currently working on a game with BGAstudio, and I am almost done, but I have one rule left to implement.
It's the "Pie rule", where the player to go second may choose, after the first move only, to go first and take the opponent's move as their own.
This is seen in games like Hex and Kalah already on here.
Currently, I have made the appropriate game states and buttons and have those working, I just need to switch the players when necessary.
I have:
Code: Select all
$sql = "UPDATE player SET player_color = '000000' WHERE player_color = 'AAAAAA'"; //000000 is a tempcolor, to switch AAAAAA and 555555
self::DbQuery( $sql );
$sql = "UPDATE player SET player_color = 'AAAAAA' WHERE player_color = '555555'";
self::DbQuery( $sql );
$sql = "UPDATE player SET player_color = '555555' WHERE player_color = '000000'";
self::DbQuery( $sql );