Skip to content

Commit

Permalink
made playerColor Dependent on orientation (but the default orientatio…
Browse files Browse the repository at this point in the history
…n will correspond to your original color
  • Loading branch information
GideonPotok committed Mar 7, 2024
1 parent d0eaa1a commit b0745cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/analyse/src/ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export default class AnalyseCtrl {
}

playerColor(): Color {
return this.data.game.player;
return this.flipped ? opposite(this.data.game.player) : this.data.game.player;
}

bottomColor(): Color {
Expand Down

0 comments on commit b0745cf

Please sign in to comment.