]> kolegite.com Git - vmks.git/commitdiff
FIX: Order of announces in belot example
authorVladimir Garistov <vl.garistov@gmail.com>
Mon, 15 Jul 2024 11:51:56 +0000 (14:51 +0300)
committerVladimir Garistov <vl.garistov@gmail.com>
Mon, 15 Jul 2024 11:51:56 +0000 (14:51 +0300)
Examples/FreeRTOS/freertos_belot_sim/belot.cpp
Examples/FreeRTOS/freertos_belot_sim/belot.hpp
Examples/FreeRTOS/freertos_belot_sim/belot_common.hpp

index 42c268615e73491bfe658ce3dc2d37225bed5f68..385900d0d0689037336d712ee0ad3aa8d9e3d848 100644 (file)
@@ -126,6 +126,7 @@ const bid_t *Belot::view_bids()
   return (const bid_t *) bids;
 }
 
+// TODO: contras can be overruled
 int Belot::bid(bid_t bid, int8_t player_id)
 {
   bid_t highest_bid = current_highest_bid();
index a882d0b334e7df58e9c25d86f79ae489f8b5d9a6..a29d5f33d4c0a068008edebd637721dacb98c95f 100644 (file)
@@ -20,11 +20,11 @@ typedef enum
 {
   BidNone = 0,
   BidPass = 1,
-  BidNoTrumps = 2,
-  BidClubs = 3,
-  BidDiamonds = 4,
-  BidHearts = 5,
-  BidSpades = 6,
+  BidClubs = 2,
+  BidDiamonds = 3,
+  BidHearts = 4,
+  BidSpades = 5,
+  BidNoTrumps = 6,
   BidAllTrumps = 7,
   BidContra = 8,
   BidRecontra = 9
index c17f22c8d3f21348431a5a78b6761e39ed10e45e..4240cc145ddf0d1f9b463be17e89be979151375a 100644 (file)
@@ -9,11 +9,11 @@
 typedef enum
 {
   AllPass,
-  NoTrumps,
   ClubsTrump,
   DiamondsTrump,
   HeartsTrump,
   SpadesTrump,
+  NoTrumps,
   AllTrumps
 }
 game_mode_t;