Skip to content

Commit

Permalink
fix counterclockwise game
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Feb 8, 2024
1 parent ed8f8a0 commit c72d8d8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tarok/lib/game/game_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -848,9 +848,14 @@ class GameController extends GetxController {
for (int i = 0; i < myPosition.value; i++) {
before.add(users[i]);
}
List<stockskis.SimpleUser> allUsers = [
var reversed = [
...after,
...before,
];
List<stockskis.SimpleUser> allUsers = [
...(COUNTERCLOCKWISE_GAME && bots && gamesPlayed.value != 1
? reversed.reversed
: reversed),
users[myPosition.value]
];
cardStih.add(card);
Expand Down Expand Up @@ -1744,9 +1749,14 @@ class GameController extends GetxController {
...stockskisContext!.userPositions.reversed
];
stockskisContext!.userFirst();
debugPrint("pos: Resetirano");
}
}

debugPrint("pos: ${stockskisContext!.userPositions}");
debugPrint(
"pos:2 ${stockskisContext!.users["bot1"]!.user.name} ${stockskisContext!.users["bot2"]!.user.name}");

logger.i(
{
"users": users.map((e) => '${e.id}/${e.name}').join(' '),
Expand Down

0 comments on commit c72d8d8

Please sign in to comment.