From: Vladimir Garistov Date: Mon, 15 Jul 2024 11:51:56 +0000 (+0300) Subject: FIX: Order of announces in belot example X-Git-Url: https://kolegite.com/gitweb/?a=commitdiff_plain;h=effee0d2ef6f6d153e35e960307aa23ef1179a04;p=vmks.git FIX: Order of announces in belot example --- diff --git a/Examples/FreeRTOS/freertos_belot_sim/belot.cpp b/Examples/FreeRTOS/freertos_belot_sim/belot.cpp index 42c2686..385900d 100644 --- a/Examples/FreeRTOS/freertos_belot_sim/belot.cpp +++ b/Examples/FreeRTOS/freertos_belot_sim/belot.cpp @@ -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(); diff --git a/Examples/FreeRTOS/freertos_belot_sim/belot.hpp b/Examples/FreeRTOS/freertos_belot_sim/belot.hpp index a882d0b..a29d5f3 100644 --- a/Examples/FreeRTOS/freertos_belot_sim/belot.hpp +++ b/Examples/FreeRTOS/freertos_belot_sim/belot.hpp @@ -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 diff --git a/Examples/FreeRTOS/freertos_belot_sim/belot_common.hpp b/Examples/FreeRTOS/freertos_belot_sim/belot_common.hpp index c17f22c..4240cc1 100644 --- a/Examples/FreeRTOS/freertos_belot_sim/belot_common.hpp +++ b/Examples/FreeRTOS/freertos_belot_sim/belot_common.hpp @@ -9,11 +9,11 @@ typedef enum { AllPass, - NoTrumps, ClubsTrump, DiamondsTrump, HeartsTrump, SpadesTrump, + NoTrumps, AllTrumps } game_mode_t;